This exception is raised when the MySQL server encounters an internal error, for example, when a deadlock occurred.
errors.InternalError is a subclass of errors.DatabaseError.
errors.InternalError
errors.DatabaseError