Skip to content

Commit

Permalink
优化安装sql
Browse files Browse the repository at this point in the history
  • Loading branch information
ailaohuniu committed Jan 19, 2022
1 parent b3533a5 commit b62331a
Show file tree
Hide file tree
Showing 2 changed files with 183 additions and 183 deletions.
2 changes: 1 addition & 1 deletion public/install.php
Expand Up @@ -831,7 +831,7 @@ function step3(&$install_error, &$install_recover)
$install_error = "数据库文件无法打开";
return;
}
$sql = str_replace("`fa_", "`{$db_prefix}", $sql);
$sql = str_replace("`__PREFIX__", "`{$db_prefix}", $sql);
try {
$pdo = new PDO("mysql:host={$db_host};port={$db_port}", $db_user, $db_pwd, array(
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
Expand Down

0 comments on commit b62331a

Please sign in to comment.