时间:2021-07-01 10:21:17 帮助过:21人阅读
创建数据库
create database discuz default character set utf8 collate utf8_general_ci;
创建用户
create user ‘discuz‘@‘localhost‘ identified by ‘discuz‘;
更改用户访问数据库的权限
grant all on discuz.* to ‘discuz‘@‘localhost‘;
更改非本机使用数据库用户连接数据库的权限的更改
update mysql.user set host=‘%‘ where host=‘localhost‘;
grant all privileges on *.* to ‘root‘@‘%‘ with grant option;
flush privileges;
mysql用户及数据库的创建及权限的更改
标签:mysql