1. Find the mirror docker search mysql
2. Install, view the mirror docker pull mysql view docker images -a
3. Start the mirror docker run -p 3306:3306 --name xiaojinlu_mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql View docker ps
4. Enter the image docker exec -it xiaojinlu_mysql bash
5. mysql authorization mysql -u root -p to enter mysql
授权 ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
6, Navicat connection
Remarks: Open port number CentOS7 uses firewalld to open and close firewalls and ports