LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-13-2013, 01:56 PM   #1
andrewdazotus
LQ Newbie
 
Registered: Jul 2013
Location: Canada
Distribution: Raspbian, Debian
Posts: 6

Rep: Reputation: Disabled
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?
 
Old 09-13-2013, 02:06 PM   #2
andrewdazotus
LQ Newbie
 
Registered: Jul 2013
Location: Canada
Distribution: Raspbian, Debian
Posts: 6

Original Poster
Rep: Reputation: Disabled
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTPD: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' markseger Fedora - Installation 2 02-09-2011 11:53 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
Buzilla issue: "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" vitopn Linux - General 3 05-21-2007 10:13 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration