OpenVZ Forum


Home » General » Support » MySQL inside container
MySQL inside container [message #37181] Tue, 25 August 2009 12:10 Go to previous message
CrazyLapinou is currently offline  CrazyLapinou
Messages: 9
Registered: August 2009
Junior Member
Hi,
First, sorry for my bad english...
I am using OpenVZ kernel 2.6.26 under Debian Lenny. My container is under Debian Lenny too.
In my host node, i have some PHP files. These files need to access MySQL database. The MySQL database is in a container. The problem is that i can't access MySQL server from my host node.
I'm using this iptables script:
HOST_IP="192.168.1.60"
HOST_PORTS="22 80"

iptables -P FORWARD ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A INPUT -i lo -j ACCEPT

for port in $HOST_PORTS ; do
    iptables -A INPUT -p tcp -d $HOST_IP --dport $port -j ACCEPT
    iptables -A INPUT -p udp -d $HOST_IP --dport $port -j ACCEPT
done

I tried whitout iptables but it is the same.
Can someone help me ? Thank you Wink
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: reset cached RAM?
Next Topic: APF - Kernel Module Error
Goto Forum:
  


Current Time: Sat Nov 09 18:34:51 GMT 2024

Total time taken to generate the page: 0.03342 seconds