litespeedtech / ols-docker-env

OpenLiteSpeed Docker Environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Complex password for mysql

Gershon-A opened this issue · comments

Hello,
seems a complex password with special characters for mysql trow error.
my .env line 5 has:
MYSQL_ROOT_PASSWORD=g3qqET9&BZZoJdP4t3Wq

bash bin/database.sh -D domain.io
.env: line 5: BZZoJdP4t3Wq: command not found

I changed the password to
MYSQL_ROOT_PASSWORD=g3qqET9
All work as expected.

commented

Hi,

Failed to run with command docker run --name mariadb-test -e MYSQL_ROOT_PASSWORD=password&123 -d mariadb:10.3.17
But it works when password with some other w/o special characters, e.g. -, = instead of &.

Best,
Eric

Yes. Without special characters all works.
This is a good idea to add support for complex passwords.
Thank You!

commented

No problem, since we include it from the official MariaDB image, better raise the issue with them https://github.com/docker-library/mariadb/issues

issue close