阿里云esc服务器Docker部署单节点Mysql的讲解
1.下载加速版msyql
docker pull hub.c.163.com/library/mysql:5.7
2.更名
docker tag hub.c.163.com/library/mysql:5.7 mysql:5.7
3.启动
docker run -it --rm --name mysql -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -d mysql
4.设置mysql远程登录
docker exec -it mysql bash mysql -uroot -p123456 ALTER user 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
相关推荐
lihongtai 2020-11-09
CosEmon 2020-11-13
sqisydream 2020-11-11
fjlmcy 2020-10-31
visionarywind 2020-10-31
特立独行 2020-10-30
Hitpoint云计算 2020-10-30
sqsfjsjlpf 2020-10-29
平凡的程序员 2020-10-15
yunna0 2020-09-23
OpenCDN网站加速 2020-09-21
82453961 2020-09-21
qual0 2020-09-21
mysteryrat 2020-09-21
Liucute 2020-09-21
古影轩 2020-09-17
aolia000 2020-09-11
罗忠浩 2020-08-16