HOW TO install & configure DirectyCMF on different databases
Posted: Jun 2nd, '15, 18:06
Directy CMF uses PDO, so if you want to use another database, than MySQL you have to perform following steps:
1. Open protected/data/schema.mysql.sql and corrent the syntax to the database driver you want to use, for ex.: PostgreSql.
2. Rename the file into schema.postgresql.sql
3. Open protected/modules/setup/controllers/SetupController.php and replace each occurrence of word "mysql" with required driver, for ex.: "postgresql".
That's all!
Now you may run setup.
1. Open protected/data/schema.mysql.sql and corrent the syntax to the database driver you want to use, for ex.: PostgreSql.
2. Rename the file into schema.postgresql.sql
3. Open protected/modules/setup/controllers/SetupController.php and replace each occurrence of word "mysql" with required driver, for ex.: "postgresql".
That's all!
Now you may run setup.