1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MySQL エラーコードの意味を出力する

Posted at

目的

  • MySQLにて数字にて出力されるエラーコードの意味を出力するコマンドを紹介する

実行例

  • 下記にエラーコードの意味を出力するコマンドを記載する。

    $ perror エラーコードの数字
    

具体例

  • エラーERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)のエラーコードの意味を出力する場合は下記コマンドを実行する。

    $ perror 111
    >OS error code 111:  Connection refused
    
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?