Background After the client requests to connect to the database, the client will be prompted to enter the user password. If the client does not enter the password, the database server will disconnect after a timeout period. In other words, before the server actively disconnects, the connection needs to occupy a…