Skip to content

Commit

Permalink
修复安装时不能创建数据库的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zyx0814 committed Apr 17, 2018
1 parent c53b8dd commit 76a2a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
$dbhost1=$dbhost;
}
if(empty($port)) $port='3306';
$link = new mysqli($dbhost1, $dbuser, $dbpw, $dbname, $port, $unix_socket);
$link = new mysqli($dbhost1, $dbuser, $dbpw, '', $port, $unix_socket);
$errno = $link->connect_errno;
$error = $link->connect_error;
}else{
Expand Down

0 comments on commit 76a2a9f

Please sign in to comment.