Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-12-2005, 04:06 PM   #1
LQ Newbie
Registered: Feb 2005
Posts: 10

Rep: Reputation: 0
Newbie with MySQL Install problem

[Edit: I thought I fixed it, but shortly after it broke again]

After ~5 hours I've installed Apache
3 more hours and I've installed PHP

Had loads of problems installing both of the above but finally got them to work

Now I am trying to install MySQL on Slackware 10.

I have followed all the instructions on and even got this far:

root@shaggy:/usr/local/mysql# /usr/bin/mysqld_safe &
[1] 17620
root@shaggy:/usr/local/mysql# Starting mysqld daemon with databases from /usr/local/mysql/data

I see in ps aux that it is running too, all appears well, but the problem is when I try to do step 6 of the tutorial, it says:

mysqlshow: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)

It's the same error given for when I try and give the accounts that were created passwords as well

I've re-read the install guide and I don't see where I've gone wrong
I have a small network and the computer that I'm installing MySQL on is, does that make any difference?

Last edited by pendulum; 04-12-2005 at 07:29 PM.
Old 04-12-2005, 05:34 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,632

Rep: Reputation: 208Reputation: 208Reputation: 208
Socket file (mysql.sock in this case) is a special file. Copying it will not work, IMHO. Instead, run the mysqld_safe program with
/usr/bin/mysqld_safe --socket=/var/run/mysql/mysql.sock &
Then the steps later should work.
Old 04-12-2005, 07:41 PM   #3
LQ Newbie
Registered: Feb 2005
Posts: 10

Original Poster
Rep: Reputation: 0
It broke again!

Oh well, I searched Google and this site for "Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)"

Seems it's a very common problem but I've tried all the solutions I've read including the one above and it doesn't fix it.

Bottom line is I gave up and deleted MySQL, then found that Apache was broken because I deleted MySQL, so I'm gunna delete everything in the morning and install Win98 to do the jobs I need. I don't have the patience to carry on like this and I wasted a whole day trying to get this stuff working. I do really hate following tutorials to the letter and then finding they don't work, and then you have to hunt around for the extra info you need to get it working.
Old 04-12-2005, 11:59 PM   #4
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
This LAMP tutorial is very helpful in my opinion and I'd suggest you give it another shot. Good luck with it -- J.W.


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
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
How to install mysql on Xandros 2.0 for Newbie jdruin Linux - Software 1 07-03-2004 03:15 PM
Linux newbie needs help with install of MySQL on Redhat9 bkimelman Linux - Software 1 11-03-2003 11:28 AM
MySQL mysql-3.23.56-1.9, rpm install problem jacsmith510 Linux - Newbie 3 09-19-2003 02:02 PM
Newbie MySQL install help andweave Linux - Software 3 06-27-2002 06:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 PM.

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