mysql broken, please help!


I spent last 6+ hours researching and now posting for some help as nothing in online discussions have helped…

This is a new dedicated server.
I see that mysql is running on the server
[root@host2 /]# service mysql start
Starting MySQL (Percona Server)… [ OK ]
[root@host2 /]# service mysql status
MySQL (Percona Server) running (18295) [ OK ]
[root@host2 /]#
However, no php applications can connect to it.
I am getting errors like:
Fatal error: Call to undefined function mysql_connect() in
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
it was working before until i updated apache config with php5.4.


nevermind, i just reloaded the server.

If you have any idea what happened, please do reply!

If you upgraded Apache and might have upgraded PHP5 at the same time I guess you had to restart Apache to be able to complete the Apache upgrade process. Relevant error logs from the affected server might also give us some more hints.

Don’t use the deprecated mysql_* API; switch to the mysqli_* API in PHP.