当前位置:网站首页>Docker method to install MySQL
Docker method to install MySQL
2022-07-07 01:17:00 【love_ 521_】
docker install mysql Whole process , Since using docker, I like this artifact more and more , The installation method is simple and clear , Installation method: :
Pull the mirror image
docker pull mysql:5.7 --platform linux/x86_64
Look at the mirror image
docker images
Create related folders
mkdir -p ~/mydocker/mysql/conf
mkdir -p ~/mydocker/mysql/logs
mkdir -p ~/mydocker/mysql/data
chmod -R 777 ~/mydocker/mysql/
Run container
docker run -p 3306:3306 --name mysql -v ~/mydocker/mysql/conf:/etc/mysql/conf.d -v ~/mydocker/mysql/logs:/var/log/mysql -v ~/mydocker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
Look at the container
docker ps
边栏推荐
- Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which
- mysql: error while loading shared libraries: libtinfo. so. 5: cannot open shared object file: No such
- 让我们,从头到尾,通透网络I/O模型
- Neon Optimization: an optimization case of log10 function
- Telerik UI 2022 R2 SP1 Retail-Not Crack
- Byte P7 professional level explanation: common tools and test methods for interface testing, Freeman
- What kind of experience is it to realize real-time collaboration in jupyter
- There is an error in the paddehub application
- golang中的atomic,以及CAS操作
- [Niuke] [noip2015] jumping stone
猜你喜欢

Asset security issues or constraints on the development of the encryption industry, risk control + compliance has become the key to breaking the platform
![[HFCTF2020]BabyUpload session解析引擎](/img/db/6003129bc16f943ad9868561a2d5dc.png)
[HFCTF2020]BabyUpload session解析引擎

【JVM调优实战100例】05——方法区调优实战(下)

Windows installation mysql8 (5 minutes)

Part VI, STM32 pulse width modulation (PWM) programming

Provincial and urban level three coordinate boundary data CSV to JSON

"Exquisite store manager" youth entrepreneurship incubation camp - the first phase of Shunde market has been successfully completed!

《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03

Boot - Prometheus push gateway use

Data type of pytorch tensor
随机推荐
Metauniverse urban legend 02: metaphor of the number one player
Niuke cold training camp 6B (Freund has no green name level)
Force buckle 1037 Effective boomerang
Js逆向——捅了【马蜂窝】的ob混淆与加速乐
Atomic in golang and CAS operations
Taro2.* 小程序配置分享微信朋友圈
Spark TPCDS Data Gen
Let's talk about 15 data source websites I often use
In rails, when the resource creation operation fails and render: new is called, why must the URL be changed to the index URL of the resource?
A brief history of deep learning (I)
Segmenttree
C # method of calculating lunar calendar date 2022
ARM裸板调试之JTAG原理
golang中的WaitGroup实现原理
Dell Notebook Periodic Flash Screen Fault
Failed to successfully launch or connect to a child MSBuild. exe process. Verify that the MSBuild. exe
Transformation transformation operator
Build your own website (17)
Taro 小程序开启wxml代码压缩
Maidong Internet won the bid of Beijing life insurance to boost customers' brand value