Linux Server Type: Restoring MySQL SimLink.
If you’re unable to restart mysqld and troubleshooting the cause: if u log into SSH and go to /tmp you may see that there is no simlink
To create a simlink you can do the following:
cd /var/lib/mysql/
touch mysql.sock
chmod 1777 mysql.sock
chown mysql.mysql mysql.sock
Create a symlink for the sock file :-
ln -s /var/lib/mysql/mysql.sock /tmp
Restart mysql :- service mysql restart
Then your MySQL service should be back to normal.

|

|

|

|

|

|
No related posts.
This entry was posted on February 16, 2010, 18:08 and is filed under MySQL. You can follow any responses to this entry through RSS 2.0.
You can leave a response, or trackback from your own site.
No trackbacks yet.
February 17, 2010 - 12:24
Tags: Exim, log, Mail, Restart, Service, SSH
Posted in Linux Tutorials | No Comments
When troubleshooting the Exim log file: tail -f /var/log/exim_mainlog If you need to restart or rebuild Exim, you can dump your databases * /etc/exim.conf * /var/spool/exim/db Which Exim just rebuilds automatically by issuing the following command via SSH: rm -fv /var/spool/exim/db/* Then to start Exim: /scripts/eximup –force | | | | | |
This tutorial is based on Falko Timme’s tutorial for MySQL Cluster 5.0. It shows how to configure a MySQL 5.1 cluster with five nodes: 1 x management, 2 x storage nodes and 2 x balancer nodes. This cluster is load-balanced by an Ultra Monkey package which provides heartbeat (for checking if the other node is [...]
How can I repair corrupt MySQL tables? Every so often, MySQL tables have a way of corrupting themselves. MySQL offers a quick and painless method of repairing those tables. Login to your server via SSH and change directories to the database that is having problems. cd /usr/local/mysql/var/[DBNAME]/ You will need to replace [DBNAME] with the [...]