|
|
|
@ -3,7 +3,7 @@
@@ -3,7 +3,7 @@
|
|
|
|
|
* @Author: witersen |
|
|
|
|
* @Date: 2022-05-07 00:38:48 |
|
|
|
|
* @LastEditors: witersen |
|
|
|
|
* @LastEditTime: 2022-05-07 14:48:43 |
|
|
|
|
* @LastEditTime: 2022-05-09 17:50:37 |
|
|
|
|
* @Description: QQ:1801168257 |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
@ -11,24 +11,24 @@
@@ -11,24 +11,24 @@
|
|
|
|
|
* for MySQL |
|
|
|
|
* config from Medoo 1.7.10 |
|
|
|
|
*/ |
|
|
|
|
return [ |
|
|
|
|
'database_type' => 'mysql', |
|
|
|
|
'server' => 'sas2.witersen.com', |
|
|
|
|
'database_name' => 'svnadmin', |
|
|
|
|
'username' => 'svnadmin', |
|
|
|
|
'password' => 'svnadmin', |
|
|
|
|
'charset' => 'utf8mb4', |
|
|
|
|
'collation' => 'utf8mb4_general_ci', |
|
|
|
|
'port' => 3306, |
|
|
|
|
'prefix' => '', |
|
|
|
|
'logging' => false, |
|
|
|
|
'option' => [ |
|
|
|
|
PDO::ATTR_CASE => PDO::CASE_NATURAL |
|
|
|
|
], |
|
|
|
|
'command' => [ |
|
|
|
|
'SET SQL_MODE=ANSI_QUOTES' |
|
|
|
|
] |
|
|
|
|
]; |
|
|
|
|
// return [ |
|
|
|
|
// 'database_type' => 'mysql', |
|
|
|
|
// 'server' => 'localhost', |
|
|
|
|
// 'database_name' => 'svnadmin', |
|
|
|
|
// 'username' => 'svnadmin', |
|
|
|
|
// 'password' => 'svnadmin', |
|
|
|
|
// 'charset' => 'utf8mb4', |
|
|
|
|
// 'collation' => 'utf8mb4_general_ci', |
|
|
|
|
// 'port' => 3306, |
|
|
|
|
// 'prefix' => '', |
|
|
|
|
// 'logging' => false, |
|
|
|
|
// 'option' => [ |
|
|
|
|
// PDO::ATTR_CASE => PDO::CASE_NATURAL |
|
|
|
|
// ], |
|
|
|
|
// 'command' => [ |
|
|
|
|
// 'SET SQL_MODE=ANSI_QUOTES' |
|
|
|
|
// ] |
|
|
|
|
// ]; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* for SQLite |
|
|
|
@ -37,7 +37,7 @@ return [
@@ -37,7 +37,7 @@ return [
|
|
|
|
|
* %s 为占位符 无需修改 |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
// return [ |
|
|
|
|
// 'database_type' => 'sqlite', |
|
|
|
|
// 'database_file' => '%ssvnadmin.db' |
|
|
|
|
// ]; |
|
|
|
|
return [ |
|
|
|
|
'database_type' => 'sqlite', |
|
|
|
|
'database_file' => '%ssvnadmin.db' |
|
|
|
|
]; |
|
|
|
|