PDA

View Full Version : Symbolic Links - Persistent?


HeadachesAbound
04-28-2003, 08:12 PM
Is it possible to create a symbolic link and make it stay even if the system is rebooted?

The problem I have is that I have to put the mysql.sock in the /tmp directory to support one app but in order for me to use the mysql command it has to be in something like /var/lib/mysql. I have been using symbolic links to handle the situation but I really wish the link would stay put and be there when I reboot.

sleddog
04-28-2003, 08:59 PM
A symbolic link is not the answer to your problem. You need to tell mysql where to place the mysql.sock file -- in the /tmp directory. To do that edit (or create) the plaintext file my.cnf in the /etc directory, adding this text:


[client]
socket=/tmp/mysql.sock

[mysqld]
socket=/tmp/mysql.sock


Then restart the mysql daemon.

HeadachesAbound
04-28-2003, 10:16 PM
The client entry was the key and fixed my problem.

Thanks sleddog.