LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   MySQL missing socket issue when only mysql-client installed (https://www.linuxquestions.org/questions/linux-server-73/mysql-missing-socket-issue-when-only-mysql-client-installed-4175477030/)

andrewdazotus 09-13-2013 01:56 PM

MySQL missing socket issue when only mysql-client installed
 
I have two Linux boxes (both Raspberry Pi running Raspbian) and I want to have Apache/PHP running on one and MySQL running on the other.

When I access the web page internally (192.168.1.101) it works fine.

When I access the web page externally via the IP Addr provided by my ISP, I get this:

Connect Error (2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I've installed mysql-server on the server and only mysql-client on the apache box.

I can't start mysql to get the socket because it's not installed...

Do I need to install mysql-server or is there another way?

andrewdazotus 09-13-2013 02:06 PM

forget it, my webpage works ok with one database but gets this error with another, I just need to workout the difference between the two!


All times are GMT -5. The time now is 08:18 AM.