| 123456789101112131415 |
- <?php
- return [
- 'class' => 'yii\db\Connection',
- 'dsn' => 'mysql:host=' . $_ENV['DB_HOST'] . ';dbname=' . $_ENV['DB_NAME'],
- 'username' => $_ENV['DB_USER'],
- 'password' => $_ENV['DB_PASS'],
- 'tablePrefix' => $_ENV['DB_TBL_PREFIX'],
- 'charset' => 'utf8',
- // Schema cache options (for production environment)
- //'enableSchemaCache' => true,
- //'schemaCacheDuration' => 60,
- //'schemaCache' => 'cache',
- ];
|