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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37c67-2b912.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37c67-2b912.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?