Mysql_pconnect () Link

Source: Internet
Author: User
Mysql_pconnect ()

I can't figure out what this permanent link means.

The manual says that the same user name and password are used on the same host

Do you mean that all users share this link?

For example, A, B, c three computer access, refers to the ABC shared one, or just say when a visit for a build one, when B access is a B build one and so on


I think it's ABC common.

Because the user name and password for accessing the database are the same


Reply to discussion (solution)

There are two actions when connecting to a database:
1. Establish a network connection to the database server
2, the login database to establish a connection to the database

Mysql_connect Short connection, two actions are done
Mysql_pconnect long connection, first check whether there is idle network connection, no two actions are done; there is only a 2nd action

It has nothing to do with accessing the computer, it is related to the host address + username + password you connected.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.