Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql 5.7.6 password -> authentication_string #35

Closed
rndmh3ro opened this issue Apr 23, 2017 · 2 comments
Closed

mysql 5.7.6 password -> authentication_string #35

rndmh3ro opened this issue Apr 23, 2017 · 2 comments

Comments

@rndmh3ro
Copy link
Member

In mysql 5.7.6 and onwards, the mysql.user table does not have a password column anymore. It's a authentication_string:

kitchen@5af1356b9fdf:~$ mysql -uroot -piloverandompasswordsbutthiswilldo mysql -s -e 'select user,host,password from mysql.user ;'
ERROR 1054 (42S22) at line 1: Unknown column 'password' in 'field list'

kitchen@5af1356b9fdf:~$ mysql -uroot -piloverandompasswordsbutthiswilldo mysql -s -e 'select user,host,authentication_string from mysql.user ;'
user	host	authentication_string
root	localhost	*0B99593EA05A61BB7D37562CA767CB36FE954CE8
Server version: 5.7.17-0ubuntu0.16.04.2 (Ubuntu)

See: https://dev.mysql.com/doc/refman/5.7/en/grant-tables.html

In MySQL 5.7.6, the Password column was removed and all credentials are stored in the authentication_string column.

@rndmh3ro
Copy link
Member Author

This is actually somewhat more complicated since MariaDB continues to use the password-column by default. But if one is using pam-authentication the authentication_string column will be used.

See here: https://dba.stackexchange.com/a/209973

@rndmh3ro
Copy link
Member Author

Fixed by #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant