Skip to content

PASSWORD() function used on 8.0 #815

Open
@fmonts

Description

@fmonts

I'm on a Percona Server for MySQL 8.0.40.
When running mysqltuner, I got a lot of errors in the output due to the fact that it's using the PASSWORD() function, which has been removed in MySQL 8:

MySQLTuner 2.6.2
[...]
✔ Currently running supported MySQL version 8.0.40
[...]
ℹ There are 620 basic passwords in the list.
✘ Failed to execute: SELECT CONCAT(user, '@', host) FROM mysql.user WHERE password = PASSWORD('1') OR password = PASSWORD(UPPER('1')) OR password = PASSWORD(CONCAT(UPPER(LEFT('1', 1)), SUBSTRING('1', 2, LENGTH('1'))))
✘ FAIL Execute SQL / return code: 256
✘ Failed to execute: SELECT CONCAT(user, '@', host) FROM mysql.user WHERE password = PASSWORD('123456') OR password = PASSWORD(UPPER('123456')) OR password = PASSWORD(CONCAT(UPPER(LEFT('123456', 1)), SUBSTRING('123456', 2, LENGTH('123456'))))
✘ FAIL Execute SQL / return code: 256
[...]

This is happening only on 2.6.2, while 2.6.1 didn't show the errors (I'm not sure if it's a regression or they were just silenced)

For those having the same issue, you can delete the basic_passwords.txt file to get rid of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions