错误码:2003 不能连接到 MySQL 服务器在 (10061)
(2009-12-27 00:21:12)
标签:
mysql200310061it |
分类: 数据库 |
今天在个人电脑上安装VMware,并在VMware上安装了ubuntu,并且自动安装了MySQL
Server.启动ubuntu并登录后,MySQL自动启动。
用secureCRT登录到ubuntu系统后,通过下面命令创建一个新用户luomiou
$mysql -uroot -p121212
mysql>use mysql;
mysql>grant all privileges on *.* to 'luomiou'@'%'
identified by '121212';
但是我从vista上的SQLyog企业版登录,报标题的那个错误“错误码:2003 不能连接到 MySQL
服务器在
# Instead of skip-networking the default is now to listen only
on
# localhost which is more compatible and is not less secure.
bind-address
这里的意思就是默认只能是本机进入MySQL,不能从其它机器登进。于是我把
bind-address
#bind-address
现在重新启动MySQL:
$sudo /etc/init.d/mysql restart
再回到vista上的SQLyog重新登录,可以登录进去了。。YES--!!!
另外,如果在windows安装mysql,但是从其它系统访问不了,那么关掉运行mysql的windows系统的防火墙,有可能就可以访问了。

加载中…