Kaynağa Gözat

验证数据库版本号(报错问题)

萤火科技 1 yıl önce
ebeveyn
işleme
424b2fbb41
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      public/install/index.php

+ 1 - 1
public/install/index.php

@@ -174,7 +174,7 @@ if ($s === 'importDb') {
     // $version = $pdo->query('select version()')->fetchColumn();
     $version = $pdo->getAttribute(PDO::ATTR_SERVER_VERSION);
     if (version_compare($version, '5.7.0') == -1) {
-        insError2("很抱歉,数据库版本号不能低于5.7.0,请检查!您当前是 {$version}");
+        insError("很抱歉,数据库版本号不能低于5.7.0,请检查!您当前是 {$version}");
     }
 
     // 数据库创建完成,开始连接