Home >Database >Mysql Tutorial >Ubuntu下配置Mysql的远程管理_MySQL

Ubuntu下配置Mysql的远程管理_MySQL

WBOY
WBOYOriginal
2016-05-31 08:48:521697browse

Ubuntu

1.进入,修改 mysql这个database下的user数据表

将root用户对应的记录只保留一条host为localhost的记录;

然后将root用户对应的host属性由localhost改为%

再执行命令 flush privileges;

 2.修改/etc/mysql/my.cnf

老的版本中

>skip-networking => # skip-networking

新的版本中

>bind-address=127.0.0.1 => bind-address= 你机器的IP

这样就可以允许其他机器访问MySQL了。

2

0

分享到:
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn