数据库设置用户权限
数据库设置用户权限
数据库设置用户权限
mysql -u root -p123456
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
若需要远程连接数据库
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456';
exit
上一篇:架设常用指令
下一篇:无
站长简介
网名:Cx
年龄:90后
QQ:84581174
城市:内蒙古
TOP 10 热门文章
浏览历史