grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option
flush privileges
mysql 赋给用户远程权限 grant all privileges on (推荐)
最新推荐文章于 2025-07-01 22:00:00 发布
本文介绍如何使用SQL语句为MySQL数据库的'root'用户分配所有权限,并确保更改立即生效。通过'grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option; flush privileges;'命令,可以实现对数据库的完全控制。
1410

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



