当前位置:网站首页>Docker installation MySQL
Docker installation MySQL
2022-04-23 18:01:00 【Shallow singing ~ happiness】
1. View available MySQL edition visit MySQL Image library address :https://hub.docker.com/_/mysql?tab=tags . Can pass Sort by View other versions of MySQL, The default is the latest version mysql:latest
2. We can still use it docker search mysql Command to view the available versions
3. Pull MySQL Mirror image Here I pull it is 5.7 Of command :docker pull mysql:5.7
4. Check to see if... Is installed mysql:
docker images
5. Use the following command to run mysql Containers :
docker run -itd --name mysql-test -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql
Parameter description :
- -p 3306:3306 : Mapping container service's 3306 Port to host 3306 port , External hosts can go directly through The host machine ip:3306 Access to the MySQL Service for .
- MYSQL_ROOT_PASSWORD=123456: Set up MySQL service root User's password .
6. use docker ps Command to see if :
7. Into the container command :docker exec -it ae2026c8ee58 bash
8. Sign in mysql
mysql -u root -p
9. to grant authorization
Authorization command :GRANT ALL PRIVILEGES ON *.* TO [email protected]"%" IDENTIFIED BY "123456";
Refresh command :flush privileges;
sign out :exit
10 Navicat Connect :
版权声明
本文为[Shallow singing ~ happiness]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231800323039.html
边栏推荐
- MySQL_ 01_ Simple data retrieval
- Read excel, int digital time to time
- C1小笔记【任务训练篇一】
- Data stream encryption and decryption of C
- Romance in C language
- Oil monkey website address
- 纳米技术+AI赋能蛋白质组学|珞米生命科技完成近千万美元融资
- YOLOv4剪枝【附代码】
- [UDS unified diagnostic service] (Supplement) v. detailed explanation of ECU bootloader development points (2)
- Implementation of object detection case based on SSD
猜你喜欢
Click Cancel to return to the previous page and modify the parameter value of the previous page, let pages = getcurrentpages() let prevpage = pages [pages. Length - 2] / / the data of the previous pag
解决允许在postman中写入注释请求接口方法
idea中安装YapiUpload 插件将api接口上传到yapi文档上
YOLOv4剪枝【附代码】
Detailed deployment of flask project
Implementation of object detection case based on SSD
C1小笔记【任务训练篇一】
Scikit learn sklearn 0.18 official document Chinese version
JS high frequency interview questions
C# 网络相关操作
随机推荐
2022制冷与空调设备运行操作判断题及答案
.105Location
Classes and objects
Svn simple operation command
C language loop structure program
Map basemap Library
Go language JSON package usage
Docker 安装 Redis
Romance in C language
The JS timestamp of wechat applet is converted to / 1000 seconds. After six hours and one day, this Friday option calculates the time
587. 安装栅栏 / 剑指 Offer II 014. 字符串中的变位词
Batch export ArcGIS attribute table
Nat Commun|在生物科学领域应用深度学习的当前进展和开放挑战
2022 tea artist (primary) examination simulated 100 questions and simulated examination
Gaode map search, drag and drop query address
MySQL_01_简单数据检索
Add animation to the picture under V-for timing
高德地图搜索、拖拽 查询地址
Implementation of object detection case based on SSD
[appium] write scripts by designing Keyword Driven files