当前位置:网站首页>Using docker to manage MySQL services under Windows
Using docker to manage MySQL services under Windows
2022-06-30 14:18:00 【Artorias Li】
windows Next use docker management mysql service
download docker Mirror image
Address :https://registry.hub.docker.com/_/mysql
# If you download the latest , perform
docker pull mysql
# Here to download 5.7.35 edition
docker pull mysql:5.7.35

Be ready to work with container Mapped directory
Create and save Mysql File directory , Here I distinguish between configuration files and data files 
stay conf Create under directory mysql The configuration file
[client]
default-character-set = utf8
[mysqld]
basedir=D:/developEnv/mysql
datadir=D:/developEnv/mysql/data
port = 3306
socket = D:/developEnv/mysql/mysql.sock
pid-file = D:/developEnv/mysql/mysql.pid

start-up
docker run --name mysql \
-d mysql:5.7.35 \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=password \
-v /d/developEnv/mysql/data:/var/lib/mysql/ \
-v /d/developEnv/mysql/conf/my.cnf:/etc/mysql/my.cnf \
--default-authentication-plugin=mysql_native_password


success
边栏推荐
- PHP multidimensional array sorting
- 【刷题篇】爱吃香蕉的珂珂
- Race of golang
- Numpy creates an empty array data = np empty(shape=[1, 64,64,3])
- Introduction to reverse commissioning - VA and RVA conversion in PE 04/07
- Meaning of while (~scanf ("%d%d", & A, & B))
- With the development of industrial Internet, the landing and application of the Internet has become wider
- About the problems encountered when using the timer class to stop with a button (why does the QPushButton (for the first time) need to be clicked twice to respond?)
- "As a service", the inevitable choice of enterprise digital transformation
- MySQL back to table query optimization
猜你喜欢

About the problems encountered when using the timer class to stop with a button (why does the QPushButton (for the first time) need to be clicked twice to respond?)

Race of golang

智慧运维:基于 BIM 技术的可视化管理系统

Solve the error in my QT_ thread_ global_ End(): 3 threads didn't exit

Attack and defense world web questions

“即服务”,企业数字化转型的必然选择

编程实战赛来啦!B站周边、高级会员等好礼送你啦!

【科学文献计量】外文文献及中文文献关键词的挖掘与可视化

How to execute a query SQL

Mysql database foundation: stored procedures and functions
随机推荐
Data recovery software easyrecovery15 Download
In the digital age, XDR (extended detection and response) has unlimited possibilities
Observable, reliable: the first shot of cloudops series Salon of cloud automation operation and maintenance
【刷题篇】供暖器
Mutex lock, read / write lock, spin lock, pessimistic lock, and optimistic lock
QQ was stolen? The reason is
Calculates the length of the last word in a string, separated by spaces
PHP excel export function encapsulation (based on phpexcel class)
Pit used by go language array type
With the development of industrial Internet, the landing and application of the Internet has become wider
numpy 创建空数组 data = np.empty(shape=[1, 64,64,3])
@Role of ResponseBody
可观测,才可靠:云上自动化运维CloudOps系列沙龙 第一弹
【Kubernetes系列】K8s设置MySQL8大小写不敏感
可觀測,才可靠:雲上自動化運維CloudOps系列沙龍 第一彈
數據恢複軟件EasyRecovery15下載
IM即时通讯应用开发中无法解决的“顽疾”
Tencent two sides: @bean and @component are used on the same class. What happens?
MFQE 2.0: A New Approach for Multi-FrameQuality Enhancement on Compressed Video
Notepad regular delete the line of the keyword