MySQL创建用户并授权数据库笔记

 替换命令行中的数据库名,user 和password即可。%是开启远程登录。

grant all privileges on shujukuming.* to 'user'@'%' identified by 'password';

猜你喜欢

转载自blog.csdn.net/weixin_42791849/article/details/81517263