I’ve been trying to install my copy of SuiteCRM for ages now and I keep getting this message: Database error: Could not connect to the database. Please refer to suitecrm.log for details.
I’ve done a fresh install and the installation freezes on creating the db.
Have you tried logging into the database with the same credentials you are using in the SuiteCRM install wizard to ensure you are using the correct database credentials?
Are you sure your database credentials are correct? Can you log into your database using the credentials you have via command line or via phpmyadmin or another database administration tool.
Permissions shouldn’t effect your database connection its more likely to be your database login credentials that are the issue.
I’ve installed the CRM to a linux server which is hosted in the UK I guess. I’ve just downloaded the log file and have seen the following:
2016-05-19 17:14:11…installerHook: Could not find custom/install/install_hooks.php
2016-05-19 17:14:13…installerHook: Could not find custom/install/install_hooks.php
2016-05-19 17:20:05…installerHook: Could not find custom/install/install_hooks.php
2016-05-19 17:20:09…installerHook: Could not find custom/install/install_hooks.php
I will admit I have not idea if this is preventing the install.
I believe the SQL is working fine, as the first time in installed the CRM it simply froze on 2 of 2, I’m guessing hitting the refresh page after 30 mins didnt help but it really wasnt going to load…
Should I just delete the entire thing and start again?
Just doing it now… looks like it will simply sit there… I’m now getting this message: Creating SuiteCRM application tables, audit tables and relationship metadata.
[Thu May 19 18:20:09 2016] [error] [client 82.20.203.10:39335] AH01215: PHP Fatal error: Uncaught exception ‘Exception’ with message 'Could not connect to the database. Please refer to suitecrm.log for details.
Thu May 19 18:20:15 2016 [44163][-none-][FATAL] Could not connect to DB server www.dottmedia.com as suite-win-u-051524. port : Access denied for user ‘suite-win-u-051524’@’%’ to database ‘suitecrm’