Просмотр исходного кода

修复:install脚本数据库端口号问题

萤火科技 4 лет назад
Родитель
Сommit
0829cec2d4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/install/index.php

+ 1 - 1
public/install/index.php

@@ -188,7 +188,7 @@ if ($s == 63832) {
     $dbpwd = $_GET['dbpwd'] ?? '';
     $dbport = $_GET['dbport'] ?? '';
     try {
-        $dsn = "mysql:host=$dbhost;charset=utf8";
+        $dsn = "mysql:host=$dbhost;port={$dbport};charset=utf8";
         $pdo = new PDO($dsn, $dbuser, $dbpwd);
         echo 'true';
     } catch (Exception $e) {