mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 10:32:40 +00:00
Fixing mysql connection string
This commit is contained in:
parent
52023085f4
commit
52ea8fb42e
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@ class DboMysql extends DboMysqlBase {
|
|||
$flags[PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES ' . $config['encoding'];
|
||||
}
|
||||
$this->_connection = new PDO(
|
||||
"mysql:{$config['host']}:{$config['port']};dbname={$config['database']}",
|
||||
"mysql:{$config['host']};port={$config['port']};dbname={$config['database']}",
|
||||
$config['login'],
|
||||
$config['password'],
|
||||
$flags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue