Sign inSign up

flyingspheres/mysql

By flyingspheres

Updated over 8 years ago

Image
0

53

flyingspheres/mysql repository overview

To persist data between sessions you have to start the container up to use a volume that you create and configure.

Here is what you do: create the directory: /data/docker/mysql5.7

change your startup command to: docker run --name fs-mysql -e MYSQL_ROOT_PASSWORD=yourpassword -e MYSQL_ROOT_HOST=% -v=/data/docker/mysql5.7:/var/lib/mysql -d -p 3306:3306 oracle/mysql:5.7

How to connect: mysql -uroot -pmypassword -h 172.17.0.20 -P 3306

once you get connected to database you can execute this command:

mysql> source /

Tag summary

Content type

Image

Digest

Size

93.9 MB

Last updated

over 8 years ago

docker pull flyingspheres/mysql:5.7