LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-12-2005, 05:06 PM   #1
pendulum
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 http://dev.mysql.com/doc/mysql/en/quick-install.html 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 192.168.0.3, does that make any difference?


Last edited by pendulum; 04-12-2005 at 08:29 PM.
 
Old 04-12-2005, 06:34 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
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, 08:41 PM   #3
pendulum
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-13-2005, 12:59 AM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

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


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


All times are GMT -5. The time now is 12:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration