34 lines
957 B
PHP
Executable File
34 lines
957 B
PHP
Executable File
<?php
|
|
/**
|
|
* @Author: 嗨噜客(三亚)<fm453>
|
|
* @Date: 2025-04-10 23:19:15
|
|
* @FilePath: addons-ctms/config/db-local.php
|
|
* @Description:
|
|
* @Email: 393213759@qq.com
|
|
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
|
|
*/
|
|
|
|
$config = [
|
|
'components' => [
|
|
'db' => [
|
|
'class' => 'yii\db\Connection',
|
|
'dsn' => 'mysql:host=127.0.0.1;dbname=sass',
|
|
'username' => 'sass',
|
|
'password' => 'ejxsrxZCP34xNjF2',
|
|
'charset' => 'utf8',
|
|
'tablePrefix' => '',
|
|
// 'attributes' => [PDO::ATTR_CASE => PDO::CASE_LOWER], //解决mysql8列值字母大小不一
|
|
],
|
|
'ac' => [
|
|
'class' => 'yii\db\Connection',
|
|
'dsn' => 'mysql:host=127.0.0.1;dbname=ctms',
|
|
'username' => 'ctms',
|
|
'password' => 'bm2a7BrJzWN1nSsk',
|
|
'charset' => 'utf8',
|
|
'tablePrefix' => '',
|
|
],
|
|
],
|
|
];
|
|
|
|
return $config;
|