I am a newbie in LAMP administration. I have tried a few times installing mysql. Currently, i have MySQL 5.0 installed in my CentOS 5.5 desktop.After changing the MySQL versions a few times, i still got the error.
I am always stuck with these 2 errors here:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Access denied for user 'root'@'localhost' (using password: NO)
Whenever i managed to solve either 1, another 1 error would occur.
These are my link reference: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
http://www.webhostingtalk.com/showthread.php?t=875255
I also have already tried to reset the root password.
And whenever i logged in the mysql through:
mysqld_safe --skip-grant-tables &,
i will always end up with:
Query OK, 0 rows affected (0.00 sec)
Rows matched: 0 Changed: 0 Warnings: 0
Can anyone help me solve this please?