I’m following the tutorial on devshed, but when I go to “http://localhost/ci/index.php/helloworld/”. I get the error, “
A Database Error Occurred
Unable to connect to your database server using the provided settings.
“.
These are the settings that I have in databases.php:
$db[‘default’][‘hostname’] = “localhost”;
$db[‘default’][‘username’] = “root”;
$db[‘default’][‘password’] = “root”;
$db[‘default’][‘database’] = “mydatabase”;
$db[‘default’][‘dbdriver’] = “mysql”;
$db[‘default’][‘dbprefix’] = “”;
$db[‘default’][‘pconnect’] = TRUE;
$db[‘default’][‘db_debug’] = TRUE;
$db[‘default’][‘cache_on’] = FALSE;
$db[‘default’][‘cachedir’] = “”;
$db[‘default’][‘char_set’] = “utf8”;
$db[‘default’][‘dbcollat’] = “utf8_general_ci”;
I went to phpMyAdmin in wamp and added the mydatabase mysql database and tried to add a password, but after that happened. It said a password was not set for mydatabase.
Can anyone tell me how to set this up in wamp correctly?