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 many rows can mysql hold?

463


Can we write procedure in mysql?

495


What is InnoDB?

557


Explain the difference between procedure and function in mysql?

515


What is difference between group by and order by clause?

530






Which is better mysql or mssql?

470


Is mysqli deprecated?

489


Is mysql is a programming language?

515


How do you create a new database in mysql?

454


What is 'mysqlshow'?

628


How do I find my mysql username and password?

541


How do you say mysql?

480


What is database engine in mysql?

480


How to delete a table.

507


How to create trigger in mysql workbench?

536