Question : Mysql server failed to start on redhat AS4

Hi All,

I have installed MySQL server 4.1 standard edition on RH AS4. I also have installed MySQL Client on the same machine. The Installation was OK and successful for both server and client.

When i installed MySQL server it was running automatically after installation and i was able to see its proceses.  After that for some testing i killed its process and tried to start it again. I am trying by this command but it doesnt starting and giving me this error.

[root@test-server ilyas]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
[root@test-server ilyas]#
[root@test-server ilyas]# mysql -u root@localhost
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
[root@test-server ilyas]#

How i can start mysql server and connect its Database?

Kind Regards,

Terhana

Answer : Mysql server failed to start on redhat AS4

uninstall the mysql-server
delete /var/lib/mysql (make a backup before)
install mysql-server
start mysqlserver and it should work like a fresh install.
Random Solutions  
 
programming4us programming4us