What is the difference between mysql_connect() and
mysql_pconnect()?

Answer Posted / amita

mysql_connect everytime open a new connection to the database


while using mysql_pconnect , the function would first try to
find a (persistent) link that's already open with the same
host, username and password. If one is found, an identifier
for it will be returned instead of opening a new connection...
the connection to the SQL server will not be closed when the
execution of the script ends. Instead, the link will remain
open for future use.

Is This Answer Correct ?    72 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mysql in dbms?

696


What does "i_am_a_dummy flag" do in mysql?

702


Why we use mysql workbench?

663


What is mysql community edition?

710


What are the advantages of a procedure?

686


What is the difference between a heap table and temporary table?

693


How do I install mysql on windows 10?

723


how to add a new column to an existing table?

738


What is mysql data directory? How to determine the location of the data directory?

730


How many columns can you create for an index?

684


How do stored procedures work?

720


What is append query?

690


What can I do with mysql?

684


Will mysql remain free?

712


What is the default port of mysql server?

720