MySQL issues with /var/lib/mysql/mysql.sock

Hey guys,

I'm having major issues with MySQL on a network for my local campus.

I was asked to install MySQL but am having issues. I tried the basic uploading of all RPMs (through SFTP) and starting rpm -i MySQL* but found myself with apparent conflicts. I looked to see if MySQL was already installed and sure enough it was. However, I'm receiving the infamous error:

[root@dl320 mysql]# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I tried to locate -u mysql.sock but that came up empty.

So far I have been able to rpm -e most of the ones found while running rpm -qa | grep -i mysql . I got down to:
[root@dl320 lib]# rpm -qa | grep -i mysql
php-mysql-4.0.4pl1-9
mysql-3.23.36-1
before I could not install because mysql-3.23.36-1 said it couldn't be uninstalled because of a dependency by php-mysql-4.0.4pl1-9, yet that file claimed to be uninstalled while running rpm -e.

If anyone could post suggestions on how to completely remove this previous installation, I have all 4 necessary (new) RPMs waiting to be installed...

Thanks!

Regards,
Patrick

 

 

 

 

Top