美文网首页
MySQL创建数据库和对应的用户

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

作者: zzl灬 | 来源:发表于2020-01-09 17:13 被阅读0次

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;

相关文章

网友评论

      本文标题:MySQL创建数据库和对应的用户

      本文链接:https://www.haomeiwen.com/subject/aeayactx.html