Solved

persistent connections in mysql/mysqli

Posted on 2013-06-23
4
618 Views
Last Modified: 2013-06-24
what is difference between persistent connections on/off in mysql/mysqli
0
Comment
Question by:rgb192
4 Comments
 
LVL 6

Accepted Solution

by:
Vijay Pratap Singh earned 167 total points
ID: 39270413
If persistent connection is on means connection between client and server will not break even if client not using database still synchronization will be there by sending hello and hi packets.

While in persistent connection off connection will break as soon as host stops using the database.

xD
0
 
LVL 15

Assisted Solution

by:Jagadishwor Dulal
Jagadishwor Dulal earned 167 total points
ID: 39270421
You need to understand about connection extension and you will better know about mysql/mysqli see php manual
http://php.net/manual/en/mysqli.persistconns.php
0
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 166 total points
ID: 39271007
Persistent connections are almost never reasonable in a WWW application.  Each request from a client initiates a new process on the server.  Each process needs its own connection, and when the process is complete, there is no further use for the connection.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/A_11271-Understanding-Client-Server-Protocols-and-Web-Applications.html

Executive summary: Don't use persistent connections.
0
 

Author Closing Comment

by:rgb192
ID: 39273720
all describe persistent connections
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now