I start the mysqld daemon with the "safe_mysqld" command. And that goes fine. Then I issue the command "mysqladmin --socket=/var/lib/mysql/mysql.sock version" and I get several lines of information. So that looks to be fine too.
But when I run a simple php script with only the line "$link_id = mysql_connect("localhost", "", ""), I get the error message --> Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' <---
I am totally stumped. Is this a PHP problem or a MySQL problem?