I was installing a fresh copy of Drupal on Ubuntu this morning when I hit upon a problem. Half way through the installation script, Drupal kept throwing this at me:
PHP Warning: mysqli_error() [function.mysqli-error]: invalid object or resource mysqli
Followed by the equally useless:
Unable to connect to database server. The MySQL error was: .
Well thank you very much, Drupal. The message might as well just read "Something broke!"