4e0fca6d0f
As per sinn3r's suggestion, adding handling for the most common MySQL errors. Also adding HostNotPrivileged, which I encountered during my testing.