CreateDSN creates a DSN (data source name) string out of hostname, username,
password, and timeout. It validates the resulting DSN and returns an error
if the DSN is invalid.
GetMySQLEnvDSN returns the MySQL server DSN to use for testing. It
reads the value from the MYSQL_DSN environment variable and returns
root@tcp(127.0.0.1:3306)/ if it is not set.