Docker creates MySQL explanation

Docker creates MySQL explanation

1. Download MySQL Image

Command: docker pull mysql

2. Create a container

Command example:

sudo docker run -p 3306:3306 --name mysql -v $PWD/conf:/etc/mysql/conf.d -v $PWD/logs:/logs -v $PWD/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root -d mysql

Command Explanation:

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links

You may also be interested in:
  • Several ways to update batches in MySQL
  • The implementation process of extracting oracle data to mysql database
  • How to export Mysql query data to a file using Python
  • Summary of MySQL common SQL statements including complex SQL queries
  • A case study to thoroughly understand how to correctly use MySQL inndb joint index
  • PHP implements PDO operation mysql stored procedure example
  • Summary of the differences between Mysql primary key and unique key
  • Examples of optimistic locking and pessimistic locking in MySQL
  • MySQL limit performance analysis and optimization
  • getdata table table data join mysql method

<<:  How does Vue track data changes?

>>:  MySQL 5.7.19 (tar.gz) installation graphic tutorial under Linux

Recommend

Will the index be used in the MySQL query condition?

When an employer asks you whether an index will b...

Detailed explanation of uniapp's global variable implementation

Preface This article summarizes some implementati...

Using CSS3 to achieve progress bar effect and dynamically add percentage

During the project, I started using the js reques...

Practical record of Vue3 combined with TypeScript project development

Table of contents Overview 1. Compositon API 1. W...

MySQL Error 1290 (HY000) Solution

I struggled with a problem for a long time and re...

W3C Tutorial (2): W3C Programs

The W3C standardization process is divided into 7...

Web front-end skills summary (personal practical experience)

1. Today, when I was making a page, I encountered ...

What are the differences between xHTML and HTML tags?

All tags must be lowercase In XHTML, all tags must...

js to realize the mouse following game

This article shares the specific code of js to im...

After reading the introduction of CSS box model, you will not be confused

The property names often heard in web design: con...

Pure CSS to achieve three-dimensional picture placement effect example code

1. Percentage basis for element width/height/padd...