add mysql support

This commit is contained in:
crazywhalecc
2022-08-21 16:08:20 +08:00
parent 75e65b082e
commit c7003a7139
12 changed files with 1361 additions and 1 deletions

View File

@@ -80,4 +80,18 @@ $config['file_server'] = [
],
];
/* MySQL 数据库连接配置,框架将自动生成连接池,支持多个连接池 */
$config['mysql'] = [
[
'pool_name' => '', // 默认只有一个空名称的连接池,如果需要多个连接池,请复制此段配置并修改参数和名称
'host' => '127.0.0.1', // 填写数据库服务器地址后才会创建数据库连接
'port' => 3306,
'username' => 'root',
'password' => 'ZhamaoTEST',
'dbname' => 'zm',
'charset' => 'utf8mb4',
'pool_size' => 64,
],
];
return $config;