うまいぼうぶろぐ

linuxとhttpdとperlのメモ

prrorでエラーコードの詳細表示

  • MySQL AB :: MySQL 5.1 リファレンスマニュアル :: 7.18 perror ― エラーコードの説明

http://dev.mysql.com/doc/refman/5.1/ja/perror.html


へぇ。こんなのあったんだ。

# mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
# perror 2
OS error code 2: No such file or directory

# perror {1..200}
OS error code   1:  Operation not permitted
OS error code   2:  No such file or directory
OS error code   3:  No such process
OS error code   4:  Interrupted system call
OS error code   5:  Input/output error
OS error code   6:  No such device or address
OS error code   7:  Argument list too long
OS error code   8:  Exec format error
OS error code   9:  Bad file descriptor
OS error code  10:  No child processes
…()
MySQL error code 147: Lock table is full;  Restart program with a larger locktable
MySQL error code 148: Updates are not allowed under a read only transactions
MySQL error code 149: Lock deadlock; Retry transaction
MySQL error code 150: Foreign key constraint is incorrectly formed
MySQL error code 151: Cannot add a child row
MySQL error code 152: Cannot delete a parent row

152番までずらずら出てきた。