Τετάρτη, Δεκεμβρίου 14, 2005

FAQ: My site fails to load and shows the following message...

Does your site appear to be down for no reason. Think again. Read the following...

(Referencing user toubkal from:
http://forum.joomla.org/index.php?topic=3647.msg33302)


FAQ: My site fails to load and shows the following message:

This site is temporarily unavailable.
Please notify the System Administrator
3

What might this mean?

Answer:

The number following the message indicates a database problem. The error number is generated by joomla/mambo and error numbers 1, 2 and 3 indicate the following:

Error 1 = FATAL ERROR: MySQL support not available.
Error 2 = FATAL ERROR: Connection to database server failed.
Error 3 = FATAL ERROR: Database not found

my view in plain speak would be:

error 1
mambo attempts to talk with mysql on the server and fails to even talk to it - this might be because the server does not have mysql installed at all or maybe it is not configured correctly

technically: function_exists( 'mysql_connect' ) FAILS

error 2
sql is installed but for some reason we cannot login to mysql (this is where it tries the host, username, password stuff) - may indicate that these details are wrong in your config

technically: $this->_resource = @mysql_connect( $host, $user, $pass ) FAILS

error 3
I think this is that it passed 1 and 2 so you can connect to mysql but not select the specific database

technically: mysql_select_db($db) FAILS