Skip to content

Remove deprecated PASSWORD() function #58341

Open
@dveeden

Description

Description

          > This function is deprecated in MySQL 5.7 and is removed in MySQL 8.0.

Should we rename it to password or just remove it?

I found it included by #2680, @XuHuaiyu PTAL

Originally posted by @Defined2014 in #58312 (comment)

The PASSWORD() function was used in MySQL 5.7 and before to create passwords for mysql_native_password and sha256_password. And at some point before MySQL 5.7 it also supported pre-4.1 authentication.

Reasons for removal:

  • MySQL 8.0 removes it
  • The PASSWORD() function doesn't work for caching_sha2_password
  • Using the PASSWORD() function to directly update the mysql.user would circumvent password rules.
  • Using the PASSWORD() function to create a hash which then gets used in ... IDENTIFIED AS ... might also circumvent password rules.

This seem to have been deprecated since TiDB version v2.0.0-rc.3

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions