×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Yurik Maz
Added: Oct 18, 2014 9:30 AM
Modified: Oct 18, 2014 9:31 AM
Views: 23
Tags: conf db yii2
Default DB config file for Yii2
  1. <?php
  2. return [
  3.     'class' => 'yii\db\Connection',
  4.     'dsn' => 'mysql:host=localhost;dbname=demo',
  5.     'username' => 'root',
  6.     'password' => '',
  7.     'charset' => 'utf8',
  8.     'enableSchemaCache' => true,
  9. ];
  10.