安装mysql数据库
sudo docker run -d -p 3306:3306 --name mysql -P -e mysqld -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_USER=guo -e MYSQL_PASSWORD=123456 -e MYSQL_DATABASE=meizhi -v /mysql_data:/var/lib/mysql mysql
修改远程访问权限
GRANT ALL PRIVILEGES ON . TO 'myuser'@'%'IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
FLUSH PRIVILEGES;