如何查询MySQL错误代码
来源:互联网 发布:ipad写毛笔字软件 编辑:程序博客网 时间:2024/04/28 02:31
作者:zhanhailiang 日期:2013-03-08
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 FALSEverbose TRUEzhanhailiang@linux-06bq:/usr/local/services/mysql/bin> ./perror -s 1677Column %d of table '%-.192s.%-.192s' cannot be converted from type '%-.32s' to type '%-.32s'
官方文档:8.13. perror:解释错误代码
- 如何查询MySQL错误代码
- MySql常见的错误代码查询
- mysql 错误代码
- Mysql错误代码
- Mysql错误代码
- mysql错误代码
- mysql 错误代码
- mysql错误代码
- mysql错误代码
- MySQL错误代码
- mysql错误代码
- MySQL 错误代码
- MySQL错误代码
- MYSQL 错误代码
- 如何处理MYSQL查询
- 如何查询MySql日志
- 如何查询MySql日志
- 如何查询MySql日志
- 二分图判断
- linux用户管理笔记
- ios 应用之间交互
- ARC
- sqlserver身份认证不能登录
- 如何查询MySQL错误代码
- 【iOS开发】---- 下拉刷新(附Demo)
- 详解Javascript匿名函数的使用
- 从程序员到项目经理(四):外行可以领导内行吗
- ApacheBench开源测试工具
- 导出excle
- XMPP之流协商过程
- windows下redis的安装
- 手动创建数据库步骤