K KOC2000 Chevereto Member Jul 12, 2012 #1 Hello, If you've mysql on a different port you wont be able to connected. So setting the "$config['db_port'] =" is useless for now, can you fix this please? Thank you.
Hello, If you've mysql on a different port you wont be able to connected. So setting the "$config['db_port'] =" is useless for now, can you fix this please? Thank you.
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Jul 12, 2012 #2 The system uses this code to add the port to the connection: PHP: $pdo_connect = 'mysql:host='.__CHV_DB_HOST__.';dbname='.__CHV_DB_NAME__; if(check_value(__CHV_DB_PORT__)) { $pdo_connect .= ';port:'.__CHV_DB_PORT__; } $this->db = new PDO($pdo_connect, __CHV_DB_USER__, __CHV_DB_PASS__, array(PDO::ATTR_TIMEOUT => 30, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); Anyway, I like to try this on your server. Please send me FTP details 😉
The system uses this code to add the port to the connection: PHP: $pdo_connect = 'mysql:host='.__CHV_DB_HOST__.';dbname='.__CHV_DB_NAME__; if(check_value(__CHV_DB_PORT__)) { $pdo_connect .= ';port:'.__CHV_DB_PORT__; } $this->db = new PDO($pdo_connect, __CHV_DB_USER__, __CHV_DB_PASS__, array(PDO::ATTR_TIMEOUT => 30, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); Anyway, I like to try this on your server. Please send me FTP details 😉
K KOC2000 Chevereto Member Jul 12, 2012 #3 How do I send you FTP info? I had to to add port to db_host for now. PHP: $config['db_host'] = '127.0.0.1:33006';
How do I send you FTP info? I had to to add port to db_host for now. PHP: $config['db_host'] = '127.0.0.1:33006';
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Jul 12, 2012 #4 The problem is that this line is wrong: PHP: $pdo_connect .= ';port:'.__CHV_DB_PORT__; Should be like this one: PHP: $pdo_connect .= ';port='.__CHV_DB_PORT__;
The problem is that this line is wrong: PHP: $pdo_connect .= ';port:'.__CHV_DB_PORT__; Should be like this one: PHP: $pdo_connect .= ';port='.__CHV_DB_PORT__;
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Jul 25, 2012 #5 This fix will be issued on 2.3