18 lines
476 B
PHP
18 lines
476 B
PHP
<?php
|
|
$host = '127.0.0.1';
|
|
$user = 'root';
|
|
$password = '';
|
|
$database = 'phplist';
|
|
return [
|
|
'class' => 'yii\db\Connection',
|
|
'dsn' => "mysql:host=$host;dbname=".$database,
|
|
'username' => $user,
|
|
'password' => $password,
|
|
'charset' => 'utf8',
|
|
'attributes' => [PDO::ATTR_CASE => PDO::CASE_LOWER],
|
|
// Schema cache options (for production environment)
|
|
//'enableSchemaCache' => true,
|
|
//'schemaCacheDuration' => 60,
|
|
//'schemaCache' => 'cache',
|
|
];
|