OpenVZ Forum


Home » General » Support » Connection to mysql-VE failed.
Re: Connection to mysql-VE failed. [message #25414 is a reply to message #25411] Mon, 24 December 2007 00:15 Go to previous messageGo to previous message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Kutschka wrote on Sun, 23 December 2007 18:22

Hello,

I try to connect to VE-Mysql from VE.

(The VE-MySql is not reachable from outside/internet.)

VE: 192.168.1.1
VE-MySql : 192.168.1.2

I become the error:
"Error: 2003 (Can't connect to MySQL server on '192.168.1.2' (111))"

And for debug in the VE-MySql:
# tcpdump -i venet0 dst port 3306

in the VE:
# telnet 192.168.1.2 3306

=>Trying 192.168.1.2...
telnet: Unable to connect to remote host: Connection refused

I read the thread
http://forum.openvz.org/index.php?t=msg&goto=8628&
Quote:


...check iptables on the HN and the VE....



But what shoud I do with iptables? Do I need to route the port, even the mysqlVE is only internal reachable?

Thank you,
Kutschka




The iptables rules should be nothing.

Can you ping the host from inside?

Can you, from the mysql-ve, ping anything outside? Are you sure you set the IP address correctly?

Are you sure that mysql is started in the mysql-ve?


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page

[Updated on: Mon, 24 December 2007 00:15]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is it possible to use 'insmod command' for device driver loading inside VE ?
Next Topic: *SOLVED* lfd problem ConfigServer Security & Firewall (csf)
Goto Forum:
  


Current Time: Mon Aug 18 08:42:11 GMT 2025

Total time taken to generate the page: 0.14658 seconds