If a cPanel access is causing your mysql database to become unreachable then that really sounds like some sort of server issue going on. Especially if your username/passwords are constantly changing.
If you have SSH access to the server, what I'd do is try and do a 'mysqladmin processlist' to see what's actually going on when the database locks up.