mysql 给root赋权
原创 mysql 2021-08-21 07:29:29
0 收藏 0 浏览1121 评论0
琴朗
已发33篇
有侵犯版权请及时联系我们,我们将在24小时内删除文章。
投诉举报

修改mysql数据库权限

show databases;
use mysql;
grant all privileges on *.* to 'root' @'%' identified by '123456' with grant option;
flush privileges;


grant all privileges on *.* to 'root' @'%' identified by '123456' with grant option;

说明:

 1.%表示所有ip ,也可以指定ip。

 2.by后面的123456是密码。






评论(0) 我要评论