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
Why do we use pragma autonomous transaction?
What is the current version of mysql?
How to use mysqldump to create a copy of the database?
What is difference between mysql mysqli and pdo?
How would you get the current date in mysql?
What is a tinyint in mysql?
How do I rename a table in mysql workbench?
What is the default password for mysql?
What are triggers in mysql?
What is longblob in mysql?
How do I create a new database in mysql?
What is difference between mysql and mysql server?
What is ibdata1?
What are the benefits of mysql?
What is the difference between mysql_fetch_array() and ysql_fetch_object() ?