About 29,000 results
Open links in new tab
  1. How can I see / change MySQL connection timeout settings?

    Aug 29, 2016 · You can make this request to show your timeout in MySql. SHOW VARIABLES LIKE 'connect_timeout'; Next you can update it to 60 secondes for exemple. SET GLOBAL connect_timeout=60; If the problem is the Query you can use Statement.setQueryTimeout

  2. Connection Timeout with MySQL Database - GeeksforGeeks

    Oct 13, 2023 · If the client application keeps facing connection-timeout errors or, if the Server has a working connection without interaction for prolonged hours then you can increase or decrease the duration which can be done by executing simple queries.

  3. How to Change Connection Timeout in MySQL - Stack Abuse

    Jul 2, 2023 · All-in-all, managing connection timeouts in MySQL helps with optimizing the performance and reliability of your MySQL-driven apps. By adjusting the timeout settings, you can find the right balance between maintaining stable connections and …

  4. How to Change the Connection Timeout in MySQL - Delft Stack

    Feb 2, 2024 · Sometimes, you keep losing the connection to MySQL Server because the connect_timeout property is set to a few seconds by default. Here, we will see how to change the default value of the connect_timeout in MySQL using Linux (Ubuntu 20.04) and Windows operating systems.

  5. How to Set Connection Timeout in MySQL 8 - Sling Academy

    Jan 26, 2024 · Connection timeout defines the amount of time a server will wait for a connection to be established before it is terminated. This guide focuses on tuning your MySQL server for better connection timeout handling.

  6. MySQL Workbench: How to keep the connection alive

    Go to Edit -> Preferences -> SQL Editor and set to a higher value this parameter: DBMS connection read time out (in seconds). For instance: 86400. Close and reopen MySQL Workbench. Kill your previously query that probably is running and run the query again.

  7. How long is "too long" for MySQL Connections to sleep?

    mysqld will timeout database connections based on two server options: interactive_timeout; wait_timeout; Both are 28,800 seconds (8 hours) by default. You can set these options in /etc/my.cnf. If your connections are persistent (opened via mysql_pconnect) you could lower these numbers to something reasonable like 600 (10 minutes) or even 60 (1 ...

  8. How to increase MySQL connections (max_connections)?

    Aug 10, 2016 · From Increase MySQL connection limit:-MySQL’s default configuration sets the maximum simultaneous connections to 100. If you need to increase it, you can do it fairly easily: For MySQL 3.x: # vi /etc/my.cnf set-variable = max_connections = 250 For MySQL 4.x and 5.x: # vi /etc/my.cnf max_connections = 250

  9. How do I set wait_timeout to unlimited in mysql? - Ask Ubuntu

    Mar 14, 2017 · sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf Locate the timeout configuration and adjust it to fit your server. [mysqld] wait_timeout = 31536000 interactive_timeout = 31536000

  10. Change the MySQL Timeout on a Server - Solutions Documentation

    When an application fails to close an unused connection, a low wait_timeout value helps you avoid exceeding the permitted number of connections. Use the following instructions to set this vakue: Log in to your server by using Secure Shell® (SSH). Use the sudo command to edit my.cnf , the MySQL® conf...

Refresh