diff --git a/application/index/controller/Install.php b/application/index/controller/Install.php index ec757f73..d9291fc8 100644 --- a/application/index/controller/Install.php +++ b/application/index/controller/Install.php @@ -64,6 +64,7 @@ class Install extends Controller $mysqli->close(); throw new Exception($mysqli->connect_error); } + $mysqli->query("SET NAMES utf8"); if (!$mysqli->multi_query($sqlFile)) { throw new Exception('数据写入失败'); }