Fix mysql error checking for too many connections.

Tested with max connections and it caused a failover because mysql from the commandline only returns 1 not the actual mysql error code of 1040. Need to regex out the code from the output string instead.