I ran the following script:
docker run --detach --name mariadb-10.1.48 \
--env MYSQL_USER=user --env MYSQL_PASSWORD='123' \
--env MYSQL_ROOT_PASSWORD='abc' \
-v /mnt/data/database/db_mysql:/var/lib/mysql \
-v /mnt/data/database/db_mysql_config/my.cnf:/etc/mysql/my.cnf \
mariadb:10.1.48
I already changed on my.cnf the following line "bind-address = 127.0.0.0" to:
bind-address=0.0.0.0
I can access locally via CLI. Using MySQL Workbench is giving me the error "Unable to connect to localhost"
PS: My enviroment is the following: Docker on Debian 11, i'm using Windows on the same network as the server trying to connect to the database using MySQL Workbench.
Please, what can i do? Thank you...