Site off-line
The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.

If you are the maintainer of this site, please check your database settings in the settings.php file and ensure that your hosting provider's database server is running. For more help, see the handbook, or contact your hosting provider.

I have moved my sql database from local to webserver and all my files and know this problem.

Anybody there can help.

Comments

avpaderno’s picture

Assigned: Toast-1 » Unassigned
stevenpatz’s picture

Priority: Critical » Normal
ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

please check your database settings in the settings.php file and ensure that your hosting provider's database server is running

Did you check that file and made sure it contains the correct info?

- Arie

firfin’s picture

Title: Drupal doesn't connect to the database server » Site offline.. Please help. Experiencing same problem

Hi there,

I am experiencing the same problem. And there was indeed an error in my settings.php file (it was still set to localhost instead of the adress of the mysql server).

However I still can't connect. I have tried the following script to connect to the mysql server and this works (i.e. it connects without error and prints the DBname.)

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
$db_list = mysql_list_dbs($conn);
while ($row = mysql_fetch_object($db_list)) { echo $row->Database . "\n"; }

So I know for certain I'm using the correct user, pass etc.
Any clues?

I found the answer, for me at least
I was using mysqli: with php4 .
Also see http://drupal.org/node/146876

avpaderno’s picture

Title: Site offline.. Please help. » Drupal doesn't connect to the database server

@firfin: the issue title is the title for the report, not for the comment you are writing.

ainigma32’s picture

Title: Site offline.. Please help. Experiencing same problem » Drupal doesn't connect to the database server
Status: Postponed (maintainer needs more info) » Fixed

Looks like HoZDK won't be posting any feedback so I'm setting this to fixed.

Feel free to reopen if you think that is wrong.

- Arie

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mornhy’s picture

I am trying to move Drupal from my local pc onto an internal server and am also getting the Drupal message the site is off line and I should check the database settings in settings.php. I've followed the comments and have changed the $db_url to the correct pathway and when that didn't work set it to use the mysqli connection rather than mysql, as suggested in http://drupal.org/node/146876, but am still having no luck. Originally I had installed apache, php, mysql separately, but that didn't work (although I did at least get the drupal installation page), but the problem seemed to be that mysql and php wouldn't talk to each other, so elected to use Wampserver as they would be preconfigured to work. I didn't have any of these problems with I installed locally, but I don't have full control of the server so there are parts that I am having to ask the server administer to do.

Can anyone suggest anything else I can try?