Mysql创建新用户、对用户分配数据库权限

Mysql创建新用户

create user 'test'@'localhost' identified by 'password';

对新用户分配数据库权限

grant all on testsql.* to test@localhost identified by 'password'

猜你喜欢

转载自blog.csdn.net/yegaomin/article/details/79669948
今日推荐