Failing to connect to database |
02-21-2018, 01:57 PM
(This post was last modified: 02-21-2018, 03:02 PM by ciadmin. Edit Reason: redacted password )
Just started using CodeIgniter today following the tutorial on the site and ran into a problem with setting up the database. Looked around various other forums and sites for a couple hours to no avail of how to fix the problem. My setup is a local MySQL database, CodeIgniter and XAMPP.
The exact error message is: Quote:Message: mysqli::real_connect(): (HY000/1045): Access denied for user 'unityAdmin'@localhost (using password: YES) Now I know the credentials themselves are working fine since I can manually connect to the database via command line or Sequel Pro with the credentials that are in the database.php config file which looks like: PHP Code: $db['default'] = array( Including the MVC code here for reference. Model: PHP Code: <?php Controller: PHP Code: <?php Index View: PHP Code: <h2><?php echo $title; ?></h2> Specific Post: PHP Code: <?php |
Messages In This Thread |
Failing to connect to database - by IcyGrey - 02-21-2018, 01:57 PM
RE: Failing to connect to database - by natanfelles - 02-21-2018, 10:58 PM
RE: Failing to connect to database - by IcyGrey - 02-22-2018, 03:29 AM
RE: Failing to connect to database - by natanfelles - 02-21-2018, 11:00 PM
RE: Failing to connect to database - by IcyGrey - 02-22-2018, 04:35 AM
RE: Failing to connect to database - by adhzim - 03-03-2021, 08:12 AM
RE: Failing to connect to database - by InsiteFX - 02-22-2018, 05:09 AM
RE: Failing to connect to database - by InsiteFX - 03-03-2021, 12:14 PM
RE: Failing to connect to database - by InsiteFX - 03-23-2021, 03:07 AM
|