PrefaceYou can check how to start MySQL and some interpretations of MySQL on the official website. Attach the official website address Start another mysql container instance and run the mysql command mysql is the world's most popular open source database. Because of its proven performance, reliability, and ease of use, MySQL has become the leading database choice for web-based applications, ranging from personal projects and websites, through e-commerce and information services, all the way to high-profile web properties including Facebook, Twitter, YouTube, Yahoo! and many more. Actual combat processBy checking the official website for specific white papers, you can find out that you can use this command to execute This is the most basic way to start MySQL. However, since MySQL needs to be accessed via a port before it can be opened, this simple command only opens a container and a database container, but there is no entry access. You can add the parameters below the official website. Let's start by explaining its main commands and details one by one When using Other main parameters in the command are as follows:
Finally, the mounted image command is docker run -d -p 3306:3306 -v /home/gaokaoli/mysql/conf:/etc/mysql/conf.d -v /home/gaokaoli/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=12345678 --name mysql001 mysql Check whether the startup is successfulThe specific IP used to open the database through the Navicat software is the local IP address of the virtual machine instead of the address in the container Conducting the testThe above is the details of the implementation process of Docker starting MySQL configuration. For more information about Docker starting MySQL configuration implementation, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Use a table to adjust the format of the form controls to make them look better
>>: Detailed explanation of the 4 ways to import CSS files: inline, inline, external, and imported
Download https://tomcat.apache.org/download-80.cg...
Installation The required documents are provided ...
The GROUP BY statement is used in conjunction wit...
1. Download nginx [root@localhost my.Shells]# doc...
Table of contents 1. Problem 2. Solution Option 1...
I recently made a file system and found that ther...
1. Create a new object using the Object.create() ...
Table of contents background Implementation ideas...
When using Flex layout, you will find that when a...
Table of contents definition grammar Examples 1. ...
1. Mirror images disappear in 50 and 93 [root@h50...
Alibaba Cloud Server installs and configures Tomc...
Let’s look at the effect first: This effect looks...
Tutorial Series MySQL series: Basic concepts of M...
Summarize 1. Similarities Both can change the int...