我意识到这个问题存在,但是通过回复我无法找到问题的解决方案。我正在尝试连接到远程服务器:
mysqladmin -u root -h 'genome-mysql.cse.ucsc.edu' --port=3306 version -p
Enter password:
mysqladmin: connect to server at 'genome-mysql.cse.ucsc.edu' failed
error: 'Lost connection to MySQL server at 'reading initial communication packet', system error: 113'
我已经检查过mysql正在运行:
arron@arron-Ideapad-Z570 ~ mysqladmin -u root -h 'localhost' --port=3306 version -p
Enter password:
mysqladmin Ver 8.42 Distrib 5.1.69, for debian-linux-gnu on x86_64
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Server version 5.1.69-0ubuntu0.11.10.1
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 13 days 21 hours 45 min 33 sec
Threads: 1 Questions: 154 Slow queries: 0 Opens: 255 Flush tables: 1 Open tables: 62 Queries per second avg: 0.0
这也不起作用
mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -N -D uniProt
ERROR 2003 (HY000): Can't connect to MySQL server on 'genome-mysql.cse.ucsc.edu' (113)
我已删除
bind-address = 127.0.0.1
来自我的msql.cnf文件。
但问题仍然存在。有人有什么建议吗?
我使用的是Linux Mint 12,网络是大学校园。如果存在防火墙问题,我该如何在我的系统上进行检查?