[eluser]stevenL[/eluser]
I just uploaded CI to a server and it is refusing to connect. I have changed the database.php settings.
The weird thing is, I can connect directly via PHP if I use this:
Code:
<?php
$link = mysql_connect('localhost', 'user', 'user_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
My database settings are set up exactly the same (obviously user, user_password, db_name shown here are not the actual text):
Code:
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "user";
$db['default']['password'] = "user_password";
$db['default']['database'] = "db_name";
$db['default']['dbdriver'] = "mysql";
Am I making some noob error? Do I need to change a setting somewhere else in CI? How can I troubleshoot further?