From 4a268d1c13619b9e1dfdfeacd6b8e58120ff91d2 Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Fri, 3 Jul 2020 22:39:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/index/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/controller/Index.php b/application/index/controller/Index.php index 2371a7a..476cbf2 100644 --- a/application/index/controller/Index.php +++ b/application/index/controller/Index.php @@ -112,7 +112,7 @@ class Index extends BasicApi $sql = str_replace("`pms_", "`{$mysqlPrefix}", $sql); $pdo = new PDO("mysql:host={$mysqlHostname};port={$mysqlHostport}", $mysqlUsername, $mysqlPassword, array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, - PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8mb" + PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8mb4" )); //检测是否支持innodb存储引擎