Skip to content

Commit 459329b

Browse files
committed
数据库
1 parent 87a491f commit 459329b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@
1212
* 后台示例:http://admin.loadata.com 测试账号:demo 测试密码:123456
1313
* 交流群:953021758
1414
* 我的博客:http://blog.loadata.com
15+
* 数据库:`admin.sql` 自己倒入mysql,然后修改`config/db.php`配置
16+
17+
```php
18+
return [
19+
'class' => 'yii\db\Connection',
20+
'dsn' => 'mysql:host=localhost;dbname=admin',
21+
'username' => 'root',
22+
'password' => '123456',
23+
'charset' => 'utf8',
24+
25+
// Schema cache options (for production environment)
26+
//'enableSchemaCache' => true,
27+
//'schemaCacheDuration' => 60,
28+
//'schemaCache' => 'cache',
29+
];
30+
```
1531

1632
系统截图:
1733

0 commit comments

Comments
 (0)