Instalación MySQL
Instalacion
GNU/Linux
Docker
MySQL versión 5.7
docker volume create mysql5.7-volume docker run -p 3366:3306 -v mysql5.7-volume:/var/lib/mysql --name=mysql-server5.7 -d mysql/mysql-server:5.7 mysqld --lower_case_table_names=1
Se genera un password
docker logs mysql-server5.7 2>&1 | grep GENERATED
Run container:
docker exec -it mysql-server5.7 mysql -uroot -p
MySQL versión 8.0
docker volume create mysql8.0-volume docker run -p 3326:3306 -v mysql8.0-volume:/var/lib/mysql --name=mysql-server8.0 -d mysql/mysql-server:8.0 mysqld --lower_case_table_names=1
Se genera un password
docker logs mysql-server8.0 2>&1 | grep GENERATED
Run container:
docker exec -it mysql-server8.0 mysql -uroot -p