Re: MySQL goes away?



On Sun, 31 Aug 2008 16:05:39 +0100
kj <koffiejunkielistlurker@xxxxxxxxxxxxxxxxxxx> wrote:

Rico Secada wrote:
Hi,

I keep getting this from Amavis about MySQL:

**Unmatched Entries**
NOTICE: reconnecting in response to: err=2006, S1000, DBD::mysql::st
execute failed: MySQL server has gone away at (eval 40) line 153,
<GEN27> line 3.: 2 Time(s)
NOTICE: reconnecting in response to: err=2006, S1000, DBD::mysql::st
execute failed: MySQL server has gone away at (eval 40) line 153,
<GEN32> line 3.: 2 Time(s)

Does anyone know what exactly this means?

Your program leaves the connection open, and the connection times
out. It's a bit like this:

mysql> show variables like 'wait%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wait_timeout | 28800 |
+---------------+-------+
1 row in set (0.00 sec)

mysql> set wait_timeout = 60;
Query OK, 0 rows affected (0.00 sec)

mysql> show variables like 'wait%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wait_timeout | 60 |
+---------------+-------+
1 row in set (0.00 sec)

and then, after more than a minute:

mysql> show variables like 'wait%';
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 35716
Current database: *** NONE ***

+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wait_timeout | 28800 |
+---------------+-------+
1 row in set (0.00 sec)


Close your connections or set your wait_timeout higher.

Thanks kj, makes sense!

--kj


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx





--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Local Access database to shared PHP/MySql hosting export
    ... The client has an ADSL connection. ... Long ago I was shown how Excel could query data from a mysql ... database _on Linux_ using ODBC. ... access the linux mysql server, and then use that connection to allow MS ...
    (comp.lang.php)
  • Re: VFP8 & MySQL
    ... > VFP functions like NVL to a MySQL one, definitely it made the switch very ... > About your connection problem, I have mine setup as default for 100 ... As for the server, we left it ... The server crashed and corrupted the database. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Does apache stop a script mid execution ?
    ... If the user calls a time consuming script and then stops or refreshes ... How does it relate to e.g. a script performing a large mysql query? ... 2.b) how the connection is set up. ... the server stops the script execution. ...
    (comp.lang.php)
  • MySQL on Win 98
    ... I'm just getting into MySQL and I'm trying to learn about it at home. ... and created a DSN connection for it. ... User: root ... ODBC Data Source Administrator and get a "success" result. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: VFP8 & MySQL
    ... Main Location and 3 branches (these are remotely accessing MySQL at the main ... About your connection problem, I have mine setup as default for 100 ... As for the server, we left it alone. ... The server crashed and corrupted the database. ...
    (microsoft.public.fox.programmer.exchange)