The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database connection unsuccessful
#17
Would you mind telling me the name of your hosting provider?

It is almost always bad credentials that cause this error. Have you setup a database on this server before?

Sometimes the hostname is not localhost/127.0.0.1. On Dreamhost, it's something like mysql.mydomain.com. Absolutely knowing your host name is important.

Step 2 is your database name. Some systems use your username as a prefix, so even though you create a db called us your system could call that cjm_us

Step 3 your username may be the same thing.

Step 4. You have to know your password.

Finally, not all systems automatically create a database user when they create a new database. It is also possible to have a database and a user and not have them connection. I know this sounds really complicated.

Personally, I would try to create a new database (ideally with some sort of wizard) to make sure that you absolutely know all the associated information.
  Reply


Messages In This Thread
Database connection unsuccessful - by ppp - 06-09-2016, 06:48 AM
Database connection unsuccessful - by mudmin - 06-09-2016, 12:13 PM
Database connection unsuccessful - by brian - 06-09-2016, 12:35 PM
Database connection unsuccessful - by BrownBro - 11-15-2016, 07:49 AM
Database connection unsuccessful - by BrownBro - 11-15-2016, 08:45 AM
Database connection unsuccessful - by mudmin - 11-15-2016, 03:42 PM
Database connection unsuccessful - by cjm1000 - 01-23-2017, 07:31 AM
Database connection unsuccessful - by mudmin - 01-26-2017, 03:47 AM
Database connection unsuccessful - by cjm1000 - 02-28-2017, 09:00 AM
Database connection unsuccessful - by mudmin - 02-28-2017, 01:37 PM
Database connection unsuccessful - by cjm1000 - 02-28-2017, 07:37 PM
Database connection unsuccessful - by mudmin - 02-28-2017, 09:16 PM
Database connection unsuccessful - by raven - 02-28-2017, 11:29 PM
Database connection unsuccessful - by cjm1000 - 03-01-2017, 03:46 AM
Database connection unsuccessful - by mudmin - 03-01-2017, 04:10 AM
Database connection unsuccessful - by cjm1000 - 03-01-2017, 07:05 AM
Database connection unsuccessful - by mudmin - 03-01-2017, 01:06 PM
Database connection unsuccessful - by mudmin - 03-01-2017, 01:07 PM
Database connection unsuccessful - by raven - 03-01-2017, 01:20 PM
Database connection unsuccessful - by cjm1000 - 03-01-2017, 08:01 PM
Database connection unsuccessful - by raven - 03-01-2017, 08:59 PM
Database connection unsuccessful - by raven - 03-01-2017, 09:01 PM
Database connection unsuccessful - by mudmin - 03-02-2017, 02:36 AM
Database connection unsuccessful - by cjm1000 - 03-03-2017, 09:48 AM
Database connection unsuccessful - by mudmin - 03-03-2017, 02:09 PM
Database connection unsuccessful - by cjm1000 - 03-04-2017, 02:07 AM
Database connection unsuccessful - by mudmin - 03-04-2017, 02:11 AM
Database connection unsuccessful - by cjm1000 - 03-04-2017, 09:28 PM
Database connection unsuccessful - by raven - 03-05-2017, 04:03 AM
Database connection unsuccessful - by mudmin - 03-05-2017, 01:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)