Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-25-2005, 05:24 AM   #1
Registered: Jun 2004
Posts: 126

Rep: Reputation: 15
Install MySQL 4.1.1

I just try install the mysqlXXX.tar.gz version to my linux server, just following the tutorial (; It can't work properly. I captured a msg. as following:

[root bin]# ./mysqld_safe --user=mysql &
[2] 2414
[root bin]# Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/
050425 17:11:53 mysqld ended

[2]- Done ./mysqld_safe --user=mysql

[root bin]# ./mysqladmin -u root shutdown
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

How to fix it? Thks
Old 04-25-2005, 11:21 AM   #2
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
try running the mysqld_safe command without the user option.

[root] # mysqld_safe &

afaik, that runs as root and the mysqld_safe will run mysqld as the user mysql.
Old 04-25-2005, 12:23 PM   #3
Registered: Jun 2004
Posts: 126

Original Poster
Rep: Reputation: 15
Same result as following:
[root bin]# ./mysqld_safe &
[1] 19893
[root bin]# Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/
050426 00:14:37 mysqld ended
Old 05-01-2005, 03:42 PM   #4
LQ Newbie
Registered: Jun 2004
Location: outside Toronto
Distribution: Mandrake 10.1
Posts: 9

Rep: Reputation: 0
Check out mysql's log file for more information, including what's really going on.

It's usually located in %installationhome%/data/localhost.err


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
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM
DBD::MySQL + MySQL install problems. Elleroth Linux - Software 4 03-24-2006 07:53 AM
MySQL 4 on Fedora can't install php-mysql kennyg Linux - Software 8 09-21-2004 07:54 PM
MySQL mysql-3.23.56-1.9, rpm install problem jacsmith510 Linux - Newbie 3 09-19-2003 03:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:19 AM.

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