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
What is max connection in mysql?
Write a query to display current date and time?
What is a session in mysql?
Can't connect mysql server on localhost?
using primary can we relate two table, with out foreign key?
How do I restore a database in mysql workbench?
What is sqlyog?
What is federated tables in mysql?
Why we use mysql workbench?
How can I create a database in mysql?
How do I show all mysql databases?
What is a table schema?
How show all tables in mysql query?
Where is the mysql database stored?
Is mongodb faster than mysql?