Skip to content

Commit

Permalink
Merge pull request #340 from tighten/tm/mysql-tweaks
Browse files Browse the repository at this point in the history
MySQL Tweaks
  • Loading branch information
tonysm authored May 3, 2024
2 parents d9943e0 + 88d39dc commit 4267283
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions app/Services/MySql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 4267283

Please sign in to comment.