当前位置:网站首页>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
边栏推荐
- Calculation of fishing net road density
- Anchor location - how to set the distance between the anchor and the top of the page. The anchor is located and offset from the top
- 2022 Jiangxi Photovoltaic Exhibition, China Distributed Photovoltaic Exhibition, Nanchang Solar Energy Utilization Exhibition
- C byte array (byte []) and string are converted to each other
- Theory and practice of laser slam in dark blue College - Chapter 2 (odometer calibration)
- 2022江西光伏展,中国分布式光伏展会,南昌太阳能利用展
- On the problem of V-IF display and hiding
- Classes and objects
- Secure credit
- Tensorflow tensor introduction
猜你喜欢

开源按键组件Multi_Button的使用,含测试工程

.105Location

Auto. JS custom dialog box

Halo 开源项目学习(二):实体类与数据表

Nat commun | current progress and open challenges of applied deep learning in Bioscience

ArcGIS license error -15 solution
![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](/img/ed/4d61ce34f830209f5adbddf9165676.png)
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

Re regular expression

Jenkspy package installation

In JS, t, = > Analysis of
随机推荐
C language loop structure program
读取excel,int 数字时间转时间
Multi thread crawling Marco Polo network supplier data
Build openstack platform
Timestamp to formatted date
ROS package NMEA_ navsat_ Driver reads GPS and Beidou Positioning Information Notes
Fashion classification case based on keras
Examination question bank and online simulation examination of the third batch (main person in charge) of special operation certificate of safety officer a certificate in Guangdong Province in 2022
2022年广东省安全员A证第三批(主要负责人)特种作业证考试题库及在线模拟考试
C# 的数据流加密与解密
Process management command
Read excel, int digital time to time
JS forms the items with the same name in the array object into the same array according to the name
C language array processing batch data
Add animation to the picture under V-for timing
Climbing watermelon video URL
Oil monkey website address
Go file operation
Go's gin framework learning
Classes and objects