Change connect_timeout in MySQL

mysql -u USER -p

show variables like "connect_timeout";

quit;

The value of connect_timeout can be specified in the file /etc/mysql/my.cnf, for example:

[mysqld]

connect_timeout=10

[mysqld]

connect_timeout=10

--

--

Director Of Engineering at Bucksense, Inc 📈 Crypto & NFT Fan | ⌨️ Mechanical Keyboard Enthusiast | 🍕 Pizza Maker

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michele Berardi

Director Of Engineering at Bucksense, Inc 📈 Crypto & NFT Fan | ⌨️ Mechanical Keyboard Enthusiast | 🍕 Pizza Maker