当前位置:网站首页>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
边栏推荐
- JS get link? The following parameter name or value, according to the URL? Judge the parameters after
- 列錶的使用-增删改查
- C#的随机数生成
- Open source key component multi_ Button use, including test engineering
- Timestamp to formatted date
- 20222 return to the workplace
- C byte array (byte []) and string are converted to each other
- ArcGIS license error -15 solution
- Identification verification code
- Tensorflow tensor introduction
猜你喜欢
Error in created hook: "referenceerror:" promise "undefined“
Eigen learning summary
.105Location
Process management command
JS get link? The following parameter name or value, according to the URL? Judge the parameters after
Using files to save data (C language)
SystemVerilog (VI) - variable
On the problem of V-IF display and hiding
2022 Jiangxi Photovoltaic Exhibition, China Distributed Photovoltaic Exhibition, Nanchang Solar Energy Utilization Exhibition
Docker 安装 Redis
随机推荐
20222 return to the workplace
C language input and output (printf and scanf functions, putchar and getchar functions)
Calculation of fishing net road density
cv_ Solution of mismatch between bridge and opencv
GDAL + ogr learning
Excel opens large CSV format data
Auto. JS custom dialog box
Install pyshp Library
[UDS unified diagnostic service] IV. typical diagnostic service (6) - input / output control unit (0x2F)
Flash - Middleware
Flash operates on multiple databases
Nat Commun|在生物科学领域应用深度学习的当前进展和开放挑战
Nanotechnology + AI enabled proteomics | Luomi life technology completed nearly ten million US dollars of financing
C1 notes [task training part 2]
[UDS unified diagnostic service] (Supplement) v. detailed explanation of ECU bootloader development points (1)
2022 tea artist (primary) examination simulated 100 questions and simulated examination
positioner
Go language JSON package usage
2022江西光伏展,中國分布式光伏展會,南昌太陽能利用展
2022 Jiangxi Photovoltaic Exhibition, China distributed Photovoltaic Exhibition, Nanchang solar energy utilization Exhibition