Skip to content

Commit ed7fa6a

Browse files
committed
add command for VIA mysql_native_password
1 parent 60bf9fb commit ed7fa6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

_tips_and_tricks/MySQL Tips and Tricks.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ GRANT ALL PRIVILEGES ON *.* TO 'dba'@'FQDN' WITH GRANT OPTION;
4444
flush privileges;
4545
```
4646

47+
On existing users:
48+
```sql
49+
grant all privileges on *.* to root@localhost IDENTIFIED VIA mysql_native_password;
50+
```
51+
4752
Disable ident plugin so that users can login as root
4853
```mysql
4954
mysql -e "update user set plugin='mysql_native_password' where user='root'" mysql

0 commit comments

Comments
 (0)