diff --git a/crmeb/public/install/index.php b/crmeb/public/install/index.php index 6c10a822b..56d0f111c 100755 --- a/crmeb/public/install/index.php +++ b/crmeb/public/install/index.php @@ -171,10 +171,14 @@ switch ($step) { $result = mysqli_query($conn, "SELECT @@global.sql_mode"); $result = $result->fetch_array(); $version = mysqli_get_server_info($conn); - if ($version >= 5.7) { + if ($version >= 5.7 && $version < 8.0) { if (strstr($result[0], 'STRICT_TRANS_TABLES') || strstr($result[0], 'STRICT_ALL_TABLES') || strstr($result[0], 'TRADITIONAL') || strstr($result[0], 'ANSI')) exit(json_encode(-2));//数据库配置需要修改 } + if ($version >= 8.0) { + if (strstr($result[0], 'ONLY_FULL_GROUP_BY')) + exit(json_encode(-22));//数据库配置需要修改 + } $result = mysqli_query($conn, "select count(table_name) as c from information_schema.`TABLES` where table_schema='$dbName'"); $result = $result->fetch_array(); if ($result['c'] > 0) { diff --git a/crmeb/public/install/templates/step3.php b/crmeb/public/install/templates/step3.php index 639181b84..459bdf2bb 100755 --- a/crmeb/public/install/templates/step3.php +++ b/crmeb/public/install/templates/step3.php @@ -292,6 +292,11 @@ $('#J_install_tip_dbport').html(''); $('#J_install_tip_dbname').html('请在mysql配置文件修sql-mode或sql_mode为NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION查看文档'); return false; + } else if (res == -22) { + $('#J_install_tip_dbhost').html(''); + $('#J_install_tip_dbport').html(''); + $('#J_install_tip_dbname').html('请关闭ONLY_FULL_GROUP_BY模式查看文档'); + return false; } else if (res == 1045) { $('#J_install_tip_dbhost').html(''); $('#J_install_tip_dbport').html(''); diff --git a/crmeb/public/install/templates/step5.php b/crmeb/public/install/templates/step5.php index 832bedab6..ed3768634 100755 --- a/crmeb/public/install/templates/step5.php +++ b/crmeb/public/install/templates/step5.php @@ -35,7 +35,7 @@ $host = $_SERVER['HTTP_HOST']; 进入前台