mysql -u root -p
use mysql;
mysql> grant all privileges on *.* to "root"@"%" identified by '';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
OK
本文介绍如何在MySQL中为root用户授予所有权限,并刷新权限缓存确保更改生效。
mysql -u root -p
use mysql;
mysql> grant all privileges on *.* to "root"@"%" identified by '';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
OK

被折叠的 条评论
为什么被折叠?