Ubuntu - apache/MySQL problem after reboot

Soldato
Joined
2 May 2004
Posts
19,950
Hi,

Rebooted my Ubuntu server earlier today, when it came back up I got this error on the pages that are using MySQL:

Fatal error: Call to undefined function: mysql_connect() then it carries on to say in what file the error is.

I have tried rebooting again, no luck.

Any ideas what could be causing the problem?

Thanks
Craig.
 
If you are using PHP5 and you are using PHP from the repository, is the package: php5-mysql installed and configured? If using PHP4, is php4-mysql installed? Have look at any PHP logs (should reside in /var/logs or something similar). The problem isn't SQL, it sounds like the MySQL module isn't installed and hence can't find the function.
 
Back
Top Bottom