mysql-dump-in-docker
๋ฐฐ๊ฒฝ
mysql dump, restore data
Creating database dumps
docker exec some-mysql sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > /some/path/on/your/host/all-databases.sqlRestoring data from dump files
docker exec -i some-mysql sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < /some/path/on/your/host/all-databases.sqlSetting Up Binary Log File Position Based Replication
Setting the Replication Source Configuration
Creating a User for Replication
Obtaining the Replication Source's Binary Log Coordinates
Choosing a Method for Data Snapshots
Setting Up Replicas
Setting the Source Configuration on the Replica
Setting Up Replication between a New Source and Replicas
Start the replication threads
Reference
Last updated