?
Solved

persistent connections in mysql/mysqli

Posted on 2013-06-23
4
Medium Priority
?
660 Views
Last Modified: 2013-06-24
what is difference between persistent connections on/off in mysql/mysqli
0
Comment
Question by:rgb192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 6

Accepted Solution

by:
Vijay Pratap Singh earned 668 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 668 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 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 664 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

764 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