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!

Can't connect to local MySQL server through socket '/tmp/mysql.sock'

Status
Not open for further replies.

notnotBigE

Programmer
Oct 2, 2003
1
CA
I am a bit of a newb with Linux and have been researching this for hours, so please fogive me if this has been answered already. I can get MySQL to start only when I am logged in as root. I want to be able to have it start at bootup. When I try to start it at boot up or if I am logged in as a user other than root, I get the error "Can't connect to local MySQL server through socket '/tmp/mysql.sock'". Can anyone help me on this? Much appreciated!

Regards,

E
 
It sounds like the permissions on your temp directory are incorrect. You need to set the sticky bit. Try running this command.

chmod -R 777 /tmp

abombss

 
I am sorry... I forget to set the sticky bit. Try this command instead.

Code:
chmod -R 1777 /tmp

This will allow anyone to read / write / execute a file in the temp directory. A more conservative setting would be.

Code:
chmod -R 1755 /tmp

Cheers,

abombss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top