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
Disable right-click menu <body oncontextmenu=s...
Table of contents 1. Optional Chaining 2. Null va...
Table of contents process Demo Mini Program Backe...
This article shares the specific code of JavaScri...
【Foreword】 The SMS function of our project is to ...
Table of contents In vue2 In vue3 Notes on setup ...
Table of contents Class Component Functional Comp...
The complete code is as follows : HTML code: Copy ...
Write at the beginning This article only covers E...
Problem Description After installing Qt5.15.0, an...
1. Background I recently made a website, uidea, w...
Table of contents Preface MySQL master-slave repl...
What is ZooKeeper ZooKeeper is a top-level projec...
Table of contents 1. Routing animation 2. Group Q...
1. Only Chinese characters can be input and pasted...