Browse Source

禁用数据库的安全模式

zhangjiangbin 8 years ago
parent
commit
f0094f1fc5
2 changed files with 2 additions and 3 deletions
  1. 0 1
      .gitignore
  2. 2 2
      config/database.php

+ 0 - 1
.gitignore

@@ -1,4 +1,3 @@
-/config/database.php
 /public/upload
 /public/upload
 /storage/framework
 /storage/framework
 /storage/logs
 /storage/logs

+ 2 - 2
config/database.php

@@ -45,12 +45,12 @@ return [
             'port' => '3306',
             'port' => '3306',
             'database' => 'ssrpanel',
             'database' => 'ssrpanel',
             'username' => 'root',
             'username' => 'root',
-            'password' => '',
+            'password' => 'root',
             'unix_socket' => '',
             'unix_socket' => '',
             'charset' => 'utf8mb4',
             'charset' => 'utf8mb4',
             'collation' => 'utf8mb4_unicode_ci',
             'collation' => 'utf8mb4_unicode_ci',
             'prefix' => '',
             'prefix' => '',
-            'strict' => true,
+            'strict' => false,
             'engine' => null,
             'engine' => null,
         ],
         ],