Languages
[Edit]
EN

Docker MySQL image - fix for error - ERROR 1040 (HY000): Too many connections

1 points
Created by:
Dharman
338

Steps:

# 1. Login to MySQL docker image
docker exec -ti PUT_CONTAINER_NAME_HERE /bin/sh
# or
docker exec -t -i PUT_CONTAINER_NAME_HERE /bin/bash


# 2. Edit file: /etc/mysql/my.cnf
vim /etc/mysql/my.cnf
# How to install vim under docker - at the end of this post


# 3. Add max_connections parameter in my.cnf
[mysqld]
max_connections=1000


# 4. Restart container

 

How to login to docker container:

 

If you don't have vim installed:

# update:
apt-get update

# install vim:
apt-get install vim

 

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join