summaryrefslogtreecommitdiffstats
path: root/user_guide/database
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/database')
-rw-r--r--user_guide/database/connecting.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/user_guide/database/connecting.html b/user_guide/database/connecting.html
index 3579e1af6..b4d517941 100644
--- a/user_guide/database/connecting.html
+++ b/user_guide/database/connecting.html
@@ -158,6 +158,11 @@ you can pass the connection values as indicated above).</p>
</div>
+<h2>Reconnecting / Keeping the Connection Alive</h2>
+
+<p>If the database server's idle timeout is exceeded while you're doing some heavy PHP lifting (processing an image, for instance), you should consider pinging the server by using the <dfn>reconnect()</dfn> method before sending further queries, which can gracefully keep the connection alive or re-establish it.</p>
+
+<code>$this->db->reconnect();</code>