Solved

persistent connections in mysql/mysqli

Posted on 2013-06-23
4
611 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Creating and Managing Databases with phpMyAdmin in cPanel.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.

743 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

13 Experts available now in Live!

Get 1:1 Help Now