Alternating usernames while connecting to mysql database
I would opt to increase the number of connections instead of owning two different users/configurations in the same host with same privileges.

Unless, there is a persistent connection, php itself will close the connection explicitly even though you do not close them yourself.