2014-01-04 06:28:33 +08:00
|
|
|
<?php
|
|
|
|
|
2024-02-09 12:15:09 +08:00
|
|
|
use yii\db\Connection;
|
|
|
|
|
2014-01-04 06:28:33 +08:00
|
|
|
return [
|
2024-02-09 12:15:09 +08:00
|
|
|
'class' => Connection::class,
|
|
|
|
'dsn' => 'mysql:host=localhost:3307;dbname=yii2basic',
|
2014-03-16 12:46:16 +08:00
|
|
|
'username' => 'root',
|
2024-02-09 12:15:09 +08:00
|
|
|
'password' => 'chenx221',
|
2014-03-16 12:46:16 +08:00
|
|
|
'charset' => 'utf8',
|
2024-02-09 12:15:09 +08:00
|
|
|
'schemaMap' => [
|
|
|
|
'mysql' => SamIT\Yii2\MariaDb\Schema::class
|
|
|
|
]
|
2017-06-30 23:00:32 +08:00
|
|
|
|
|
|
|
// Schema cache options (for production environment)
|
|
|
|
//'enableSchemaCache' => true,
|
|
|
|
//'schemaCacheDuration' => 60,
|
|
|
|
//'schemaCache' => 'cache',
|
2014-01-04 06:28:33 +08:00
|
|
|
];
|