Skip to content

Commit 88d39dc

Browse files
committed
Remove allow_empty_password variable (set the value to always true) and drop the default-authentication-plugin on MySQL
1 parent d9943e0 commit 88d39dc

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

app/Services/MySql.php

+2-11
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,10 @@ class MySql extends BaseService
2525

2626
protected $dockerRunTemplate = '-p "${:port}":3306 \
2727
-e MYSQL_ROOT_PASSWORD="${:root_password}" \
28-
-e MYSQL_ALLOW_EMPTY_PASSWORD="${:allow_empty_password}" \
28+
-e MYSQL_ALLOW_EMPTY_PASSWORD="1" \
2929
-e MYSQL_ROOT_HOST="%" \
3030
-v "${:volume}":/var/lib/mysql \
31-
"${:organization}"/"${:image_name}":"${:tag}" --default-authentication-plugin=mysql_native_password';
31+
"${:organization}"/"${:image_name}":"${:tag}"';
3232

3333
protected static $displayName = 'MySQL';
34-
35-
protected function buildParameters(): array
36-
{
37-
$parameters = parent::buildParameters();
38-
39-
$parameters['allow_empty_password'] = $parameters['root_password'] === '' ? '1' : '0';
40-
41-
return $parameters;
42-
}
4334
}

0 commit comments

Comments
 (0)