SMF was unable to connect to the database

Started by nadeem34, November 03, 2018, 01:56:35 PM

Previous topic - Next topic

nadeem34

Hello everyone and admin please help me.

I backed up my website and after that i uninstall my smf script from cpanel due to some mods problem. Now I imported my old backup through phpmyadmin and then install the smf script again. I also changed the database name and user from settings.php but still website shows the error
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

Please help me how can i connect with old database.
Creative ways to make money fast
https://gotryus.com/

Kindred

Well, from the error message, it would appear that you did not put in the correct connection information to point to your database....


Also, Please do not start multiple topics of the exact same message....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

Did you import the backup into the same database?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

nadeem34

Quote from: Sir Osis of Liver on November 03, 2018, 05:30:51 PM
Did you import the backup into the same database?

First i created the database from MySQL® Databases ===> Create new database and then imported my database file into that database. One thing another why it is showing 0mb size(Please see attached image) in database section although I uploaded the database.

Please tell me how can i put correct database information
Creative ways to make money fast
https://gotryus.com/

Sir Osis of Liver

If server is reporting empty database, import failed.  How large is the database?  Did you import it with phpmyadmin?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

nadeem34

Quote from: Sir Osis of Liver on November 04, 2018, 10:01:34 PM
If server is reporting empty database, import failed.  How large is the database?  Did you import it with phpmyadmin?

The backup size is 73MB and i think it is not large that much. Yes i imported with phpmyadmin and i received the message your backup has been successfully imported.
Creative ways to make money fast
https://gotryus.com/

Sir Osis of Liver

Reading your other topic, looks like import was not completed successfully.  Phpmyadmin will have problems importing a 73 mb database on some hosts, most often chokes on _messages table, never gets to _settings.  Does your host control panel have a restore utility?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: