How can I make sure that when the network is reorganized, there is no need to reconnect the database? Stay connected?

I"d like to ask about the problem of how to reorganize the network so that you don"t need to reconnect to the database.

have I looked up
https://stackoverflow.com/que.
and found that php7 doesn"t seem to have this function?

have you ever realized this function?
is the time when the network is reorganized. If you have an offline database, you don"t need to reconnect again.

The running mode of

PHP determines that PHP cannot implement connection pooling in web, and persistent connections with PHP can also cause problems.
generally speaking, persistent connections are only used in PHP in CLI mode.
so your needs can be ignored. PHP ignores this


PDO has a ATTR_PERSISTENT attribute, refer to

.
Menu