I ran a clean install on Debian 8. Per Dreamfactory wiki instructions and then modified the /databases/database.config.php file to connect to a remote mysql database where I pre-created the dreamfactory (empty) database and username/pw combo. The Dreamfactory log (web.mysite.log) shows that it keeps trying to connect as dsp_user@localhost. The logged error is,
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
This even though my database.config.php file specifies a totally different db connection string and username (not dsp_user.) such as,
return array(
‘connectionString’ => ‘mysql:host=24.123.123.134;port=3306;dbname=dreamfactory’,
‘username’ => ‘someusername’,
‘password’ => ‘somepassword’,
‘emulatePrepare’ => true,
‘charset’ => ‘utf8’,
‘enableProfiling’ => defined( ‘YII_DEBUG’ ),
‘enableParamLogging’ => defined( ‘YII_DEBUG’ ),
‘schemaCachingDuration’ => 3600,
);
I tried restarting the server to no avail. The only way I can get Dreamfactory to run is to locally install mysql server and mysql client and use the default settings. It will not log trying to connect to the mysql server specified in the config, and that mysql server logs no login attempts (there is no traffic.)
I am sure the remote database is reachable as I can configure Dreamfactory to serve it as a REST API and I can also telnet to it from the Dreamfactory instance.