[英]List of all errorCode in MySQLException in io.vertx.mysqlclient
Is there any source, where I can get list of all errorCode/errorMessage in MySQLException ( io.vertx.mysqlclient )是否有任何来源,我可以在 MySQLException ( io.vertx.mysqlclient ) 中获取所有 errorCode/errorMessage 的列表
For ex:例如:
1062 is MySQL Duplicate Key 1062 是 MySQL 重复键
While you asked for vert.x codes, probably source material- MySql Error reference would help https://dev.mysql.com/doc/mysql-errors/8.0/en/ There are server and client side as well as global error codes listed there.当您要求提供 vert.x 代码时,可能源材料-MySql 错误参考会有所帮助https://dev.mysql.com/doc/mysql-errors/8.0/en/有服务器端和客户端以及全局错误代码在那里列出。
Also, check out https://github.com/sambrmg/mysql-error-codes/blob/master/index.js另外,请查看https://github.com/sambrmg/mysql-error-codes/blob/master/index.js
In MySQL %s represents a String ID and %d is representing a primary key(usually) decimal.在 MySQL 中,%s 表示字符串 ID,%d 表示主键(通常)十进制。 1062 is about an identical column value as an id column or such like. 1062 大约是与 id 列等相同的列值。 https://dev.mysql.com/doc/mysql-errors/8.0/en/client-error-reference.html Get the PDF download of this page in the left column of all the error codes. https://dev.mysql.com/doc/mysql-errors/8.0/en/client-error-reference.html在所有错误代码的左栏中获取该页面的PDF下载。 note: If you use PHP it has similar numeric error messages (just to not confuse it).注意:如果您使用 PHP,它会有类似的数字错误消息(只是为了不要混淆它)。 note: https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html注意: https : //dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html
https://dev.mysql.com/doc/mysql-errors/8.0/en/global-error-reference.html for mysql errors. https://dev.mysql.com/doc/mysql-errors/8.0/en/global-error-reference.html用于 mysql 错误。
Also, I had same error code from MariaDB, and found this link useful.另外,我有来自 MariaDB 的相同错误代码,并发现此链接很有用。 https://mariadb.com/kb/en/mariadb-error-codes/#shared-mariadbmysql-error-codes https://mariadb.com/kb/en/mariadb-error-codes/#shared-mariadbmysql-error-codes
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.