Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am trying to install mySQL on my

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
I am trying to install mySQL on my RH7/Apache 1.3 server. I try several commands and end up with this:

Code:
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

Trying to install mySQL has been a huge headache.

Help?
 
Is mysqld running? That's the error I get when I try to invoke mysql from the command line and the daemon is shut down.
 
your problem is not about mysql is not running, it's just not correctly configured
check the /usr/local/mysql/bin/safe_mysqld script for MYSQL_UNIX_PORT line
should be something like "MYSQL_UNIX_PORT=${MYSQL_UNIX_PORT:-/tmp/mysql.sock}"
the look in /etc and check if there's a my.cnf file, if not create it and add there
[client]
socket = /tmp/mysql.sock
[mysqld]
socket = /tmp/mysql.sock

or locate your mysql.sock file and according to it's location change the paths

hope that helps
 
And check that the permissiond are correct on the driectory /tmp (777 = drwxrwxrwx) and the fil mysql.sock srwxrwxrwx, also 777.

too many times you can install on redhat and the socket and/or directory permissions will not be right.
***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top