Mysql: max_connections & wait-timeout

Created on 30 May 2017  Â·  4Comments  Â·  Source: docker-library/mysql

Hey there, how do I increase the max_connections? Sorry if that this question might be dumb, but I couldn't find a page saying how to increase the max_connections of the official mysql container.

By the way I want to modify the default wait-timeout value too, how to do that?

Thanks in advance.

Most helpful comment

OK, like this wokrs for me:
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag --max_connections=10000

All 4 comments

You should pass the value:

  • via a custom my.cnf
  • via a parameter at server startup

See https://hub.docker.com/_/mysql/

If ok, pls close this tkt.

thanks!

On Jun 6, 2017, 2:58 PM +0800, ioggstream notifications@github.com, wrote:

You should pass the value:

• via a custom my.cnf
• via a parameter at server startup

See https://hub.docker.com/_/mysql/
If ok, pls close this tkt.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

hello @BirkhoffLee , do you found solustion?

OK, like this wokrs for me:
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag --max_connections=10000

Was this page helpful?
0 / 5 - 0 ratings