当前位置:首页 > 网络编程 > 数据库 > Mysql > 讲解查看MySQL数据库错误码的三个方法

讲解查看MySQL数据库错误码的三个方法

点击次数:80 次 发布日期:2008-09-19 13:01:18 作者:源代码网
源代码网推荐

源代码网整理以下查看MySQL数据库错误码(error code)的三个方法:

源代码网整理以下
◆1. MySQL Reference Manual有Appendix B. Error Codes and Messages

源代码网整理以下
◆2. 查看页面:http://dev.mysql.com/doc/refman/5.0/en/error-handling.html

源代码网整理以下
◆3. MySQL的bin目录下提供了perror.exe工具,使用方法如下:

源代码网整理以下
# /usr/local/mysql/bin/perror 10

源代码网整理以下Error code 10: No child processes

源代码网整理以下
# /usr/local/mysql/bin/perror 127

源代码网整理以下Error code 127: Network is down

源代码网整理以下127 = Record-file is crashed

源代码网整理以下
# /usr/local/mysql/bin/perror 134

源代码网整理以下Error code 134: Transport endpoint is not connected

源代码网整理以下134 = Record was already deleted (or record file crashed)

源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华