# 连接数据库
mysql -uroot -p'密码'
# 新建数据库
create database if not exists数据库名;
# 新建用户
create user '用户名'@'localhost' identified by '密码'
# 授予权限
grant all on 数据库名.* to '用户名'@'localhost';
分类: 编程学习 标签: 暂无标签

评论

-- 评论已关闭 --

目录