Welcome Guest, Not a member yet? Register   Sign In
Unable to connect to MySQL (yet again)
#8

[eluser]jcopling[/eluser]
Is there a root password set for MySQL and if so have you tried connecting with those credentials? If not, you may want to try connecting with:

Code:
$db['default']['username'] = "root";
$db['default']['password'] = ""; //or use root password if set

The only reason this may work is if the user 'codeigniter' does not have the appropriate permissions for some reason.

Also, you may want to try a native mysql_connect to see if this will work outside of the CI framework.

Code:
mysql_connect('localhost', 'codeignitor', 'codeigniter') or die('Could not connect: ' . mysql_error();

Also, turn your error log on and see if you can get a more specific error message from that.


Messages In This Thread
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:07 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:20 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:24 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:26 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:30 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:36 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:47 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:49 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:55 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:57 PM
Unable to connect to MySQL (yet again) - by El Forum - 09-22-2008, 02:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB