Skip to content
Permalink
Browse files

Fixing mysql connection string

  • Loading branch information...
lorenzo committed Oct 15, 2010
1 parent 5202308 commit 52ea8fb42e7c1cbb3cff0a72c79412835f6756b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/model/datasources/dbo/dbo_mysql.php
@@ -562,7 +562,7 @@ function connect() {
$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

0 comments on commit 52ea8fb

Please sign in to comment.
You can’t perform that action at this time.