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

How do I start mysql in mysql workbench?

705


How do I download mysql on my laptop?

674


How to delete a database from mysql server.

753


What is innodb_buffer_pool_size?

702


What is difference between Sql server and MySql database? It may be silly question but i really dont know.

1828


How do I uninstall mysql connector?

688


Why mysql is used with php?

699


How many concurrent queries can mysql handle?

668


How to delete an existing column in a table?

708


What is RMS Migrations

2198


Does mysql scale well?

687


What are mysql data types?

769


Write a query to fetch common records between two tables using mysql?

790


Why should I learn mysql?

704


Explain the difference between delete and truncate.

748