1, mirror pull
2. Create a directory under the home directory, and put the mysql configuration file in this directory.
3. We need to run mysql run by docker as a slave, and we need to modify the configuration file before opening it. Edit the file ~/MySQL _ slave/MySQL.conf.d/mysqld.cnf and modify the following:
4. We let this mysql run on port 8306, and mysql number is 2 to create the docker container.
5. Test, using mysql command in ubuntu to try to connect mysql in docker container.
1、 blogs.com/xiohao/p/9059256.html
2.mysql shows that the main status is empty:
/lanyang 123456/ article/details /8522 107 1