Skip to content

Instantly share code, notes, and snippets.

@vishwasbabu
Last active December 29, 2015 10:49
Show Gist options
  • Save vishwasbabu/7659222 to your computer and use it in GitHub Desktop.
Save vishwasbabu/7659222 to your computer and use it in GitHub Desktop.
MySQL Connection timeout
>> Check number of max used connections
SHOW STATUS WHERE variable_name = 'Max_used_connections'
>> Check number of threads connected
SHOW STATUS WHERE variable_name = 'Threads_connected'
>> Update max connection variable
show variables like "max_connections";
set global max_connections = 2000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment