Disable the buttons that try to connect to the mysql database of the user and enable it once the connecting has finished.