速记,mysql访问的问题

在S10上新安装的mysql,用PC无法连接,但是通过SSH登陆以后可以登陆。如下修改:

执行:
[code]
grant all privileges on *.* to root@'%' identified by 'password';
flush privileges;
[/code]
root为登录名;’%'为可访问的地址;password为登陆密码。

修改:
打开:/etc/mysql/my.cof,找到bind-address,改为机器的真实地址(我这里原本显示的是127.0.0.1,改为当前机器的IP地址),或者直接整行注释掉。

restart mysql。一切OK。

1 comment to 速记,mysql访问的问题

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Hello world

Hi,我是Tang Bin,finalbug.org是我的个人站点。这里有更多关于我的内容。English readers please click here to learn more about me and this site.

Categories