One: Problem description
[root @ localhost mytop 1.6] #/usr/local/webserver/mysql/bin/mysql -u admin – p12345678 – h 172.29.141.112:3306 – e “show databases;”
ERROR 2005 (HY000): Unknown MySQL server host ‘172.29.141.112:3306’ (0)
[root@localhost mytop-1.6]#
Two: Problem solving
[root @ localhost mytop 1.6] #/usr/local/webserver/mysql/bin/mysql -u admin – p12345678 172.29.141.112 – P – 3306 – h e “show databases;”
+ — — — — — — — — — — — — — — — — — — — — +
| Database |
+ — — — — — — — — — — — — — — — — — — — — +
| information_schema |
| | blog
| mysql |
| performance_schema |
| Test |
+ — — — — — — — — — — — — — — — — — — — — +
[root @ localhost mytop 1.6] #
Three: The problem
Mysql didn’t support mysql-H IP :port. You might have thought something was wrong, but if you thought about it at the time, you would have found it. You would have posted it on the iptub.
Four: Other reasons
Firewall issues, /etc/init.d/iptables stop off, or reset
[root @ localhost mytop 1.6] #/usr/local/webserver/mysql/bin/mysql -u admin – p12345678 – h 172.29.141.112:3306 – e “show databases;”
ERROR 2005 (HY000): Unknown MySQL server host ‘172.29.141.112:3306’ (0)
[root@localhost mytop-1.6]#
Two: Problem solving
[root @ localhost mytop 1.6] #/usr/local/webserver/mysql/bin/mysql -u admin – p12345678 172.29.141.112 – P – 3306 – h e “show databases;”
+ — — — — — — — — — — — — — — — — — — — — +
| Database |
+ — — — — — — — — — — — — — — — — — — — — +
| information_schema |
| | blog
| mysql |
| performance_schema |
| Test |
+ — — — — — — — — — — — — — — — — — — — — +
[root @ localhost mytop 1.6] #
Three: The problem
Mysql didn’t support mysql-H IP :port. You might have thought something was wrong, but if you thought about it at the time, you would have found it. You would have posted it on the iptub.
Four: Other reasons
Firewall issues, /etc/init.d/iptables stop off, or reset
Read More:
- Error 2005 (HY000) unkonw MySQL server host…
- Cannot connect to MySQL server on “host” (113)
- ERROR 2002 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)
- Error 2003 (HY000): can’t connect to MySQL server on ‘localhost’ (10061)
- ERROR 2000 (HY000): Unknown MySQL error
- 2003 – Can‘t connect to MySQL server on ‘192.168.163.128‘(Unknown error )
- Host is not allowed to connect to this MySQL server
- Solve MySQL error 2002 (HY000)
- Mysql start slave error 1201 (HY000)
- Solution to error 2002 (HY000) in MySQL login startup
- Solution to error 2002 (HY000) in MySQL
- Golang MySQL error SQL: unknown driver “MySQL” (Forgotten import?) solution
- SQL exception handling – MySQL error 1005 (HY000): can’t create table ‘TMP’ (errno: 13)
- [MySQL] error 1396 (HY000): Operation create user failed for ‘MySQL’ @’localhost ‘
- MYSQL:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- MySQL error 1205 (HY000): lock wait timeout exceeded; try restarting transaction
- The server just without updating PID file and can’t connect to local MySQL server through socket are solved
- mysql load data infile ERROR 13 (HY000): Can’t get stat of
- MySQL: if the remote connection using navicatip fails, prompt “is not allowed to connect to this MySQL server”
- About error 1005 (HY000) in MySQL: can’t create table ‘_______ ‘(errno: 150) fool’s plan