Solved

persistent connections in mysql/mysqli

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
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…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

792 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