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

Answer Posted / sumit

In mysql_pconnect(), ‘p’ stands for persistance connection.

when connecting, the function would try to find a (persistent) connection 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.


mysql_connect() function, every time it is opening and closing the database connection.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the critical issues you have resolved in your company

1980


What is indexing in mysql?

679


What is the difference between float and double?

837


Is mysql same as mariadb?

685


Where is mysql password stored?

693


Does mysql use tcp or udp?

718


How do I connect to mysql database?

744


What is difference between microsoft sql and mysql?

708


Which is better mysql or microsoft sql?

665


How do I import database through command line?

725


What is a mysql server?

761


How do I quit mysql?

700


Write a command with which mysql table can be repaired

748


How do I select a database in mysql workbench?

721


Can mysql handle big data?

736