PHP完全自学手册(珍藏版) 中文pdf扫描版下载
db.php
01 |
<?php |
02 |
return [ |
03 |
'class' => 'yii\db\Connection' , |
04 |
'dsn' => 'mysql:host=localhost;dbname=reportsa_macromoney' , // MySQL, MariaDB |
05 |
//'dsn' => 'sqlite:/path/to/database/file', // SQLite |
06 |
//'dsn' => 'pgsql:host=localhost;port=5432;dbname=mydatabase', // PostgreSQL |
07 |
//'dsn' => 'cubrid:dbname=demodb;host=localhost;port=33000', // CUBRID |
08 |
//'dsn' => 'sqlsrv:Server=localhost;Database=mydatabase', // MS SQL Server, sqlsrv driver |
09 |
//'dsn' => 'dblib:host=localhost;dbname=mydatabase', // MS SQL Server, dblib driver |
10 |
-->
|