Home
Help
Login
Register
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced Search
VPS forum, VPS hosting forums, VPS discussions, VPS web hosting solutions, issues, providers, virtual web hosting questions, VPS hosting
System Administration
Server Administration
Can’t connect to local MySQL server through socket /tmp/mysql.sock
Pages: [
1
]
« previous
next »
Topic: Can’t connect to local MySQL server through socket /tmp/mysql.sock (Read 616 times)
0 Members and 1 Guest are viewing this topic.
Can’t connect to local MySQL server through socket /tmp/mysql.sock
« on: September 08, 2009, 09:40:47 PM »
Jay
Newbie
Posts: 44
If you get this error message while restaring mysql service from WHM…
/usr/local/bin/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!
Possible Solution:
It may be possible that MySQL socket file’s symbolic link has been removed from /tmp folder. Run the following commands to recreate it:
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
Run following command to start MySQL service forcefully:
/scripts/mysqlup –force
Thanks!
Logged
Pages: [
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
NEWS, Alert and Entertainment!!!
-----------------------------
=> Suggestions
-----------------------------
Virtualization technologies
-----------------------------
=> Virtuozzo & OpenVZ
=> HyperV
=> Xen Server
-----------------------------
VPS General Discussions
-----------------------------
=> Windows VPS Servers
=> Linux VPS servers
-----------------------------
VPS providers
-----------------------------
=> Review Windows VPS provider
=> Review Linux VPS provider
-----------------------------
System Administration
-----------------------------
=> Site and Server security
=> Server Administration
=> Apache
=> Microsoft IIS
-----------------------------
Web Hosting
-----------------------------
=> Windows Hosting
=> Linux Hosting
-----------------------------
Databases
-----------------------------
=> MSSQL server
=> MySQL
-----------------------------
How to's
-----------------------------
=> WHM/cPanel
=> IIS
=> Smartermail
=> Virtuozzo
=> HyperVM
=> VDSmanager