Browse Source

[one] modify the number of connection pools (#6340)

* Update IndexController.php

* modify the number of connection pools
vic 4 years ago
parent
commit
a2d3dee6e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/PHP/one/App/Config/mysql.php

+ 1 - 1
frameworks/PHP/one/App/Config/mysql.php

@@ -3,7 +3,7 @@
 return [
     'debug_log' => false, // 是否打印sql日志
     'default'      => [
-        'max_connect_count' => 30,
+        'max_connect_count' => 6,
         'dns'               => env('mysql.default.dns', 'mysql:host=127.0.0.1;dbname=test'),
         'username'          => env('mysql.default.username', 'root'),
         'password'          => env('mysql.default.password', '123456'),