当前位置:网站首页>docker安装mysql
docker安装mysql
2022-07-03 02:56:00 【玩代码】
1.输入命令sudo docker pull mysql:5.7,开始下载mysql5.7
2.输入命令sudo docker images 查看镜像
3.创建实例并启动
sudo docker run -p 3306:3306 --name mysql \
-v /mydata/mysql/log:/var/log/mysql \
-v /mydata/mysql/data:/var/lib/mysql \
-v /mydata/mysql/conf:/ect/mysql \
-e MYSQL_ROOT_PASSWORD=root \
-d mysql:5.7
4.输入docker ps 命令查看启动信息
使用MySQL连接工具,也能正常连接。
边栏推荐
- Counter统计数量后,如何返回有序的key
- Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
- The difference between left value and right value in C language
- 《MATLAB 神经网络43个案例分析》:第43章 神经网络高效编程技巧——基于MATLAB R2012b新版本特性的探讨
- I2C 子系統(四):I2C debug
- What does it mean when lambda is not entered?
- The Linux server needs to install the agent software EPS (agent) database
- 用docker 连接mysql的过程
- [error record] the parameter 'can't have a value of' null 'because of its type, but the im
- SQL server queries the table structure of the specified table
猜你喜欢
Can netstat still play like this?
Sous - système I2C (IV): débogage I2C
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]
Kubernetes cluster log and efk architecture log scheme
I2C subsystem (III): I2C driver
HW-初始准备
Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!
内存泄漏工具VLD安装及使用
【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
Xiaodi notes
随机推荐
Kubernetes family container housekeeper pod online Q & A?
How do you adjust the scope of activerecord Association in rails 3- How do you scope ActiveRecord associations in Rails 3?
Classes and objects - initialization and cleanup of objects - constructor call rules
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]
疫情当头,作为Leader如何进行代码版本和需求开发管控?| 社区征文
The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
How to return ordered keys after counter counts the quantity
2022-2028 global splicing display industry research and trend analysis report
Cron表达式介绍
[error record] the parameter 'can't have a value of' null 'because of its type, but the im
From C to capable -- use the pointer as a function parameter to find out whether the string is a palindrome character
"Analysis of 43 cases of MATLAB neural network": Chapter 43 efficient programming skills of neural network -- Discussion Based on the characteristics of the new version of MATLAB r2012b
sql server数据库添加 mdf数据库文件,遇到的报错
How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
As a leader, how to control the code version and demand development when the epidemic comes| Community essay solicitation
Le processus de connexion mysql avec docker
Installation and use of memory leak tool VLD
Strategy application of Dameng database
分布式事务
sql server 查詢指定錶的錶結構