您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

mysql解决远程不能访问的二种方法_MySQL

2024/3/13 1:47:11发布18次查看
bitscn.com
1、在/etc/mysql/my.cnf中的[mysqld]段注释掉bind-address = 127.0.0.1
2、用mysql -uroot -p 登陆mysql,然后采用以下方法开启远程访问权限:
方法1:mysql>use mysql;
     mysql>update user set host = '%' where user = 'root';
    mysql>flush rivileges;
方法2:mysql>grant all privileges on *.* to 'myuser'@'%' identified by 'mypassword' with grant option;
bitscn.com
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product