MySqlErrorCode Enumeration

MySQL Connector/Net

Provides a reference to error codes returned by MySQL.

Namespace:  MySql.Data.MySqlClient
Assembly:  MySql.Data (in MySql.Data.dll) Version: 6.2.2.0

Syntax

C#
public enum MySqlErrorCode
Visual Basic (Declaration)
Public Enumeration MySqlErrorCode
Visual C++
public enum class MySqlErrorCode

Members

Member nameDescription
None
DuplicateKey
There is already a key with the given values.
KeyNotFound
The specified key was not found.
UnableToConnectToHost
Given when the connection is unable to successfully connect to host.
AccessDenied
Normally returned when an incorrect password is given
UnknownDatabase
DuplicateKeyName
Duplicate Key Name
DuplicateKeyEntry
Duplicate Key Entry
HostNotPrivileged
The given host is not allowed to connect
AnonymousUser
The anonymous user is not allowed to connect
PasswordNotAllowed
The given password is not allowed
PasswordNoMatch
The given password does not match
TableAccessDenied
ColumnAccessDenied
IllegalGrantForTable
NoSuchTable
NonExistingTableGrant
PacketTooLarge
An attempt was made to send or receive a packet larger than max_allowed_packet_size

See Also