日期:2014-05-16  浏览次数:20778 次

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)