使用sqlyog远程连接mysql 错误2003 cant connect to mysql 10060/10061 解决方法最强合集
2013-07-01 10:06
956 查看
网上关于这个问题的帖子实在不少,不过解决方法各有不同,让人实在摸不着头脑,现在小弟做个总结。
1.确保mysql服务已经启动: service mysql start
2.在装有sqlyog的端尝试在命令行中ping目标ip,确保能ping通
3.在需要连接的服务器端查看mysql用户名和权限,确保sqlyog输入的用户名和密码正确
4.在需要连接的服务器端查看用户权限:show grants; 如果只有Grants forroot@localhost 一行的话:
重置密码mysql> set password for 'root'@'172.16.124.1'=password('coship');
mysql> flush privileges;
5.记得关闭VMware的防火墙
6.打开/etc/my.cnf 文件,bind-address = ******** 一句前边加上 # ,注释掉
再加上一下两句:
skip-external-locking
skip-name-resolve
7.很重要的一步!!!重启mysql: service mysql restart 我当时就是尝试了100种网上的方法,结果最后才发现还忘了restart,怪不得老连不上~~~
如果你也遇到同样的错误,不妨把七步全都试试,一定能解决(*^__^*)
1.确保mysql服务已经启动: service mysql start
2.在装有sqlyog的端尝试在命令行中ping目标ip,确保能ping通
3.在需要连接的服务器端查看mysql用户名和权限,确保sqlyog输入的用户名和密码正确
4.在需要连接的服务器端查看用户权限:show grants; 如果只有Grants forroot@localhost 一行的话:
重置密码mysql> set password for 'root'@'172.16.124.1'=password('coship');
mysql> flush privileges;
5.记得关闭VMware的防火墙
6.打开/etc/my.cnf 文件,bind-address = ******** 一句前边加上 # ,注释掉
再加上一下两句:
skip-external-locking
skip-name-resolve
7.很重要的一步!!!重启mysql: service mysql restart 我当时就是尝试了100种网上的方法,结果最后才发现还忘了restart,怪不得老连不上~~~
如果你也遇到同样的错误,不妨把七步全都试试,一定能解决(*^__^*)
相关文章推荐
- 使用sqlyog远程连接mysql错误2003 cant connect to mysql 10060/10061解决方法
- navicat for mysql 远程连接数据库时出现2003-Can't connect to Mysql on '主机名'(10061)解决方法
- navicat for mysql 远程连接数据库时出现2003-Can't connect to Mysql on '主机名'(10061)解决方法
- SQLyog错误2003:Can't connect to MySQL server on 'localhost' (10061)解决方法
- SQLyog错误2003:Can't connect to MySQL server on 'localhost' (10061)解决方法
- 使用sqlyog远程连接mysql错误2003 cant connect to mysql 解决办法
- sqlyog连接时2003(Can not connect to mysql server)错误处理方法
- Navicat 远程连接mysql数据库 2003:Can't connect to MySQL server (10060) /1130: Host '192.168.1.3' is not all
- 关于远程连接2003-can't connect to MYSQL server on ''(10060)
- SQLyog连接问题:SQL Error (2003): Can't connect to MySQL server on '46.x.x.x' (10061)
- mysql中连接失败2003(Can't connect to server on 'localhost'(10038))错误解决办法
- MySQL错误:Can't connect to MySQL server on localhost (10061)解决方法
- 使用SQLyog远程连接mysql,以及mysql远程连接错误1130 解决方法
- python MySQLdb连接MySQL数据库报错(2003, "Can't connect to MySQL server on 'localhost' (10061)")解决办法
- 【MySQL错误系列】本地无法远程连接阿里云Ubuntu环境下Mysql数据库cant connect to mysql server on …..(10061)
- 远程连接ubuntu mysql出现2003错误 cant connect to mysql(转载)
- 远程连接ubuntu mysql出现2003错误 cant connect to mysql
- 远程连接ubuntu mysql出现2003错误 cant connect to mysql
- MySQL错误:Can't connect to MySQL server (10060)远程连接数据库失败
- MySQL错误:Can't connect to MySQL server (10060)远程连接数据库失败