Don't prompt for MySQL root password if not really necessary.

If we can connect, access the main database and create the test database then
everything's fine, we don't really need to ask for the MySQL root password.