创建Mysql用户

1.改变密码设置的参数

set global validate_password_policy=0;

set global validate_password_length=1;

2.创建mysql用户

create user 'imooc'@'%'  identified by '123456';

3.赋予所有权限  (注意mysql用户名和密码可更换)

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

赋予增删改查权限

grant select,insert,update,delete on *.* to 'imooc'@'%' identified by '123456' with grant option;

4.刷新权限

flush privileges;

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭