CodeIgniter Forums

Full Version: Image CRUD
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://127.0.0.1/CI3/

Hello,

I am trying to troubleshoot 

http://www.grocerycrud.com/image-crud

And this is the result:


A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/1044): Access denied for user ''@'localhost' to database 'examples_database'
Filename: mysqli/mysqli_driver.php
Line Number: 202
Backtrace:
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CI3\application\controllers\images_examples.php
Line: 10
Function: database
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CI3\index.php
Line: 315
Function: require_once
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: C:/Program Files (x86)/EasyPHP-Devserver-16.1/eds-www/CI3/system/database/DB_driver.php
Line Number: 436


database.php


PHP Code:
'hostname' => 'localhost',
    
'username' => 'root    ',
    
'password' => '',
    
'database' => 'examples_database'


Can anyone help me gives me advice what to do?
'username' => 'root '

Looks like to many white space