当前位置:Gxlcms > 数据库问题 > mysql创建和授权

mysql创建和授权

时间:2021-07-01 10:21:17 帮助过:2人阅读

create user ‘sopr‘@‘%‘ identified by ‘sopr‘;

GRANT ALL PRIVILEGES ON *.* TO ‘sopr‘@‘%‘ IDENTIFIED BY ‘sopr‘ WITH GRANT OPTION;  

flush privileges;

重启一下:sudo service mysqld restart

mysql创建和授权

标签:

人气教程排行