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

26 Commonly Forgotten CSS Tips

This is a collection of commonly used but easily ...

File upload via HTML5 on mobile

Most of the time, plug-ins are used to upload fil...

js uses the reduce method to make your code more elegant

Preface In actual projects, the most common proce...

Detailed explanation of the use of $emit in Vue.js

1. Parent components can use props to pass data t...

MySQL foreign key (FOREIGN KEY) usage case detailed explanation

Introduction: The disadvantages of storing all da...

Common writing examples for MySQL and Oracle batch insert SQL

Table of contents For example: General writing: S...

Sample code for testing technology application based on Docker+Selenium Grid

Introduction to Selenium Grid Although some new f...

Detailed explanation of Socket (TCP) bind from Linux source code

Table of contents 1. A simplest server-side examp...

Solution to Apache cross-domain resource access error

In many cases, large and medium-sized websites wi...

CSS imitates Apple's smooth switch button effect

Table of contents 1. Code analysis 2. Source code...

A brief discussion on the problem of Docker run container being in created state

In a recent problem, there is such a phenomenon: ...

VMware Workstation Pro installs Win10 pure version operating system

This article describes the steps to install the p...