• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

解释MySQL异常代码

mysql 搞代码 7年前 (2018-06-05) 145次浏览 已收录 0个评论

解释mysql错误代码

  作者:zhanhailiang 日期:2013-03-08

欢迎大家阅读《解释MySQL异常代码》,跪求各位点评,by 搞代码

MySQL专门为错误代码提供perror工具来查询错误代码的含义。

如下:

zhanhailiang@linux-06bq:/usr/local/services/mysql/bin> ./perror --help ./perror Ver 2.11, for linux2.6 (i686) This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license   Print a description for a system error code or a MySQL error code. If you want to get the error for a negative error code, you should use -- before the first error code to tell perror that there was no more options.   Usage: ./perror [OPTIONS] [ERRORCODE [ERRORCODE...]]   -?, --help          Displays this help and exits.   -I, --info          Synonym for --help.   -a, --all           Print all the error messages and the number.   -s, --silent        Only print the error message.   -v, --verbose       Print error code and message (default).                       (Defaults to on; use --skip-verbose to disable.)   -V, --version       Displays version information and exits.   Variables (--variable-name=value) and boolean options {FALSE|TRUE}  Value (after reading options) --------------------------------- ---------------------------------------- all                               FALSE verbose                           TRUE zhanhailiang@linux-06bq:/usr/local/services/mysql/bin> ./perror -s 1677 Column %d of table '%-.192s.%-.192s' cannot be converted from type '%-.32s' to type '%-.32s'

官方文档:8.13. perror:解释错误代码


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:解释MySQL异常代码
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址