Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: soule - heinäkuu 05, 2007, 05:03:39 IP

Otsikko: Connection Problems!
Kirjoitti: soule - heinäkuu 05, 2007, 05:03:39 IP
When I go to MY forums, It says

"Connection Problems

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

Then I can not get into it! It is a Simple Machines. It is hosted by Pwnd.
Otsikko: Re: Connection Problems!
Kirjoitti: metallica48423 - heinäkuu 05, 2007, 11:19:50 IP
check and ensure the information in Settings.php is correct

The database connection lines begin with $db
Otsikko: Re: Connection Problems!
Kirjoitti: redone - heinäkuu 05, 2007, 11:58:07 IP
If that information is correct then your likely on an oversold server. Look for another host if you can confirm the information is correct.
Otsikko: Re: Connection Problems!
Kirjoitti: edchapman - syyskuu 21, 2007, 11:15:11 IP
I'm getting the same error after moving to a new server. I know the server I have now is not "over sold." I have a vert server with nothing eles on it. I went over my Monthly Bandwidth on my last server. Would that have anything to do with it?
Otsikko: Re: Connection Problems!
Kirjoitti: shadow82x - syyskuu 21, 2007, 11:17:34 IP
Just open up settings.php and make sure your mysql info is correct. If you switched servers you imported the new mysql table correct?
Otsikko: Re: Connection Problems!
Kirjoitti: edchapman - syyskuu 21, 2007, 11:22:46 IP
My settings.php looks fine.
I did import the mysql smf1.sql backup.
Otsikko: Re: Connection Problems!
Kirjoitti: shadow82x - syyskuu 21, 2007, 11:25:14 IP
Confirm it with your new host somehow SMF ca't reach your MYSQL database..
Otsikko: Re: Connection Problems!
Kirjoitti: edchapman - syyskuu 21, 2007, 11:35:05 IP
I can see the table in my phpMyAdmin.
What do you mean by "confirm it with your new host?"
Otsikko: Re: Connection Problems!
Kirjoitti: metallica48423 - syyskuu 21, 2007, 11:37:24 IP
the mysql user must also exist and have access to that database.

It can't work if it can't connect to the database.
Otsikko: Re: Connection Problems!
Kirjoitti: edchapman - syyskuu 21, 2007, 11:45:49 IP
How do I do that?

sorry... you lost me. Not that it's hard to do. :)
Otsikko: Re: Connection Problems!
Kirjoitti: metallica48423 - syyskuu 22, 2007, 12:51:01 AP
do you have cpanel on your hosting?
Otsikko: Re: Connection Problems!
Kirjoitti: edchapman - syyskuu 22, 2007, 04:58:47 IP
yes.. on both.. The server I'm coming from and this new one.
Otsikko: Re: Connection Problems!
Kirjoitti: edchapman - syyskuu 22, 2007, 05:03:14 IP
I did a fresh install of SMF on another site (on the same server) and it worked fine.
Otsikko: Re: Connection Problems!
Kirjoitti: metallica48423 - syyskuu 22, 2007, 05:13:28 IP
onto an existing database? or did you create it?

if you want to send me a pm with all the info, especially the cpanel info for the new server i can take a look.
Otsikko: Re: Connection Problems!
Kirjoitti: edchapman - syyskuu 22, 2007, 05:18:12 IP
When I installed SMF from the cPanel it added the database. I did not need to do anything else.

What cpanel info are you looking for?
Otsikko: Re: Connection Problems!
Kirjoitti: edchapman - syyskuu 22, 2007, 05:20:36 IP
hmm... let me ask this.. My domain is not yet pointing to this server, so I'm pulling this up within the server itself. Would that make a different?
Otsikko: Re: Connection Problems!
Kirjoitti: metallica48423 - syyskuu 22, 2007, 06:47:00 IP
ah, so you used fantastico.

Installing SMF on its own doesn't create the database (it can't), and the same is true if you transfer . so you have to create the database, import it, create the user/pass and link it with the database.

Id wait for it to point, but it may still not work if the user doesn't exist.

check this tutorial out: http://www.tutorialized.com/view/tutorial/Create-mySQL-database-with-cPanel-and-phpMyAdmin/23140
Otsikko: Re: Connection Problems!
Kirjoitti: edchapman - syyskuu 22, 2007, 06:51:57 IP
I'll wait until I get all my sites pointing right and then check things out.