MySql error after recompilate

neojick

Verified User
Joined
Jan 11, 2010
Messages
11
Hi, sorry for my poor english, I'm french.

I've got new serveur on Debian 5 (Lenny) 32 bits and DirectAdmin.
I need to have 'php-soap' on this server, so, thanks Google, I find the process to do it :

Code:
apt-get install php-soap
nano /usr/local/directadmin/custombuild/configure/ap2/configure.php5
==> add at the end --enable-soap
cd /usr/local/directadmin/custombuild/
./build php all

That's ok, but after this, user's backups (on admin profile) are impossible, I've got this error :
Unable to restore database mydb_forum.sql to mydb_forum : ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Database is create but empty. I can log on phpMyAdmin, add tables...
On user's profile I can create news databases.

Before recompilate, no errors. backups works fine ! After, this error.
If I restart mysql, he dead. PhpMyadmin error, and on user's profile when I want create database I've got this message :

Error connecting to MySQL: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

How repair this ?

Lots of thanks.
 
Last edited:
follow this guide for optimize your my.cnf
Code:
http://help.directadmin.com/item.php?id=44

then do this command for tell to mysql where he have to look for socket file
Code:
echo "socket=/tmp/mysql.sock" >> /etc/my.cnf


this should fix your problem.
 
Thanks, it's better now. But I need to delete file /etc/mysql/my.cnf
How can I know what was break mysql ?
 
mysql was looking for socket in a wrong position, with the line i made you add you pointed mysql to the correct socket position
 
Thanks, but I don't undersand why there are this problem. I'm not the unique user who use DirectAdmin on Debian 5 32bits ?
 
Back
Top