From 35ff2e046912f1c34f2a9c6f41bf58331107e6c1 Mon Sep 17 00:00:00 2001 From: KasuganoSoras Date: Fri, 19 Oct 2018 20:55:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=20utf8mb4=20=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/install/index.php b/install/index.php index b927893..39d6f71 100644 --- a/install/index.php +++ b/install/index.php @@ -63,6 +63,7 @@ function install() { $password = password_hash(md5($password), PASSWORD_BCRYPT); $conn = mysqli_connect($db_host, $db_user, $db_pass, "", $db_port) or die(""); mysqli_select_db($conn, $db_name) or die(""); + mysqli_query($conn, "set names 'utf8mb4'"); mysqli_query($conn, "SET FOREIGN_KEY_CHECKS=0;") or die(""); mysqli_query($conn, "CREATE TABLE `daemon` ( `id` int(8) NOT NULL AUTO_INCREMENT,