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
How to enter boolean values in sql statements?
What is tee command in mysql?
What does tinyint mean?
How can you validate emails using a single query?
What is the insert?
What are the steps required to view your mysql database?
How is myisam table stored?
SQL is not case sensitive. DELETE is the same as delete. State Whether True or False?
1.how to fetch a value and Execute store procudure in mysql(INNODB) using phpMyAdmin? 2.can i wright a package in mysql database(INNODB)?
how can you test for null values in a database? : Mysql dba
What is query log in mysql?
How to shut down the server with 'mysqladmin'?
Can I use mysql for free?
How can you retrieve a particular number of records from a table?
Is mysql relational?