<strong>1 查看官方的帮助文档</strong> 当前最新版本的错误码见 http://dev.mysql.com/doc/refman/5.7/en/error-handling.html <br> <br> <strong>2 在安装mysql的环境中调用mysql提供的perror命令</strong> <img src="http://img.bitscn.com/upimg/allimg/c150407/142S92915W50-13051.jpg" alt="\"> <img src="http://img.bitscn.com/upimg/allimg/c150407/142S9291614060-241B.jpg" alt=""><br> <br> <br> <br>