diff --git a/app/Services/MySql.php b/app/Services/MySql.php index 46f1f2f..86e9a66 100644 --- a/app/Services/MySql.php +++ b/app/Services/MySql.php @@ -25,19 +25,10 @@ class MySql extends BaseService protected $dockerRunTemplate = '-p "${:port}":3306 \ -e MYSQL_ROOT_PASSWORD="${:root_password}" \ - -e MYSQL_ALLOW_EMPTY_PASSWORD="${:allow_empty_password}" \ + -e MYSQL_ALLOW_EMPTY_PASSWORD="1" \ -e MYSQL_ROOT_HOST="%" \ -v "${:volume}":/var/lib/mysql \ - "${:organization}"/"${:image_name}":"${:tag}" --default-authentication-plugin=mysql_native_password'; + "${:organization}"/"${:image_name}":"${:tag}"'; protected static $displayName = 'MySQL'; - - protected function buildParameters(): array - { - $parameters = parent::buildParameters(); - - $parameters['allow_empty_password'] = $parameters['root_password'] === '' ? '1' : '0'; - - return $parameters; - } }