当前位置:Gxlcms > 数据库问题 > centos6.5上安装5.7版本的mysql

centos6.5上安装5.7版本的mysql

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

 https://www.cnblogs.com/lzj0218/p/5724446.html

 

设置root可以在本机以外的机器访问

 mysql -uroot -ppassword

> use mysql
> select host , user from user;
> update user set host = ‘%‘ where user = ‘root‘;
> select host , user from user;

 

搜权 myuser 用户可以用mypassword,从指定ip访问 所有的库中所有表

grant all privileges on *.* to ‘myuser‘@‘192.168.0.1‘ identified by ‘mypassword‘ with grant option

 

centos6.5上安装5.7版本的mysql

标签:sele   机器   roo   htm   nbsp   with   set   指定   date   

人气教程排行