workerman/config/database.php

37 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2024-04-16 10:41:39 +08:00
<?php
/**
* This file is part of webman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* @link http://www.workerman.net/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
2024-04-20 11:04:06 +08:00
return [
// 默认数据库
'default' => 'mysql',
// 各种数据库配置
'connections' => [
'mysql' => [
'driver' => 'mysql',
'host' => '127.0.0.1',
'port' => 3306,
2024-04-20 15:39:33 +08:00
'database' => 'sql',
'username' => 'sql',
'password' => 'arxYBLyp3nMePn5C',
2024-04-20 11:04:06 +08:00
'unix_socket' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
],
];