Variable for `/bin/hostname`?
Posted: 09. August 2011 23:42
I've moved my mysql data files to an alternate directory. Had problems with "/opt/lampp/lampp stop" not terminating mysqld or mysqld_safe. Had to use "kill -9 #####" to terminate the two procs. I also noted that the {machine name}.pid file was being written to the new alternate mysql data directory and it was not being deleted upon "stop". Dug around a bit in /opt/lampp/lampp and found that a section of code that stopped mysql contained the following
- Code: Select all
if test -f /opt/lampp/var/mysql/`/bin/hostname`.pid
- Code: Select all
pid-file = /opt/lampp/var/mysql/{machine name}.pid