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
Which is faster mysql or mongodb?
What is mysql uuid?
Can we join 3 tables in mysql?
What is InnoDB?
What is the return type of mysqli_query?
What is slow query log in mysql?
How much does mysql cost?
I've looked but can't find a MySQL equivalent for MS SQL's xp_cmdshell. I have 7z files that I want to unzip and load into MySQL. I'm trying to write a sp to do the unzip, but I can't find a way to do that. Can anyone provide an example of a similar process in Windows? TIA.
What does blob mean in mysql?
What is blob storage?
What is prepare statement in mysql?
How can you create and drop view in mysql?
Is sql and mysql same?
How do we use % when performing a search query?
How would you get the current date in mysql?