当前位置:网站首页>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
边栏推荐
- IM即时通讯应用开发中无法解决的“顽疾”
- Go sync. WaitGroup
- @component使用案例
- Golang template (text/template)
- Directory related commands
- Prometheus 2.29.0 new features
- Begin End use the pit encountered
- Google Earth Engine(GEE)——将字符串的转化为数字并且应用于时间搜索( ee.Date.fromYMD)
- Service online governance
- Observable, reliable: the first shot of cloudops series Salon of cloud automation operation and maintenance
猜你喜欢
Step by step | help you easily submit Google play data security form
Summary of use of laravel DCAT admin
Optimization of unit test efficiency: why test programs? What are the benefits of testing?
Mysql database foundation: stored procedures and functions
深入理解.Net中的线程同步之构造模式(二)内核模式2.内核模式构造物Semaphone
Unity animator parameter
Problems in QT creator (additional unknown and error lines are listed in the debug output window)
Apache Doris comparison optimization Encyclopedia
MFQE 2.0: A New Approach for Multi-FrameQuality Enhancement on Compressed Video
Intelligent operation and maintenance: visual management system based on BIM Technology
随机推荐
數據恢複軟件EasyRecovery15下載
PHP common authentication / third-party methods
【科研数据处理】[实践]类别变量频数分析图表、数值变量分布图表与正态性检验(包含对数正态)
@component使用案例
@Component use cases
What network security problems are exposed when a large-scale QQ number theft event occurs?
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?
Use PHP to delete the specified text content in the file
半导体动态杂谈
LeetCode_ Stack_ Medium_ 227. basic calculator II (without brackets)
智慧运维:基于 BIM 技术的可视化管理系统
The JSON data returned from the control layer to JS has a "\" translator. How to remove it
IM即时通讯应用开发中无法解决的“顽疾”
Google Earth Engine(GEE)——GHSL:全球人类住区层,建成网格 1975-1990-2000-2015 (P2016) 数据集
DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
Unity animator parameter
Initial attack and defense world Misc
Data recovery software easyrecovery15 Download
Apache Doris comparison optimization Encyclopedia
Je suis à Foshan, où puis - je ouvrir un compte? L'ouverture d'un compte par téléphone mobile est - elle sécurisée?