MySQL创建数据库和对应的用户

2020-01-09  本文已影响0人  zzl灬

1、使用root账号登入mysql

2、创建数据库

create database test;

3、创建用户

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

4、用户授权

grant all privileges on test.* to 'test'@'%';

5、刷新权限

flush privileges;
上一篇 下一篇

猜你喜欢

热点阅读