Advertisement:

Author Topic: SMF connection error  (Read 411 times)

Offline pulp999

  • Newbie
  • *
  • Posts: 4
SMF connection error
« on: February 28, 2019, 10:47:34 PM »
Hi, I'm getting this message:

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

I uploaded repair_settings.php and when I run it it says value not found next to database...recommended setting MYSQL

Do I need to set MySQL somewhere?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,524
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF connection error
« Reply #1 on: February 28, 2019, 10:54:42 PM »
Yes, check your settings_bak.php file might have the old information in there.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline pulp999

  • Newbie
  • *
  • Posts: 4
Re: SMF connection error
« Reply #2 on: February 28, 2019, 11:00:34 PM »
I tried that....exactly the same result

Offline pulp999

  • Newbie
  • *
  • Posts: 4
Re: SMF connection error
« Reply #3 on: February 28, 2019, 11:12:16 PM »
I attached my screenprint from repair_settings.php

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,244
Re: SMF connection error
« Reply #4 on: March 01, 2019, 12:17:04 AM »
The mysql error doesn't necessarily mean anything, it's often displayed by repair_settings when there's no problem.  Check your database settings in cpanel, your host may have changed something.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,551
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: SMF connection error
« Reply #5 on: March 01, 2019, 12:40:05 AM »
Well, no - if you see that error there is a problem.
You are right though, that the problem may be on the hosts side.

You can also try uploading a settings.php file from the installer package, and running repair_settings twice. First to correct all the DB settings, then to correct all the rest of the settings as needed.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline doug_ips

  • Jr. Member
  • **
  • Posts: 298
Re: SMF connection error
« Reply #6 on: March 01, 2019, 01:34:10 AM »
Hi, I'm getting this message:

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

I uploaded repair_settings.php and when I run it it says value not found next to database...recommended setting MYSQL

Do I need to set MySQL somewhere?

This error usually occurs when the database details are not entered correctly at the settings.php file. Double check them to make sure that they contain the correct details. If that is the case, then contact your host. It might be that either they are doing some maintenance work in their servers.


Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,244
Re: SMF connection error
« Reply #7 on: March 01, 2019, 11:57:17 AM »
Well, no - if you see that error there is a problem.

repair_settings reports the error often on many of the servers I've worked on, sometimes it's the problem, usually it's not.  Something else triggers the error (don't know what), once everything else is fixed error clears.


Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,551
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: SMF connection error
« Reply #8 on: March 01, 2019, 11:59:48 AM »
I can understand that, though I haven't encountered that myself - but this was basically what that was aimed at.
it's often displayed by repair_settings when there's no problem. 
May be I misunderstood what you meant to say.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,244
Re: SMF connection error
« Reply #9 on: March 01, 2019, 12:13:04 PM »
Haven't been able to replicate it on test install, next time I see it will try to run it down.