Skip to content
Permalink
Browse files

Fixed #440 Zend 2 db adaptor checks for port number

  • Loading branch information...
mddejong committed May 10, 2019
1 parent 94e1598 commit 29664d2ed3f5ec2324703f6fdf18ffc3fd7e528a
Showing with 6 additions and 1 deletion.
  1. +3 −0 classes/Gems/User/DbUserDefinitionAbstract.php
  2. +3 −1 docs/mysql_57_settings.txt
@@ -229,6 +229,9 @@ protected function getDb2()
'password' => $resources['db']['params']['password'],
'charset' => $resources['db']['params']['charset'],
);
if (isset($resources['db']['params']['port'])) {
$dbConfig['port'] = $resources['db']['params']['port'];
}
$this->db2 = new Adapter($dbConfig);
}
@@ -4,4 +4,6 @@
;
; Setting needed for MySQL:

SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

; SET GLOBAL sql_mode='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';

0 comments on commit 29664d2

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