mysql受权 老是忘记

mysql授权老是忘记mysql grant all privileges on *.* to root@% identified by root654321 with g

mysql授权 老是忘记



mysql> grant all privileges on *.* to 'root'@'%' identified by 'root654321' with grant option;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)