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
Dockerfile is a text file used to build an image....
At the very beginning, let's talk about what ...
There is a table user, and the fields are id, nic...
Table of contents 1. Installation 2.APi 3. react-...
Table of contents 1. Overview 2. Django Project 3...
About let to avoid problems caused by closure Use...
Preface: Sometimes, the session connected to MySQ...
MySQL installation tutorial for Windows system do...
Table of contents Overview 1. Define store.js 2. ...
Absolute positioning method: (1) Set the parent e...
An optimization solution when a single MYSQL serv...
1. Install Docker yum -y install docker-io The &q...
1. First remotely connect to the server 2. Open S...
I have been depressed for a long time, why? Some t...
Download the zip installation package: Download a...