Initial commit,修正

This commit is contained in:
2025-07-13 19:37:38 +08:00
parent 38ce288e27
commit 65bbd06981
12384 changed files with 3985464 additions and 8 deletions
+49
View File
@@ -0,0 +1,49 @@
<?php
$config = [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=120.79.11.71;dbname=dacms_dev',
'username' => 'dacms_dev',
'password' => 'HS8wRyTT2sKeLdAJ',
'charset' => 'utf8',
'tablePrefix' => '',
'attributes' => [
// use a smaller connection timeout
PDO::ATTR_TIMEOUT => 10,
//使用长链接
PDO::ATTR_PERSISTENT => true,
],
],
//添加CHAT数据库配置(聊天室模块)
'chatdb' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=120.79.11.71;dbname=dacms_dev',
'username' => 'dacms_dev',
'password' => 'HS8wRyTT2sKeLdAJ',
'charset' => 'utf8',
'tablePrefix' => '',
],
//添加REALTY数据库配置(房地产模块)
'realtydb' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=120.79.11.71;dbname=dacms_dev',
'username' => 'dacms_dev',
'password' => 'HS8wRyTT2sKeLdAJ',
'charset' => 'utf8',
'tablePrefix' => '',
],
//添加PAGE数据库配置(页面模块)
'pagedb' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=120.79.11.71;dbname=dacms_dev',
'username' => 'dacms_dev',
'password' => 'HS8wRyTT2sKeLdAJ',
'charset' => 'utf8',
'tablePrefix' => '',
],
],
];
return $config;