Closed (fixed)
Project:
Drupal core
Version:
6.9
Component:
install system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2009 at 21:23 UTC
Updated:
26 Oct 2009 at 12:29 UTC
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
Comment #1
avpadernoComment #2
stevenpatzComment #3
ainigma32 commentedDid you check that file and made sure it contains the correct info?
- Arie
Comment #4
firfin commentedHi 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
Comment #5
avpaderno@firfin: the issue title is the title for the report, not for the comment you are writing.
Comment #6
ainigma32 commentedLooks 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
Comment #8
mornhy commentedI 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?