tell us the detail about how to connect to a mysql database