Unable to connect to database

Read 3941 times
Ok, I had CC installed on a test server and, after a few hiccups, all was working well.

So, I uninstalled from the test server and installed it on my production server. Now, when I go to configrure it I get this error.

I know the database, user, and password are correct. So, what else can it be?

Fatal error: Uncaught exception 'Exception' with message 'Could not connect to database: Permission denied' in /usr/local/centovacast/system/class_CCSQL.php:40 Stack trace: #0 /usr/local/centovacast/system/class_CCSQL.php(64): CCSQL->__construct('cent', 'localhost', 'root', '_____', false) #1 /usr/local/centovacast/web/install.php(108): CCSQL::singleton('cent', 'localhost', 'root', '______') #2 /usr/local/centovacast/web/install.php(436): install_database(Array) #3 {main} thrown in /usr/local/centovacast/system/class_CCSQL.php on line 40
Last Edit: February 26, 2018, 10:19:19 am by trumpetradio
Figured it out.

I had to set the host to 127.0.0.1