CodeIgniter Forums

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


I am trying to troubleshoot

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
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


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