webman/config/database.php

48 lines
1.5 KiB
PHP
Raw Normal View History

2025-02-15 12:13:10 +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
*/
return [
'default' => 'mysql',
'connections' => [
// 'mysql' => [
// 'driver' => 'mysql',
// 'host' => '149.129.107.38',
// 'port' => '3306',
// 'database' => 'wechatapplet',
// 'username' => 'wechatapplet',
// 'password' => 'Br6D722xXGB4tR7Z',
// 'charset' => 'utf8mb4',
// 'collation' => 'utf8mb4_general_ci',
// 'prefix' => '',
// 'strict' => true,
// 'engine' => null,
// ],
'mysql' => [
'driver' => 'mysql',
'host' => '127.0.0.1',
'port' => '3306',
'database' => 'app_hd',
'username' => 'app_hd',
'password' => 'fmW4NwwXMxN8ShSM',
// 'username' => 'root',
// 'password' => '123456',
2025-02-15 12:13:10 +08:00
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
],
];