News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Settings.php Settings and problems

Started by richwig83, March 25, 2014, 06:02:02 PM

Previous topic - Next topic

richwig83

Hi everyone.

We are occasionally getting the 'Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later' problem.

Now I have looked at the settings PHP and something doesnt seem right.

This is what we have....

########## Database Info ##########
$db_server = 'localhost';
$db_name = 'poundsw_forum';
$db_user = 'poundsw_forum';
$db_passwd = 'xxxxxxxxxx';
$db_prefix = 'smf_';
$db_persist = 0;
$db_error_send = 1;



BUT... in the SMF admin panel the database name is "mk5golfg_forum" In Cpanel.. the database is also named "mk5golfg_forum"

Shouldnt these be the same? How it the forum even working if the settings.php file is looking for "poundsw_forum"


Anyone shed any light  please?

Thanks

Richard

shadow82x

"poundsw_forum" has to exist if SMF is able to connect to it. I would double check cpanel. If the error is sporadic its an indication of hosting related issues when it tries to reach the database.
Colin B
Former Spammer, Customize, & Support Team Member

richwig83

Quote from: mcblaber on March 25, 2014, 06:15:51 PM
"poundsw_forum" has to exist if SMF is able to connect to it. I would double check cpanel. If the error is sporadic its an indication of hosting related issues when it tries to reach the database.

poundsw_forum doesnt exist...

All SQL Databases    1 / ∞

mk5golfg_forum       1757.11 MB      Delete Database


strange eh?  :o

Bobby

Quote from: richwig83 on March 25, 2014, 06:26:56 PM
poundsw_forum doesnt exist...
All SQL Databases    1 / ∞
mk5golfg_forum       1757.11 MB      Delete Database

strange eh?  :o
Try to repair settings with your database forum is "mk5golfg_forum"!

richwig83

Quote from: Bobby on March 25, 2014, 07:30:09 PM
Quote from: richwig83 on March 25, 2014, 06:26:56 PM
poundsw_forum doesnt exist...
All SQL Databases    1 / ∞
mk5golfg_forum       1757.11 MB      Delete Database

strange eh?  :o
Try to repair settings with your database forum is "mk5golfg_forum"!


I darent mess with it... for fear of breaking it!  :-\

Shambles

Are you sure you're looking at the correct Settings.php file? The correct one will be in the root folder of your forum (ie, at the same level as your Sources and Themes folders).

richwig83

Quote from: Shambles on March 26, 2014, 07:19:06 AM
Are you sure you're looking at the correct Settings.php file? The correct one will be in the root folder of your forum (ie, at the same level as your Sources and Themes folders).


:laugh:

oops!


########## Database Info ##########
$db_server = '127.0.0.1';
$db_name = 'mk5golfg_forum';
$db_user = 'mk5golfg_forum';
$db_passwd = 'xxxxxxxx';
$db_prefix = 'smf_';
$db_persist = 1;
$db_error_send = 1;



so thats all in order then!  ::)

Advertisement: