Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

persistent connections in mysql/mysqli

Posted on 2013-06-23
4
Medium Priority
?
672 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
The viewer will learn how to dynamically set the form action using jQuery.
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

610 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