I have been stuck with this problem since installing hive on my server, mySQL.sock had been moved to the temp directory so installatron and directadmin could not access it. I have since modified my.cnf in root and told it to put mySQL.sock back in var/lib/mysql/mysql.sock and made sure the directory was readable by everyone. Now directadmin can access the databases again but all scripts with localhost will not work. Instead you need to use 127.0.0.1. I checked the system and ensured pinging localhost came back to 127.0.0.1 and that host localhost also comes back to 127.0.0.1. I am really getting aggravated with this since its a production server and I am getting emails from clients whos scripts are not working. Can someone help with this or fix it for me. I am willing to pay.