mirror of
https://github.com/likeshop-github/likeshop.git
synced 2025-09-05 04:14:33 +08:00
优化安装程序兼容性
This commit is contained in:
parent
3bf3cdda2a
commit
6f4a7fb2a3
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ class installModel
|
|||
*/
|
||||
public function connectDB()
|
||||
{
|
||||
$dsn = "mysql:host={$this->host}; port={$this->port}";
|
||||
$dsn = "mysql:host={$this->host};port={$this->port}";
|
||||
try {
|
||||
$dbh = new PDO($dsn, $this->user, $this->password);
|
||||
$dbh->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
|
||||
|
|
Loading…
Add table
Reference in a new issue