浏览代码

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

萤火科技 1 年之前
父节点
当前提交
424b2fbb41
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  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}");
     }
 
     // 数据库创建完成,开始连接