1. Find the mysql image docker ps 2. Enter the mirror mysql image docker exec -it 05138413c565 /bin/bash 3. Install vim Because the docker image does not have a vim command, you need to install it manually, or you can use the docker cp command to copy it from the host machine. apt-get update apt-get install vim 4. Edit the configuration file vim /etc/mysql/mysql.conf.d/mysqld.cnf Add max_connections=1024 to the file and save and exit 5. Restart the image docker kill 05138413c565 docker start 05138413c565 6. Check whether the number of MySQL connections has changed show variables like '%max_connections%'; As shown in the figure, it has become 1024 This is the end of this article about modifying the maximum number of MySQL connections and the implementation of the configuration file in Docker. For more information about modifying the maximum number of MySQL connections in Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: CSS syntax for table borders
>>: Detailed explanation of the production principle of jQuery breathing carousel
1. Introduction First of all, we need to answer a...
Table of contents Message Board Required librarie...
For sorting, order by is a keyword we use very fr...
We all know that Docker containers are isolated f...
1. Reason I just needed to reinstall MySQL on a n...
Table of contents What is MVCC MVCC Implementatio...
Table of contents 1. Vue installation Method 1: C...
This article will introduce how to use explain to...
Table of contents Prerequisites DNS domain name r...
1. Which three formats? They are: gif, jpg, and pn...
In most application scenarios, we need to back up...
Before officially using Docker, let's first f...
A large part of data management is searching, and...
Table of contents 1. Encapsulate complex page dat...
Solution to MySql service disappearance for unkno...