There was an error while loading. Please reload this page.
VIA mysql_native_password
1 parent 60bf9fb commit ed7fa6aCopy full SHA for ed7fa6a
_tips_and_tricks/MySQL Tips and Tricks.md
@@ -44,6 +44,11 @@ GRANT ALL PRIVILEGES ON *.* TO 'dba'@'FQDN' WITH GRANT OPTION;
44
flush privileges;
45
```
46
47
+On existing users:
48
+```sql
49
+grant all privileges on *.* to root@localhost IDENTIFIED VIA mysql_native_password;
50
+```
51
+
52
Disable ident plugin so that users can login as root
53
```mysql
54
mysql -e "update user set plugin='mysql_native_password' where user='root'" mysql
0 commit comments