From 88d39dc1aafbfa93e78026726ea5afb16dbd29ba Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Fri, 3 May 2024 15:23:37 -0300 Subject: [PATCH] Remove allow_empty_password variable (set the value to always true) and drop the default-authentication-plugin on MySQL --- app/Services/MySql.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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; - } }