Home > Database > Mysql Tutorial > body text

Ubuntu下配置Mysql的远程管理_MySQL

WBOY
Release: 2016-05-31 08:48:52
Original
1625 people have browsed it

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

分享到:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!