mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2336: Use --ssl-mode instead of --ssl with MySQL >= 5.7.0
This commit is contained in:
@@ -649,10 +649,20 @@ EOF;
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
$sTlsOptions = '';
|
||||
$sTlsOptions .= ' --ssl';
|
||||
|
||||
$sDBVendor= CMDBSource::GetDBVendor();
|
||||
$sDBVersion = CMDBSource::GetDBVersion();
|
||||
$sMysqlSSLModeVersion = '5.7.0'; //Mysql 5.7.0 and upper deprecated --ssl and uses --ssl-mode instead
|
||||
if ($sDBVendor === CMDBSource::ENUM_DB_VENDOR_MYSQL && version_compare($sDBVersion, $sMysqlSSLModeVersion, '>='))
|
||||
{
|
||||
$sTlsOptions .= ' --ssl-mode';
|
||||
}
|
||||
else
|
||||
{
|
||||
$sTlsOptions .= ' --ssl';
|
||||
}
|
||||
|
||||
// ssl-key parameter : not implemented
|
||||
// ssl-cert parameter : not implemented
|
||||
|
||||
|
||||
Reference in New Issue
Block a user