1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00

Added a note about MySQL's reconnect option and its effects on prepared statements

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1308718 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Gruno
2012-04-03 06:44:36 +00:00
parent aab303c1a7
commit 1f3ce0fe59

View File

@@ -112,6 +112,14 @@ APR_DECLARE_OPTIONAL_FN(void, ap_dbd_prepare, (server_rec*, const char*, const c
<p>It is up to dbd user modules to use the prepared statements
and document what statements can be specified in httpd.conf,
or to provide their own directives and use <code>ap_dbd_prepare</code>.</p>
<note type="warning"><title>Caveat</title>
When using prepared statements with a MySQL database, it is preferred to set
<code>reconnect</code> to 0 in the connection string as to avoid errors that
arise from the MySQL client reconnecting without properly resetting the
prepared statements. If set to 1, any broken connections will be attempted
fixed, but as mod_dbd is not informed, the prepared statements will be invalidated.
</note>
</section>
<section id="security">