问题修复

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2020-07-03 22:39:26 +08:00
parent 5293154af4
commit 4a268d1c13

View File

@ -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存储引擎