Index: wp-includes/wp-db.php
===================================================================
--- wp-includes/wp-db.php	(revision 3354)
+++ wp-includes/wp-db.php	(working copy)
@@ -96,8 +96,10 @@
 		// Is error output turned on or not..
 		if ( $this->show_errors ) {
 			// If there is an error then take note of it
+			$errornumber = mysql_errno();
+			$errorlink = "http://www.google.com/search?num=100&hl=en&lr=&safe=off&c2coff=1&rls=en&q=site%3Awww.mysqlfreaks.com%2Ferrors+".$errornumber."&btnG=Search";
 			print "<div id='error'>
-			<p class='wpdberror'><strong>WordPress database error:</strong> [$str]<br />
+			<p class='wpdberror'><strong>WordPress database error <a href='$errorlink'>".$errornumber."</a>:</strong> [$str]<br />
 			<code>$this->last_query</code></p>
 			</div>";
 		} else {

