--- src/lib-sql/driver-mysql.c.orig	Mon Feb  6 23:07:42 2006
+++ src/lib-sql/driver-mysql.c	Mon Feb  6 23:39:36 2006
@@ -112,11 +112,17 @@
 	}
 
 	alarm(MYSQL_CONNECT_FAILURE_TIMEOUT);
+	i_error("conn->mysql is %s NULL", conn->mysql == NULL ? "" : "NOT");
+	i_error("host(%s), db->user(%s), db->password(%s), db->dbname(%s), "
+		"db->port(%u), unix_socket(%s), db->client_flags(%u)",
+		host, db->user, db->password, db->dbname, db->port, unix_socket,
+		db->client_flags);
 	failed = mysql_real_connect(conn->mysql, host, db->user, db->password,
 				    db->dbname, db->port, unix_socket,
 				    db->client_flags) == NULL;
 	alarm(0);
 	if (failed) {
+		i_error("failed: (%i)", (int)failed);
 		if (conn->connect_failure_count > 0) {
 			/* increase delay between reconnections to this
 			   server */