Last active
August 29, 2015 14:09
-
-
Save nanusdad/28b52967b321339e33c2 to your computer and use it in GitHub Desktop.
MySQL user creation / secure_auth errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> create user 'user'@'host_fqdn_or_ip' identified by 'secret_password'; | |
Query OK, 0 rows affected (0.07 sec) | |
mysql> grant select on database_name.* to 'user'@'host_fqdn_or_ip'; | |
Query OK, 0 rows affected (0.00 sec) | |
mysql> flush privileges; | |
Query OK, 0 rows affected (0.03 sec) | |
mysql> set session old_passwords=0; set password for 'user'@'host_fqdn_or_ip' = password('secret_password'); | |
Last command is neeed if client errors out with authentication problems ( client option secure_auth enabled ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment