当前位置:Gxlcms > 数据库问题 > mysql创建新用户并授权访问操作该数据库

mysql创建新用户并授权访问操作该数据库

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



1.mysql -uroot -p

2.输入密码:

3.update mysql.user set authentication_string=password(‘123456‘) where user=‘oneuser‘ and Host = ‘%‘;

4.grant all privileges on onetable.* to oneuser@‘%‘ identified by ‘123456‘;

5.flush privileges;


然后外部连接数据库。


mysql创建新用户并授权访问操作该数据库

标签:mysql

人气教程排行