MySQL
王彬_Ivan
这个作者很懒,什么都没留下…
展开
-
mysql8.0创建用户后授予权限时报错的解决方法
在MySQL 5.x的版本下执行下列语句是没有问题的,但是在MySQL8.x下会报错: GRANT ALL PRIVILEGES ON . ‘root’@’%’ identified by ‘123123’ WITH GRANT OPTION; 在MySQL8.x下的正确写法为: grant all privileges on . to ‘root’@’%’ ; 授权完毕后,须执行刷新权限的语句...原创 2018-12-04 22:18:25 · 2586 阅读 · 1 评论 -
【转】 MySQL添加新用户、为新用户分配权限
1、使用root用户登录mysql 2、添加具有本地(localhost/127.0.0.1)访问权限的用户 #create user 'newuser'@'localhost' identified by 'password'; 3、创建具有远程访问权限的用户 #create user 'newuser'@'%' identified by 'password'; 创建之后记得执行下面指令更...转载 2018-12-04 22:24:22 · 663 阅读 · 0 评论