Connection problems.

Status
Not open for further replies.
Messages
18
Reaction score
0
Points
0
After the move I had an issue that we resolved by changing the server setting in Settings.php to localhost. Everything worked for for about a day and since then I get the following message whenever I try to check the page.

Connection Problems

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
After the move I had an issue that we resolved by changing the server setting in Settings.php to localhost. Everything worked for for about a day and since then I get the following message whenever I try to check the page.

Connection Problems

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

Hi,

goto mysql databases in your Cpanel and

drop user(Don't delete user or database) then
re assign the user to database by giving all privileges

And check the forum.
 
Messages
18
Reaction score
0
Points
0
Removing and re-adding the user is not fixing the problem. My site was working briefly a couple of days ago, so it has been functional since the move.
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
Removing and re-adding the user is not fixing the problem. My site was working briefly a couple of days ago, so it has been functional since the move.

Are you able to see the database and tables in your phpmyadmin.
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
Yes, I can see the db and am able to view it's structure table

Just confirm that you are using the correct database information. check in your settings.php

########## Database Info ##########
$db_server = 'localhost';
$db_name = 'cpanelusername_databsename';
$db_user = 'cpanelusername_databaseusername';
 
Last edited:
Messages
18
Reaction score
0
Points
0
Not quite

$db_server = 'localhost';
$db_name = 'jakelamb_smf';
$db_user = 'jakelamb_smf';

Where jakelamb is the cPanel username and smf is the database

Should the last entry be

$db_user = 'jakelamb_jakelamb_smf';

where jakelamb_smf is the db username?

Edit: tested the above fix, still getting the connection problem message
 
Last edited:

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
Not quite

$db_server = 'localhost';
$db_name = 'jakelamb_smf';
$db_user = 'jakelamb_smf';

Where jakelamb is the cPanel username and smf is the database

Should the last entry be

$db_user = 'jakelamb_jakelamb_smf';

where jakelamb_smf is the db username?

No, no change, the above information is correct. means jakelamb_smf is correct if you given smf while creating the database it will be jackelamb_smf.
 
Last edited:

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
Check your "remote mysql" in your cpanel whether it set a %
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Removing and re-adding the user is not fixing the problem. My site was working briefly a couple of days ago, so it has been functional since the move.

You have to make sure to check ALL PRIVILEGES when that screen comes up. It is unchecked by default.
 
Messages
18
Reaction score
0
Points
0
not yet. the computer i am currently on is behind a firewall that will not let me download the file. i will do so this evening. thanks for the help.
 
Messages
18
Reaction score
0
Points
0
ok, finally got some time to do this. ran the repair_setting.php and everything matched the recommended settings. however I got an error message at the top of the page that reads:

Some settings are not being shown because the MySQL connection information is incorrect


In the remoteSQL section of cPanel I have a fourth entry under the Access Hosts

mysql-boru.x10hosting.com

could this be causing the issue?
 
Last edited:
Status
Not open for further replies.
Top