当前位置:网站首页>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
边栏推荐
- Implementation of k8s redis one master multi slave dynamic capacity expansion
- proxy server
- JS forms the items with the same name in the array object into the same array according to the name
- Stanford machine learning course summary
- Solving the problem of displaying too many unique values in ArcGIS partition statistics failed
- Use of list - addition, deletion, modification and query
- _ FindText error
- Summary of common server error codes
- C network related operations
- In JS, t, = > Analysis of
猜你喜欢
MySQL_ 01_ Simple data retrieval
Classification of cifar100 data set based on convolutional neural network
The ultimate experience, the audio and video technology behind the tiktok
C#的随机数生成
Random number generation of C #
Visualization of residential house prices
Operators in C language
Scikit learn sklearn 0.18 official document Chinese version
YOLOv4剪枝【附代码】
云原生虚拟化:基于 Kubevirt 构建边缘计算实例
随机推荐
Eigen learning summary
2022 judgment questions and answers for operation of refrigeration and air conditioning equipment
Visualization of residential house prices
2022江西储能技术展会,中国电池展,动力电池展,燃料电池展
高德地图搜索、拖拽 查询地址
Batch export ArcGIS attribute table
Encapsulate a timestamp to date method on string prototype
Array rotation
I/O多路复用及其相关详解
Build openstack platform
[UDS unified diagnostic service] IV. typical diagnostic service (6) - input / output control unit (0x2F)
Nat commun | current progress and open challenges of applied deep learning in Bioscience
journal
Implementation of object detection case based on SSD
2022江西光伏展,中國分布式光伏展會,南昌太陽能利用展
Go file operation
C network related operations
Open source key component multi_ Button use, including test engineering
Yolov4 pruning [with code]
Go对文件操作