swoole-framwork/app/config/db.php

25 lines
628 B
PHP
Raw Normal View History

2024-05-20 11:51:07 +08:00
<?php
2024-05-21 14:33:56 +08:00
2024-05-20 11:51:07 +08:00
return [
'default' => [
2024-05-21 14:33:56 +08:00
'driver' => 'mysql',
'host' => '127.0.0.1',
2024-05-22 14:49:06 +08:00
'database' => 'blog',
2024-05-21 14:33:56 +08:00
'username' => 'root',
'password' => '123456',
'port' => 3306,
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
'prefix' => 'eb_',
],
'db2' => [
'driver' => 'mysql',
'host' => '127.0.0.1',
'database' => 'test',
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],
2024-05-20 11:51:07 +08:00
];