Instalación MySQL
Instalacion
GNU/Linux
Docker
MySQL versión 5.7
docker run -p 3306:3306 --name=mysql-demo-db -d mysql/mysql-server:5.7 mysqld --lower_case_table_names=1
Se genera un password
docker logs mysql-demo-db 2>&1 | grep GENERATED
Run container:
docker exec -it mysql-demo-db mysql -uroot -p
MySQL versión 8.0
docker run -p 3306:3306 --name=mysql-demo-db -d mysql/mysql-server:8.0 mysqld --lower_case_table_names=1
Se genera un password
docker logs mysql-demo-db 2>&1 | grep GENERATED
Run container:
docker exec -it mysql-demo-db mysql -uroot -p