I have two Debian windows:
- used apt-get to install mysql server mysql-client phpmyadmin
- used apt-get to install apache2 apache2-mod-php5
I am trying to connect to a MySQL server using Apache, but I am getting this error from PHP:
Lost connection to MySQL server while "reading source communication packet", system error: 113
I can connect to MySQL using a Windows client on the same network. This makes me think about how Apache2 / PHP is configured.
Additional reading about error 113 makes you think about host names, etc. The my.cnf on MySQL field is set to bind-address = 192.168.1.202, and PHP is trying to connect to 192.168.1.202.
Any help is much appreciated! I am not an evil genius with a long shot, and this is my first time trying to use only the way to establish this. I bet I forgot something stupid.
source
share