Need help with mysql! Urgent!

bamorim2

New member
Joined
Nov 13, 2008
Messages
4
Hello, today I was trying to update my mysql and i don't know how but the updating stopped.

Then, I tried again with ./build update_versions.

Everything updated normally, but when I tried to restart the webserver the mysql didin't started. I try to start it manually and got this error:
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I've looked on google and tried everything and nothing.

There's no mysql.sock anywhere.


I have a recent database backup, so I want to know how to remove completely mysql and install it again


I'm using custombuild 1.1

I tried with ./build mysql but it isn't working.



I need help, and fast please.

Gratefully,
Bernardo Amorim
 
Please post the contents of /etc/my.cnf and /etc/mysql/my.cnf, thank you.
 
/etc/my.cnf
Code:
[mysqld]
local-infile=0

/etc/mysql/my.cnf

Code:
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host     = localhost
user     = debian-sys-maint
password = password*
socket   = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
user     = debian-sys-maint
password = password*
socket   = /tmp/mysql.sock
basedir  = /usr
password* changed for security reasons.

There is the problem? socket = /var/run/mysqld/mysqld.sock

Thanks very much!

Att,
Bernardo
 
Try:
Code:
mv /etc/mysql/my.cnf /etc/mysql/my.cnf.back
ln -s /etc/my.cnf /etc/mysql/my.cnf
/etc/init.d/mysqld restart
 
Well, I'm using custombuild, so the mysql isn't
/usr/local/mysql/bin/mysql
?

And I tried that way and nothing.
=/

Code:
XRF001:/etc/init.d# ./mysqld start
Starting mysqld:                [ OK ]
XRF001:/etc/init.d# ./mysqld restart
Stopping mysqld:                [ FAILED ]
Starting mysqld:                [ OK ]

Thanks,
Bernardo
 
Last edited:
Back
Top