Search the MySQL manual:
MySQL Manual

Buy this Reference Manual in softcover from Barnes & Noble!

/ / Up / Table of Contents

4.8.9 perror, разъяснение кодов ошибок

Для большинства системных ошибок, помимо внутреннего текстового сообщения MySQL, можно также выводить номер кода системной ошибки в одном из следующих стилей: message ... (errno: #) или message ... (Errcode: #).

Выяснить, что данный код ошибки означает, можно либо путем изучения документации на данную систему, либо воспользовавшись возможностями утилиты perror.

perror выводит описание кода системной ошибки или код ошибки обработчика таблиц MyISAM/ISAM.

perror вызывается следующим образом:

shell> perror [ПАРАМЕТРЫ] [ERRORCODE [ERRORCODE...]]

Пример:

shell> perror 13 64
Error code 13: Доступ запрещен
Error code 64: Компьютер не находится в сети

Следует учитывать, что сообщения об ошибках в большинстве своем являются системно-зависимыми!

User Comments

Posted by on Thursday August 15 2002, @8:47am [Delete] [Edit]

If you get an Errcode 13 when trying to USE a
database you created during a previous session,
try logging in as 'root' in Linux and then logon
to your installation of MySQL and USE the
database. Problem solved!

Posted by [name withheld] on Wednesday November 13 2002, @11:35pm [Delete] [Edit]

If logging in as root solves your problem, you
need to figure out what your real permission
issues are. You should not need to log in as root
to use mysql tables -- I do not. Look and see
what files your mysqld is accessing -
/var/lib/mysql, for example. All files in that
tree should be owned by mysql, group mysql.

Check your logs as well. In Redhat, the script
that starts mysql fixes a lot of permissions. If
you are not using the /etc/rc.d/init.d/mysqld
script (probably as service mysqld start) why is
that?

Posted by on Monday March 10 2003, @3:07am [Delete] [Edit]

Does anyone know where can one get a list of error codes? I just cannot find such a file at all. :(

Add your own comment.

Top / / / Up / Table of Contents