It is possibly a permissions problem with the mysql server. I have just been through all this and it took me a week to find out I had the wrong permissions on the data directory. As soon as the ownership and group were changed to mysql then all was well. Of course this is only the case if the data directory is not in the default directory. Another possibility is that /etc/my.cnf is not allowing network clients to access the database. If the client is run on localhost then it should be OK. Try to access the database from a shell with
CODE
[somebody@somewhere]$mysql -u root
If you get the mysql prompt then the server is running correctly. Just enter 'quit' at the mysql prompt.
Error "#2002 is a very obscure output and basically means the data directory is not accessible for whatever reason.