Skip to main content

Generating MySQL 5.7 compatible (strong) password & discover old plaintext password?

Comments

2 comments

  • dalem
    you could go to phpmyadmin as root mysql>myql.user it will be quite obvious which users are using plain text passwords you could also export the SELECT user,password FROM mysql.user; command to a file and sort it all the hashed passwords will have a *
    0
  • cPanelLauren
    Hi @postcd Something like the following might work to get you the old password style users: [root@server ~]# mysql MariaDB [(none)]> use mysql MariaDB [mysql]> select user,password from user where length(password) < 41;
    MySQL passwords are not stored in plaintext and really you shouldn't even need to know them in order to change them. You could then use the UAPI for those users to set their password: UAPI Functions - Mysql::set_password - Developer Documentation - cPanel Documentation This won't let you set a password that doesn't meet the minimum strength requirements for MySQL
    0

Please sign in to leave a comment.