php.de

Zurück   php.de > Webentwicklung > Datenbanken

Datenbanken SQL und Co

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 06.08.2004, 23:33  
Gast
 
Beiträge: n/a
Standard [Erledigt] mysql_error in deutscher sprache ausgeben

hallo,
ich möchte die mysql_error in deutscher sprache ausgeben oder noch besser, eigene texte.

Hab auch folgende tuts gefunden
http://de.php.net/mysql_error

und

http://dev.mysql.com/doc/mysql/en/Error-handling.html
Nach langem ausprobieren, muss ich aber feststellen, dass ich da gar nichts raffe??

kann mir das einer/jemand etwas unkomplizierter erklären??

Im Prinzip müsste ich abfragen wenn es der und der Fehler is, dann gib das aus. Die theorie is einfach. Die Praxis nicht.

Für jeden Tip wäre ich echt froh und dankbar.
  Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 07.08.2004, 00:34  
Erfahrener Benutzer
 
Registriert seit: 30.06.2004
Beiträge: 619
tapferesschneiderlein
Standard

Du kannst die Sprache in der my.ini wählen, Dir mit comp-err.exe eigene Fehlermeldungen kreieren oder Fehlertexte in ein Array schreiben und mit $array[mysql_errno()] abrufen.

www.php.net/mysql_errno
tapferesschneiderlein ist offline   Mit Zitat antworten
Alt 07.08.2004, 16:44  
Gast
 
Beiträge: n/a
Standard

danke fürs antworten

Frage:
wo finde ich diese my.ini??? und was ist die comp-err.exe???
ich habe keinen eigenen server, wo ich gerade mal die sprache umstellen kann. Hängt es damit zusammen??

Meine fehler gebe ich in meinem script so aus.

Beispiel:

Code:
$dbusar=@mysql_query("SELECT count(id) AS num FROM ".$cfg[dbpre]."user WHERE acc='y'") or error(mysql_error());
Wie muss denn dein tip da ausehen???

Sorry, ich versuchs nachzuvollziehen, aber ich versteh es einfach net.
  Mit Zitat antworten
Alt 07.08.2004, 21:50  
Erfahrener Benutzer
 
Registriert seit: 30.06.2004
Beiträge: 619
tapferesschneiderlein
Standard

PHP-Code:
<?php

$q 
'SELECT COUNT(id) AS num 
      FROM ' 
$cfg[dbpre] . 'user 
      WHERE acc = "y"'
;
/*
a) ist »dbpre« eine vorher definierte Konstante 
   oder muß es $cfg['dbpre'] heißen?

b) heißt die Tabelle wirklich »$cfg[dbpre] . 'user'« ? 
*/

$dbusar = @mysql_query($q);

/* Wenn Du Deine eigenen Fehlermeldungen in ein Array 
   (z. B. $mysql_errno) legst, kannst Du diese dann
   aufrufen (evtl. noch eine if-Bedingung einbauen)
*/

echo $mysql_errno[mysql_errno()];



// Als Basis könnte Dir folgendes Array dienen:

$mysql_errno[1000] = 'SQLSTATE: HY000 (ER_HASHCHK) Message: hashchk';
$mysql_errno[1001] = 'SQLSTATE: HY000 (ER_NISAMCHK) Message: isamchk';
$mysql_errno[1002] = 'SQLSTATE: HY000 (ER_NO) Message: NO';
$mysql_errno[1003] = 'SQLSTATE: HY000 (ER_YES) Message: YES';
$mysql_errno[1004] = 'SQLSTATE: HY000 (ER_CANT_CREATE_FILE) Message: Can\'t create file \'%s\' (errno: %d)';
$mysql_errno[1005] = 'SQLSTATE: HY000 (ER_CANT_CREATE_TABLE) Message: Can\'t create table \'%s\' (errno: %d)';
$mysql_errno[1006] = 'SQLSTATE: HY000 (ER_CANT_CREATE_DB) Message: Can\'t create database \'%s\' (errno: %d)';
$mysql_errno[1007] = 'SQLSTATE: HY000 (ER_DB_CREATE_EXISTS) Message: Can\'t create database \'%s\'; database exists';
$mysql_errno[1008] = 'SQLSTATE: HY000 (ER_DB_DROP_EXISTS) Message: Can\'t drop database \'%s\'; database doesn\'t exist';
$mysql_errno[1009] = 'SQLSTATE: HY000 (ER_DB_DROP_DELETE) Message: Error dropping database (can\'t delete \'%s\', errno: %d)';
$mysql_errno[1010] = 'SQLSTATE: HY000 (ER_DB_DROP_RMDIR) Message: Error dropping database (can\'t rmdir \'%s\', errno: %d)';
$mysql_errno[1011] = 'SQLSTATE: HY000 (ER_CANT_DELETE_FILE) Message: Error on delete of \'%s\' (errno: %d)';
$mysql_errno[1012] = 'SQLSTATE: HY000 (ER_CANT_FIND_SYSTEM_REC) Message: Can\'t read record in system table';
$mysql_errno[1013] = 'SQLSTATE: HY000 (ER_CANT_GET_STAT) Message: Can\'t get status of \'%s\' (errno: %d)';
$mysql_errno[1014] = 'SQLSTATE: HY000 (ER_CANT_GET_WD) Message: Can\'t get working directory (errno: %d)';
$mysql_errno[1015] = 'SQLSTATE: HY000 (ER_CANT_LOCK) Message: Can\'t lock file (errno: %d)';
$mysql_errno[1016] = 'SQLSTATE: HY000 (ER_CANT_OPEN_FILE) Message: Can\'t open file: \'%s\' (errno: %d)';
$mysql_errno[1017] = 'SQLSTATE: HY000 (ER_FILE_NOT_FOUND) Message: Can\'t find file: \'%s\' (errno: %d)';
$mysql_errno[1018] = 'SQLSTATE: HY000 (ER_CANT_READ_DIR) Message: Can\'t read dir of \'%s\' (errno: %d)';
$mysql_errno[1019] = 'SQLSTATE: HY000 (ER_CANT_SET_WD) Message: Can\'t change dir to \'%s\' (errno: %d)';
$mysql_errno[1020] = 'SQLSTATE: HY000 (ER_CHECKREAD) Message: Record has changed since last read in table \'%s\'';
$mysql_errno[1021] = 'SQLSTATE: HY000 (ER_DISK_FULL) Message: Disk full (%s); waiting for someone to free some space...';
$mysql_errno[1022] = 'SQLSTATE: 23000 (ER_DUP_KEY) Message: Can\'t write; duplicate key in table \'%s\'';
$mysql_errno[1023] = 'SQLSTATE: HY000 (ER_ERROR_ON_CLOSE) Message: Error on close of \'%s\' (errno: %d)';
$mysql_errno[1024] = 'SQLSTATE: HY000 (ER_ERROR_ON_READ) Message: Error reading file \'%s\' (errno: %d)';
$mysql_errno[1025] = 'SQLSTATE: HY000 (ER_ERROR_ON_RENAME) Message: Error on rename of \'%s\' to \'%s\' (errno: %d)';
$mysql_errno[1026] = 'SQLSTATE: HY000 (ER_ERROR_ON_WRITE) Message: Error writing file \'%s\' (errno: %d)';
$mysql_errno[1027] = 'SQLSTATE: HY000 (ER_FILE_USED) Message: \'%s\' is locked against change';
$mysql_errno[1028] = 'SQLSTATE: HY000 (ER_FILSORT_ABORT) Message: Sort aborted';
$mysql_errno[1029] = 'SQLSTATE: HY000 (ER_FORM_NOT_FOUND) Message: View \'%s\' doesn\'t exist for \'%s\'';
$mysql_errno[1030] = 'SQLSTATE: HY000 (ER_GET_ERRNO) Message: Got error %d from storage engine';
$mysql_errno[1031] = 'SQLSTATE: HY000 (ER_ILLEGAL_HA) Message: Table storage engine for \'%s\' doesn\'t have this option';
$mysql_errno[1032] = 'SQLSTATE: HY000 (ER_KEY_NOT_FOUND) Message: Can\'t find record in \'%s\'';
$mysql_errno[1033] = 'SQLSTATE: HY000 (ER_NOT_FORM_FILE) Message: Incorrect information in file: \'%s\'';
$mysql_errno[1034] = 'SQLSTATE: HY000 (ER_NOT_KEYFILE) Message: Incorrect key file for table \'%s\'; try to repair it';
$mysql_errno[1035] = 'SQLSTATE: HY000 (ER_OLD_KEYFILE) Message: Old key file for table \'%s\'; repair it!';
$mysql_errno[1036] = 'SQLSTATE: HY000 (ER_OPEN_AS_READONLY) Message: Table \'%s\' is read only';
$mysql_errno[1037] = 'SQLSTATE: HY001 (ER_OUTOFMEMORY) Message: Out of memory; restart server and try again (needed %d bytes)';
$mysql_errno[1038] = 'SQLSTATE: HY001 (ER_OUT_OF_SORTMEMORY) Message: Out of sort memory; increase server sort buffer size';
$mysql_errno[1039] = 'SQLSTATE: HY000 (ER_UNEXPECTED_EOF) Message: Unexpected EOF found when reading file \'%s\' (errno: %d)';
$mysql_errno[1040] = 'SQLSTATE: 08004 (ER_CON_COUNT_ERROR) Message: Too many connections';
$mysql_errno[1041] = 'SQLSTATE: HY000 (ER_OUT_OF_RESOURCES) Message: Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use \'ulimit\' to allow mysqld to use more memory or you can add more swap space';
$mysql_errno[1042] = 'SQLSTATE: 08S01 (ER_BAD_HOST_ERROR) Message: Can\'t get hostname for your address';
$mysql_errno[1043] = 'SQLSTATE: 08S01 (ER_HANDSHAKE_ERROR) Message: Bad handshake';
$mysql_errno[1044] = 'SQLSTATE: 42000 (ER_DBACCESS_DENIED_ERROR) Message: Access denied for user \'%s\'@\'%s\' to database \'%s\'';
$mysql_errno[1045] = 'SQLSTATE: 28000 (ER_ACCESS_DENIED_ERROR) Message: Access denied for user \'%s\'@\'%s\' (using password: %s)';
$mysql_errno[1046] = 'SQLSTATE: 3D000 (ER_NO_DB_ERROR) Message: No database selected';
$mysql_errno[1047] = 'SQLSTATE: 08S01 (ER_UNKNOWN_COM_ERROR) Message: Unknown command';
$mysql_errno[1048] = 'SQLSTATE: 23000 (ER_BAD_NULL_ERROR) Message: Column \'%s\' cannot be null';
$mysql_errno[1049] = 'SQLSTATE: 42000 (ER_BAD_DB_ERROR) Message: Unknown database \'%s\'';
$mysql_errno[1050] = 'SQLSTATE: 42S01 (ER_TABLE_EXISTS_ERROR) Message: Table \'%s\' already exists';
$mysql_errno[1051] = 'SQLSTATE: 42S02 (ER_BAD_TABLE_ERROR) Message: Unknown table \'%s\'';
$mysql_errno[1052] = 'SQLSTATE: 23000 (ER_NON_UNIQ_ERROR) Message: Column \'%s\' in %s is ambiguous';
$mysql_errno[1053] = 'SQLSTATE: 08S01 (ER_SERVER_SHUTDOWN) Message: Server shutdown in progress';
$mysql_errno[1054] = 'SQLSTATE: 42S22 (ER_BAD_FIELD_ERROR) Message: Unknown column \'%s\' in \'%s\'';
$mysql_errno[1055] = 'SQLSTATE: 42000 (ER_WRONG_FIELD_WITH_GROUP) Message: \'%s\' isn\'t in GROUP BY';
$mysql_errno[1056] = 'SQLSTATE: 42000 (ER_WRONG_GROUP_FIELD) Message: Can\'t group on \'%s\'';
$mysql_errno[1057] = 'SQLSTATE: 42000 (ER_WRONG_SUM_SELECT) Message: Statement has sum functions and columns in same statement';
$mysql_errno[1058] = 'SQLSTATE: 21S01 (ER_WRONG_VALUE_COUNT) Message: Column count doesn\'t match value count';
$mysql_errno[1059] = 'SQLSTATE: 42000 (ER_TOO_LONG_IDENT) Message: Identifier name \'%s\' is too long';
$mysql_errno[1060] = 'SQLSTATE: 42S21 (ER_DUP_FIELDNAME) Message: Duplicate column name \'%s\'';
$mysql_errno[1061] = 'SQLSTATE: 42000 (ER_DUP_KEYNAME) Message: Duplicate key name \'%s\'';
$mysql_errno[1062] = 'SQLSTATE: 23000 (ER_DUP_ENTRY) Message: Duplicate entry \'%s\' for key %d';
$mysql_errno[1063] = 'SQLSTATE: 42000 (ER_WRONG_FIELD_SPEC) Message: Incorrect column specifier for column \'%s\'';
$mysql_errno[1064] = 'SQLSTATE: 42000 (ER_PARSE_ERROR) Message: %s near \'%s\' at line %d';
$mysql_errno[1065] = 'SQLSTATE: HY000 (ER_EMPTY_QUERY) Message: Query was empty';
$mysql_errno[1066] = 'SQLSTATE: 42000 (ER_NONUNIQ_TABLE) Message: Not unique table/alias: \'%s\'';
$mysql_errno[1067] = 'SQLSTATE: 42000 (ER_INVALID_DEFAULT) Message: Invalid default value for \'%s\'';
$mysql_errno[1068] = 'SQLSTATE: 42000 (ER_MULTIPLE_PRI_KEY) Message: Multiple primary key defined';
$mysql_errno[1069] = 'SQLSTATE: 42000 (ER_TOO_MANY_KEYS) Message: Too many keys specified; max %d keys allowed';
$mysql_errno[1070] = 'SQLSTATE: 42000 (ER_TOO_MANY_KEY_PARTS) Message: Too many key parts specified; max %d parts allowed';
$mysql_errno[1071] = 'SQLSTATE: 42000 (ER_TOO_LONG_KEY) Message: Specified key was too long; max key length is %d bytes';
$mysql_errno[1072] = 'SQLSTATE: 42000 (ER_KEY_COLUMN_DOES_NOT_EXITS) Message: Key column \'%s\' doesn\'t exist in table';
$mysql_errno[1073] = 'SQLSTATE: 42000 (ER_BLOB_USED_AS_KEY) Message: BLOB column \'%s\' can\'t be used in key specification with the used table type';
$mysql_errno[1074] = 'SQLSTATE: 42000 (ER_TOO_BIG_FIELDLENGTH) Message: Column length too big for column \'%s\' (max = %d); use BLOB instead';
$mysql_errno[1075] = 'SQLSTATE: 42000 (ER_WRONG_AUTO_KEY) Message: Incorrect table definition; there can be only one auto column and it must be defined as a key';
$mysql_errno[1076] = 'SQLSTATE: HY000 (ER_READY) Message: %s: ready for connections. Version: \'%s\' socket: \'%s\' port: %d';
$mysql_errno[1077] = 'SQLSTATE: HY000 (ER_NORMAL_SHUTDOWN) Message: %s: Normal shutdown';
$mysql_errno[1078] = 'SQLSTATE: HY000 (ER_GOT_SIGNAL) Message: %s: Got signal %d. Aborting!';
$mysql_errno[1079] = 'SQLSTATE: HY000 (ER_SHUTDOWN_COMPLETE) Message: %s: Shutdown complete';
$mysql_errno[1080] = 'SQLSTATE: 08S01 (ER_FORCING_CLOSE) Message: %s: Forcing close of thread %ld user: \'%s\'';
$mysql_errno[1081] = 'SQLSTATE: 08S01 (ER_IPSOCK_ERROR) Message: Can\'t create IP socket';
$mysql_errno[1082] = 'SQLSTATE: 42S12 (ER_NO_SUCH_INDEX) Message: Table \'%s\' has no index like the one used in CREATE INDEX; recreate the table';
$mysql_errno[1083] = 'SQLSTATE: 42000 (ER_WRONG_FIELD_TERMINATORS) Message: Field separator argument is not what is expected; check the manual';
$mysql_errno[1084] = 'SQLSTATE: 42000 (ER_BLOBS_AND_NO_TERMINATED) Message: You can\'t use fixed rowlength with BLOBs; please use \'fields terminated by\'';
$mysql_errno[1085] = 'SQLSTATE: HY000 (ER_TEXTFILE_NOT_READABLE) Message: The file \'%s\' must be in the database directory or be readable by all';
$mysql_errno[1086] = 'SQLSTATE: HY000 (ER_FILE_EXISTS_ERROR) Message: File \'%s\' already exists';
$mysql_errno[1087] = 'SQLSTATE: HY000 (ER_LOAD_INFO) Message: Records: %ld Deleted: %ld Skipped: %ld Warnings: %ld';
$mysql_errno[1088] = 'SQLSTATE: HY000 (ER_ALTER_INFO) Message: Records: %ld Duplicates: %ld';
$mysql_errno[1089] = 'SQLSTATE: HY000 (ER_WRONG_SUB_KEY) Message: Incorrect sub part key; the used key part isn\'t a string, the used length is longer than the key part, or the storage engine doesn\'t support unique sub keys';
$mysql_errno[1090] = 'SQLSTATE: 42000 (ER_CANT_REMOVE_ALL_FIELDS) Message: You can\'t delete all columns with ALTER TABLE; use DROP TABLE instead';
$mysql_errno[1091] = 'SQLSTATE: 42000 (ER_CANT_DROP_FIELD_OR_KEY) Message: Can\'t DROP \'%s\'; check that column/key exists';
$mysql_errno[1092] = 'SQLSTATE: HY000 (ER_INSERT_INFO) Message: Records: %ld Duplicates: %ld Warnings: %ld';
$mysql_errno[1093] = 'SQLSTATE: HY000 (ER_UPDATE_TABLE_USED) Message: You can\'t specify target table \'%s\' for update in FROM clause';
$mysql_errno[1094] = 'SQLSTATE: HY000 (ER_NO_SUCH_THREAD) Message: Unknown thread id: %lu';
$mysql_errno[1095] = 'SQLSTATE: HY000 (ER_KILL_DENIED_ERROR) Message: You are not owner of thread %lu';
$mysql_errno[1096] = 'SQLSTATE: HY000 (ER_NO_TABLES_USED) Message: No tables used';
$mysql_errno[1097] = 'SQLSTATE: HY000 (ER_TOO_BIG_SET) Message: Too many strings for column %s and SET';
$mysql_errno[1098] = 'SQLSTATE: HY000 (ER_NO_UNIQUE_LOGFILE) Message: Can\'t generate a unique log-filename %s.(1-999)';
$mysql_errno[1099] = 'SQLSTATE: HY000 (ER_TABLE_NOT_LOCKED_FOR_WRITE) Message: Table \'%s\' was locked with a READ lock and can\'t be updated';
$mysql_errno[1100] = 'SQLSTATE: HY000 (ER_TABLE_NOT_LOCKED) Message: Table \'%s\' was not locked with LOCK TABLES';
$mysql_errno[1101] = 'SQLSTATE: 42000 (ER_BLOB_CANT_HAVE_DEFAULT) Message: BLOB/TEXT column \'%s\' can\'t have a default value';
$mysql_errno[1102] = 'SQLSTATE: 42000 (ER_WRONG_DB_NAME) Message: Incorrect database name \'%s\'';
$mysql_errno[1103] = 'SQLSTATE: 42000 (ER_WRONG_TABLE_NAME) Message: Incorrect table name \'%s\'';
$mysql_errno[1104] = 'SQLSTATE: 42000 (ER_TOO_BIG_SELECT) Message: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay';
$mysql_errno[1105] = 'SQLSTATE: HY000 (ER_UNKNOWN_ERROR) Message: Unknown error';
$mysql_errno[1106] = 'SQLSTATE: 42000 (ER_UNKNOWN_PROCEDURE) Message: Unknown procedure \'%s\'';
$mysql_errno[1107] = 'SQLSTATE: 42000 (ER_WRONG_PARAMCOUNT_TO_PROCEDURE) Message: Incorrect parameter count to procedure \'%s\'';
$mysql_errno[1108] = 'SQLSTATE: HY000 (ER_WRONG_PARAMETERS_TO_PROCEDURE) Message: Incorrect parameters to procedure \'%s\'';
$mysql_errno[1109] = 'SQLSTATE: 42S02 (ER_UNKNOWN_TABLE) Message: Unknown table \'%s\' in %s';
$mysql_errno[1110] = 'SQLSTATE: 42000 (ER_FIELD_SPECIFIED_TWICE) Message: Column \'%s\' specified twice';
$mysql_errno[1111] = 'SQLSTATE: HY000 (ER_INVALID_GROUP_FUNC_USE) Message: Invalid use of group function';
$mysql_errno[1112] = 'SQLSTATE: 42000 (ER_UNSUPPORTED_EXTENSION) Message: Table \'%s\' uses an extension that doesn\'t exist in this MySQL version';
$mysql_errno[1113] = 'SQLSTATE: 42000 (ER_TABLE_MUST_HAVE_COLUMNS) Message: A table must have at least 1 column';
$mysql_errno[1114] = 'SQLSTATE: HY000 (ER_RECORD_FILE_FULL) Message: The table \'%s\' is full';
$mysql_errno[1115] = 'SQLSTATE: 42000 (ER_UNKNOWN_CHARACTER_SET) Message: Unknown character set: \'%s\'';
$mysql_errno[1116] = 'SQLSTATE: HY000 (ER_TOO_MANY_TABLES) Message: Too many tables; MySQL can only use %d tables in a join';
$mysql_errno[1117] = 'SQLSTATE: HY000 (ER_TOO_MANY_FIELDS) Message: Too many columns';
$mysql_errno[1118] = 'SQLSTATE: 42000 (ER_TOO_BIG_ROWSIZE) Message: Row size too large. The maximum row size for the used table type, not counting BLOBs, is %ld. You have to change some columns to TEXT or BLOBs';
$mysql_errno[1119] = 'SQLSTATE: HY000 (ER_STACK_OVERRUN) Message: Thread stack overrun: Used: %ld of a %ld stack. Use \'mysqld -O thread_stack=#\' to specify a bigger stack if needed';
$mysql_errno[1120] = 'SQLSTATE: 42000 (ER_WRONG_OUTER_JOIN) Message: Cross dependency found in OUTER JOIN; examine your ON conditions';
$mysql_errno[1121] = 'SQLSTATE: 42000 (ER_NULL_COLUMN_IN_INDEX) Message: Column \'%s\' is used with UNIQUE or INDEX but is not defined as NOT NULL';
$mysql_errno[1122] = 'SQLSTATE: HY000 (ER_CANT_FIND_UDF) Message: Can\'t load function \'%s\'';
$mysql_errno[1123] = 'SQLSTATE: HY000 (ER_CANT_INITIALIZE_UDF) Message: Can\'t initialize function \'%s\'; %s';
$mysql_errno[1124] = 'SQLSTATE: HY000 (ER_UDF_NO_PATHS) Message: No paths allowed for shared library';
$mysql_errno[1125] = 'SQLSTATE: HY000 (ER_UDF_EXISTS) Message: Function \'%s\' already exists';
$mysql_errno[1126] = 'SQLSTATE: HY000 (ER_CANT_OPEN_LIBRARY) Message: Can\'t open shared library \'%s\' (errno: %d %s)';
$mysql_errno[1127] = 'SQLSTATE: HY000 (ER_CANT_FIND_DL_ENTRY) Message: Can\'t find function \'%s\' in library\'';
$mysql_errno[1128] = 'SQLSTATE: HY000 (ER_FUNCTION_NOT_DEFINED) Message: Function \'%s\' is not defined';
$mysql_errno[1129] = 'SQLSTATE: HY000 (ER_HOST_IS_BLOCKED) Message: Host \'%s\' is blocked because of many connection errors; unblock with \'mysqladmin flush-hosts\'';
$mysql_errno[1130] = 'SQLSTATE: HY000 (ER_HOST_NOT_PRIVILEGED) Message: Host \'%s\' is not allowed to connect to this MySQL server';
$mysql_errno[1131] = 'SQLSTATE: 42000 (ER_PASSWORD_ANONYMOUS_USER) Message: You are using MySQL as an anonymous user and anonymous users are not allowed to change passwords';
$mysql_errno[1132] = 'SQLSTATE: 42000 (ER_PASSWORD_NOT_ALLOWED) Message: You must have privileges to update tables in the mysql database to be able to change passwords for others';
$mysql_errno[1133] = 'SQLSTATE: 42000 (ER_PASSWORD_NO_MATCH) Message: Can\'t find any matching row in the user table';
$mysql_errno[1134] = 'SQLSTATE: HY000 (ER_UPDATE_INFO) Message: Rows matched: %ld Changed: %ld Warnings: %ld';
$mysql_errno[1135] = 'SQLSTATE: HY000 (ER_CANT_CREATE_THREAD) Message: Can\'t create a new thread (errno %d); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug';
$mysql_errno[1136] = 'SQLSTATE: 21S01 (ER_WRONG_VALUE_COUNT_ON_ROW) Message: Column count doesn\'t match value count at row %ld';
$mysql_errno[1137] = 'SQLSTATE: HY000 (ER_CANT_REOPEN_TABLE) Message: Can\'t reopen table: \'%s\'';
$mysql_errno[1138] = 'SQLSTATE: 42000 (ER_INVALID_USE_OF_NULL) Message: Invalid use of NULL value';
$mysql_errno[1139] = 'SQLSTATE: 42000 (ER_REGEXP_ERROR) Message: Got error \'%s\' from regexp';
$mysql_errno[1140] = 'SQLSTATE: 42000 (ER_MIX_OF_GROUP_FUNC_AND_FIELDS) Message: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause';
$mysql_errno[1141] = 'SQLSTATE: 42000 (ER_NONEXISTING_GRANT) Message: There is no such grant defined for user \'%s\' on host \'%s\'';
$mysql_errno[1142] = 'SQLSTATE: 42000 (ER_TABLEACCESS_DENIED_ERROR) Message: %s command denied to user \'%s\'@\'%s\' for table \'%s\'';
$mysql_errno[1143] = 'SQLSTATE: 42000 (ER_COLUMNACCESS_DENIED_ERROR) Message: %s command denied to user \'%s\'@\'%s\' for column \'%s\' in table \'%s\'';
$mysql_errno[1144] = 'SQLSTATE: 42000 (ER_ILLEGAL_GRANT_FOR_TABLE) Message: Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used';
$mysql_errno[1145] = 'SQLSTATE: 42000 (ER_GRANT_WRONG_HOST_OR_USER) Message: The host or user argument to GRANT is too long';
$mysql_errno[1146] = 'SQLSTATE: 42S02 (ER_NO_SUCH_TABLE) Message: Table \'%s.%s\' doesn\'t exist';
$mysql_errno[1147] = 'SQLSTATE: 42000 (ER_NONEXISTING_TABLE_GRANT) Message: There is no such grant defined for user \'%s\' on host \'%s\' on table \'%s\'';
$mysql_errno[1148] = 'SQLSTATE: 42000 (ER_NOT_ALLOWED_COMMAND) Message: The used command is not allowed with this MySQL version';
$mysql_errno[1149] = 'SQLSTATE: 42000 (ER_SYNTAX_ERROR) Message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use';
$mysql_errno[1150] = 'SQLSTATE: HY000 (ER_DELAYED_CANT_CHANGE_LOCK) Message: Delayed insert thread couldn\'t get requested lock for table %s';
$mysql_errno[1151] = 'SQLSTATE: HY000 (ER_TOO_MANY_DELAYED_THREADS) Message: Too many delayed threads in use';
$mysql_errno[1152] = 'SQLSTATE: 08S01 (ER_ABORTING_CONNECTION) Message: Aborted connection %ld to db: \'%s\' user: \'%s\' (%s)';
$mysql_errno[1153] = 'SQLSTATE: 08S01 (ER_NET_PACKET_TOO_LARGE) Message: Got a packet bigger than \'max_allowed_packet\' bytes';
$mysql_errno[1154] = 'SQLSTATE: 08S01 (ER_NET_READ_ERROR_FROM_PIPE) Message: Got a read error from the connection pipe';
$mysql_errno[1155] = 'SQLSTATE: 08S01 (ER_NET_FCNTL_ERROR) Message: Got an error from fcntl()';
$mysql_errno[1156] = 'SQLSTATE: 08S01 (ER_NET_PACKETS_OUT_OF_ORDER) Message: Got packets out of order';
$mysql_errno[1157] = 'SQLSTATE: 08S01 (ER_NET_UNCOMPRESS_ERROR) Message: Couldn\'t uncompress communication packet';
$mysql_errno[1158] = 'SQLSTATE: 08S01 (ER_NET_READ_ERROR) Message: Got an error reading communication packets';
$mysql_errno[1159] = 'SQLSTATE: 08S01 (ER_NET_READ_INTERRUPTED) Message: Got timeout reading communication packets';
$mysql_errno[1160] = 'SQLSTATE: 08S01 (ER_NET_ERROR_ON_WRITE) Message: Got an error writing communication packets';
$mysql_errno[1161] = 'SQLSTATE: 08S01 (ER_NET_WRITE_INTERRUPTED) Message: Got timeout writing communication packets';
$mysql_errno[1162] = 'SQLSTATE: 42000 (ER_TOO_LONG_STRING) Message: Result string is longer than \'max_allowed_packet\' bytes';
$mysql_errno[1163] = 'SQLSTATE: 42000 (ER_TABLE_CANT_HANDLE_BLOB) Message: The used table type doesn\'t support BLOB/TEXT columns';
$mysql_errno[1164] = 'SQLSTATE: 42000 (ER_TABLE_CANT_HANDLE_AUTO_INCREMENT) Message: The used table type doesn\'t support AUTO_INCREMENT columns';
$mysql_errno[1165] = 'SQLSTATE: HY000 (ER_DELAYED_INSERT_TABLE_LOCKED) Message: INSERT DELAYED can\'t be used with table \'%s\' because it is locked with LOCK TABLES';
$mysql_errno[1166] = 'SQLSTATE: 42000 (ER_WRONG_COLUMN_NAME) Message: Incorrect column name \'%s\'';
$mysql_errno[1167] = 'SQLSTATE: 42000 (ER_WRONG_KEY_COLUMN) Message: The used storage engine can\'t index column \'%s\'';
$mysql_errno[1168] = 'SQLSTATE: HY000 (ER_WRONG_MRG_TABLE) Message: All tables in the MERGE table are not identically defined';
$mysql_errno[1169] = 'SQLSTATE: 23000 (ER_DUP_UNIQUE) Message: Can\'t write, because of unique constraint, to table \'%s\'';
$mysql_errno[1170] = 'SQLSTATE: 42000 (ER_BLOB_KEY_WITHOUT_LENGTH) Message: BLOB/TEXT column \'%s\' used in key specification without a key length';
$mysql_errno[1171] = 'SQLSTATE: 42000 (ER_PRIMARY_CANT_HAVE_NULL) Message: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead';
$mysql_errno[1172] = 'SQLSTATE: 42000 (ER_TOO_MANY_ROWS) Message: Result consisted of more than one row';
$mysql_errno[1173] = 'SQLSTATE: 42000 (ER_REQUIRES_PRIMARY_KEY) Message: This table type requires a primary key';
$mysql_errno[1174] = 'SQLSTATE: HY000 (ER_NO_RAID_COMPILED) Message: This version of MySQL is not compiled with RAID support';
$mysql_errno[1175] = 'SQLSTATE: HY000 (ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE) Message: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column';
$mysql_errno[1176] = 'SQLSTATE: HY000 (ER_KEY_DOES_NOT_EXITS) Message: Key \'%s\' doesn\'t exist in table \'%s\'';
$mysql_errno[1177] = 'SQLSTATE: 42000 (ER_CHECK_NO_SUCH_TABLE) Message: Can\'t open table';
$mysql_errno[1178] = 'SQLSTATE: 42000 (ER_CHECK_NOT_IMPLEMENTED) Message: The storage engine for the table doesn\'t support %s';
$mysql_errno[1179] = 'SQLSTATE: 25000 (ER_CANT_DO_THIS_DURING_AN_TRANSACTION) Message: You are not allowed to execute this command in a transaction';
$mysql_errno[1180] = 'SQLSTATE: HY000 (ER_ERROR_DURING_COMMIT) Message: Got error %d during COMMIT';
$mysql_errno[1181] = 'SQLSTATE: HY000 (ER_ERROR_DURING_ROLLBACK) Message: Got error %d during ROLLBACK';
$mysql_errno[1182] = 'SQLSTATE: HY000 (ER_ERROR_DURING_FLUSH_LOGS) Message: Got error %d during FLUSH_LOGS';
$mysql_errno[1183] = 'SQLSTATE: HY000 (ER_ERROR_DURING_CHECKPOINT) Message: Got error %d during CHECKPOINT';
$mysql_errno[1184] = 'SQLSTATE: 08S01 (ER_NEW_ABORTING_CONNECTION) Message: Aborted connection %ld to db: \'%s\' user: \'%s\' host: `%s\' (%s)';
$mysql_errno[1185] = 'SQLSTATE: HY000 (ER_DUMP_NOT_IMPLEMENTED) Message: The storage engine for the table does not support binary table dump';
$mysql_errno[1186] = 'SQLSTATE: HY000 (ER_FLUSH_MASTER_BINLOG_CLOSED) Message: Binlog closed, cannot RESET MASTER';
$mysql_errno[1187] = 'SQLSTATE: HY000 (ER_INDEX_REBUILD) Message: Failed rebuilding the index of dumped table \'%s\'';
$mysql_errno[1188] = 'SQLSTATE: HY000 (ER_MASTER) Message: Error from master: \'%s\'';
$mysql_errno[1189] = 'SQLSTATE: 08S01 (ER_MASTER_NET_READ) Message: Net error reading from master';
$mysql_errno[1190] = 'SQLSTATE: 08S01 (ER_MASTER_NET_WRITE) Message: Net error writing to master';
$mysql_errno[1191] = 'SQLSTATE: HY000 (ER_FT_MATCHING_KEY_NOT_FOUND) Message: Can\'t find FULLTEXT index matching the column list';
$mysql_errno[1192] = 'SQLSTATE: HY000 (ER_LOCK_OR_ACTIVE_TRANSACTION) Message: Can\'t execute the given command because you have active locked tables or an active transaction';
$mysql_errno[1193] = 'SQLSTATE: HY000 (ER_UNKNOWN_SYSTEM_VARIABLE) Message: Unknown system variable \'%s\'';
$mysql_errno[1194] = 'SQLSTATE: HY000 (ER_CRASHED_ON_USAGE) Message: Table \'%s\' is marked as crashed and should be repaired';
$mysql_errno[1195] = 'SQLSTATE: HY000 (ER_CRASHED_ON_REPAIR) Message: Table \'%s\' is marked as crashed and last (automatic?) repair failed';
$mysql_errno[1196] = 'SQLSTATE: HY000 (ER_WARNING_NOT_COMPLETE_ROLLBACK) Message: Some non-transactional changed tables couldn\'t be rolled back';
$mysql_errno[1197] = 'SQLSTATE: HY000 (ER_TRANS_CACHE_FULL) Message: Multi-statement transaction required more than \'max_binlog_cache_size\' bytes of storage; increase this mysqld variable and try again';
$mysql_errno[1198] = 'SQLSTATE: HY000 (ER_SLAVE_MUST_STOP) Message: This operation cannot be performed with a running slave; run STOP SLAVE first';
$mysql_errno[1199] = 'SQLSTATE: HY000 (ER_SLAVE_NOT_RUNNING) Message: This operation requires a running slave; configure slave and do START SLAVE';
$mysql_errno[1200] = 'SQLSTATE: HY000 (ER_BAD_SLAVE) Message: The server is not configured as slave; fix in config file or with CHANGE MASTER TO';
$mysql_errno[1201] = 'SQLSTATE: HY000 (ER_MASTER_INFO) Message: Could not initialize master info structure; more error messages can be found in the MySQL error log';
$mysql_errno[1202] = 'SQLSTATE: HY000 (ER_SLAVE_THREAD) Message: Could not create slave thread; check system resources';
$mysql_errno[1203] = 'SQLSTATE: 42000 (ER_TOO_MANY_USER_CONNECTIONS) Message: User %s has already more than \'max_user_connections\' active connections';
$mysql_errno[1204] = 'SQLSTATE: HY000 (ER_SET_CONSTANTS_ONLY) Message: You may only use constant expressions with SET';
$mysql_errno[1205] = 'SQLSTATE: HY000 (ER_LOCK_WAIT_TIMEOUT) Message: Lock wait timeout exceeded; try restarting transaction';
$mysql_errno[1206] = 'SQLSTATE: HY000 (ER_LOCK_TABLE_FULL) Message: The total number of locks exceeds the lock table size';
$mysql_errno[1207] = 'SQLSTATE: 25000 (ER_READ_ONLY_TRANSACTION) Message: Update locks cannot be acquired during a READ UNCOMMITTED transaction';
$mysql_errno[1208] = 'SQLSTATE: HY000 (ER_DROP_DB_WITH_READ_LOCK) Message: DROP DATABASE not allowed while thread is holding global read lock';
$mysql_errno[1209] = 'SQLSTATE: HY000 (ER_CREATE_DB_WITH_READ_LOCK) Message: CREATE DATABASE not allowed while thread is holding global read lock';
$mysql_errno[1210] = 'SQLSTATE: HY000 (ER_WRONG_ARGUMENTS) Message: Incorrect arguments to %s';
$mysql_errno[1211] = 'SQLSTATE: 42000 (ER_NO_PERMISSION_TO_CREATE_USER) Message: \'%s\'@\'%s\' is not allowed to create new users';
$mysql_errno[1212] = 'SQLSTATE: HY000 (ER_UNION_TABLES_IN_DIFFERENT_DIR) Message: Incorrect table definition; all MERGE tables must be in the same database';
$mysql_errno[1213] = 'SQLSTATE: 40001 (ER_LOCK_DEADLOCK) Message: Deadlock found when trying to get lock; try restarting transaction';
$mysql_errno[1214] = 'SQLSTATE: HY000 (ER_TABLE_CANT_HANDLE_FT) Message: The used table type doesn\'t support FULLTEXT indexes';
$mysql_errno[1215] = 'SQLSTATE: HY000 (ER_CANNOT_ADD_FOREIGN) Message: Cannot add foreign key constraint';
$mysql_errno[1216] = 'SQLSTATE: 23000 (ER_NO_REFERENCED_ROW) Message: Cannot add or update a child row: a foreign key constraint fails';
$mysql_errno[1217] = 'SQLSTATE: 23000 (ER_ROW_IS_REFERENCED) Message: Cannot delete or update a parent row: a foreign key constraint fails';
$mysql_errno[1218] = 'SQLSTATE: 08S01 (ER_CONNECT_TO_MASTER) Message: Error connecting to master: %s';
$mysql_errno[1219] = 'SQLSTATE: HY000 (ER_QUERY_ON_MASTER) Message: Error running query on master: %s';
$mysql_errno[1220] = 'SQLSTATE: HY000 (ER_ERROR_WHEN_EXECUTING_COMMAND) Message: Error when executing command %s: %s';
$mysql_errno[1221] = 'SQLSTATE: HY000 (ER_WRONG_USAGE) Message: Incorrect usage of %s and %s';
$mysql_errno[1222] = 'SQLSTATE: 21000 (ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT) Message: The used SELECT statements have a different number of columns';
$mysql_errno[1223] = 'SQLSTATE: HY000 (ER_CANT_UPDATE_WITH_READLOCK) Message: Can\'t execute the query because you have a conflicting read lock';
$mysql_errno[1224] = 'SQLSTATE: HY000 (ER_MIXING_NOT_ALLOWED) Message: Mixing of transactional and non-transactional tables is disabled';
$mysql_errno[1225] = 'SQLSTATE: HY000 (ER_DUP_ARGUMENT) Message: Option \'%s\' used twice in statement';
$mysql_errno[1226] = 'SQLSTATE: 42000 (ER_USER_LIMIT_REACHED) Message: User \'%s\' has exceeded the \'%s\' resource (current value: %ld)';
$mysql_errno[1227] = 'SQLSTATE: HY000 (ER_SPECIFIC_ACCESS_DENIED_ERROR) Message: Access denied; you need the %s privilege for this operation';
$mysql_errno[1228] = 'SQLSTATE: HY000 (ER_LOCAL_VARIABLE) Message: Variable \'%s\' is a SESSION variable and can\'t be used with SET GLOBAL';
$mysql_errno[1229] = 'SQLSTATE: HY000 (ER_GLOBAL_VARIABLE) Message: Variable \'%s\' is a GLOBAL variable and should be set with SET GLOBAL';
$mysql_errno[1230] = 'SQLSTATE: 42000 (ER_NO_DEFAULT) Message: Variable \'%s\' doesn\'t have a default value';
$mysql_errno[1231] = 'SQLSTATE: 42000 (ER_WRONG_VALUE_FOR_VAR) Message: Variable \'%s\' can\'t be set to the value of \'%s\'';
$mysql_errno[1232] = 'SQLSTATE: 42000 (ER_WRONG_TYPE_FOR_VAR) Message: Incorrect argument type to variable \'%s\'';
$mysql_errno[1233] = 'SQLSTATE: HY000 (ER_VAR_CANT_BE_READ) Message: Variable \'%s\' can only be set, not read';
$mysql_errno[1234] = 'SQLSTATE: 42000 (ER_CANT_USE_OPTION_HERE) Message: Incorrect usage/placement of \'%s\'';
$mysql_errno[1235] = 'SQLSTATE: 42000 (ER_NOT_SUPPORTED_YET) Message: This version of MySQL doesn\'t yet support \'%s\'';
$mysql_errno[1236] = 'SQLSTATE: HY000 (ER_MASTER_FATAL_ERROR_READING_BINLOG) Message: Got fatal error %d: \'%s\' from master when reading data from binary log';
$mysql_errno[1237] = 'SQLSTATE: HY000 (ER_SLAVE_IGNORED_TABLE) Message: Slave SQL thread ignored the query because of replicate-*-table rules';
$mysql_errno[1238] = 'SQLSTATE: HY000 (ER_INCORRECT_GLOBAL_LOCAL_VAR) Message: Variable \'%s\' is a %s variable';
$mysql_errno[1239] = 'SQLSTATE: 42000 (ER_WRONG_FK_DEF) Message: Incorrect foreign key definition for \'%s\': %s';
$mysql_errno[1240] = 'SQLSTATE: HY000 (ER_KEY_REF_DO_NOT_MATCH_TABLE_REF) Message: Key reference and table reference don\'t match';
$mysql_errno[1241] = 'SQLSTATE: 21000 (ER_OPERAND_COLUMNS) Message: Operand should contain %d column(s)';
$mysql_errno[1242] = 'SQLSTATE: 21000 (ER_SUBQUERY_NO_1_ROW) Message: Subquery returns more than 1 row';
$mysql_errno[1243] = 'SQLSTATE: HY000 (ER_UNKNOWN_STMT_HANDLER) Message: Unknown prepared statement handler (%.*s) given to %s';
$mysql_errno[1244] = 'SQLSTATE: HY000 (ER_CORRUPT_HELP_DB) Message: Help database is corrupt or does not exist';
$mysql_errno[1245] = 'SQLSTATE: HY000 (ER_CYCLIC_REFERENCE) Message: Cyclic reference on subqueries';
$mysql_errno[1246] = 'SQLSTATE: HY000 (ER_AUTO_CONVERT) Message: Converting column \'%s\' from %s to %s';
$mysql_errno[1247] = 'SQLSTATE: 42S22 (ER_ILLEGAL_REFERENCE) Message: Reference \'%s\' not supported (%s)';
$mysql_errno[1248] = 'SQLSTATE: 42000 (ER_DERIVED_MUST_HAVE_ALIAS) Message: Every derived table must have its own alias';
$mysql_errno[1249] = 'SQLSTATE: 01000 (ER_SELECT_REDUCED) Message: Select %u was reduced during optimization';
$mysql_errno[1250] = 'SQLSTATE: 42000 (ER_TABLENAME_NOT_ALLOWED_HERE) Message: Table \'%s\' from one of the SELECTs cannot be used in %s';
$mysql_errno[1251] = 'SQLSTATE: 08004 (ER_NOT_SUPPORTED_AUTH_MODE) Message: Client does not support authentication protocol requested by server; consider upgrading MySQL client';
$mysql_errno[1252] = 'SQLSTATE: 42000 (ER_SPATIAL_CANT_HAVE_NULL) Message: All parts of a SPATIAL index must be NOT NULL';
$mysql_errno[1253] = 'SQLSTATE: 42000 (ER_COLLATION_CHARSET_MISMATCH) Message: COLLATION \'%s\' is not valid for CHARACTER SET \'%s\'';
$mysql_errno[1254] = 'SQLSTATE: HY000 (ER_SLAVE_WAS_RUNNING) Message: Slave is already running';
$mysql_errno[1255] = 'SQLSTATE: HY000 (ER_SLAVE_WAS_NOT_RUNNING) Message: Slave has already been stopped';
$mysql_errno[1256] = 'SQLSTATE: HY000 (ER_TOO_BIG_FOR_UNCOMPRESS) Message: Uncompressed data size too large; the maximum size is %d (probably, length of uncompressed data was corrupted)';
$mysql_errno[1257] = 'SQLSTATE: HY000 (ER_ZLIB_Z_MEM_ERROR) Message: ZLIB: Not enough memory';
$mysql_errno[1258] = 'SQLSTATE: HY000 (ER_ZLIB_Z_BUF_ERROR) Message: ZLIB: Not enough room in the output buffer (probably, length of uncompressed data was corrupted)';
$mysql_errno[1259] = 'SQLSTATE: HY000 (ER_ZLIB_Z_DATA_ERROR) Message: ZLIB: Input data corrupted';
$mysql_errno[1260] = 'SQLSTATE: HY000 (ER_CUT_VALUE_GROUP_CONCAT) Message: %d line(s) were cut by GROUP_CONCAT()';
$mysql_errno[1261] = 'SQLSTATE: 01000 (ER_WARN_TOO_FEW_RECORDS) Message: Row %ld doesn\'t contain data for all columns';
$mysql_errno[1262] = 'SQLSTATE: 01000 (ER_WARN_TOO_MANY_RECORDS) Message: Row %ld was truncated; it contained more data than there were input columns';
$mysql_errno[1263] = 'SQLSTATE: 01000 (ER_WARN_NULL_TO_NOTNULL) Message: Data truncated; NULL supplied to NOT NULL column \'%s\' at row %ld';
$mysql_errno[1264] = 'SQLSTATE: 01000 (ER_WARN_DATA_OUT_OF_RANGE) Message: Data truncated; out of range for column \'%s\' at row %ld';
$mysql_errno[1265] = 'SQLSTATE: 01000 (ER_WARN_DATA_TRUNCATED) Message: Data truncated for column \'%s\' at row %ld';
$mysql_errno[1266] = 'SQLSTATE: HY000 (ER_WARN_USING_OTHER_HANDLER) Message: Using storage engine %s for table \'%s\'';
$mysql_errno[1267] = 'SQLSTATE: HY000 (ER_CANT_AGGREGATE_2COLLATIONS) Message: Illegal mix of collations (%s,%s) and (%s,%s) for operation \'%s\'';
$mysql_errno[1268] = 'SQLSTATE: HY000 (ER_DROP_USER) Message: Can\'t drop one or more of the requested users';
$mysql_errno[1269] = 'SQLSTATE: HY000 (ER_REVOKE_GRANTS) Message: Can\'t revoke all privileges, grant for one or more of the requested users';
$mysql_errno[1270] = 'SQLSTATE: HY000 (ER_CANT_AGGREGATE_3COLLATIONS) Message: Illegal mix of collations (%s,%s), (%s,%s), (%s,%s) for operation \'%s\'';
$mysql_errno[1271] = 'SQLSTATE: HY000 (ER_CANT_AGGREGATE_NCOLLATIONS) Message: Illegal mix of collations for operation \'%s\'';
$mysql_errno[1272] = 'SQLSTATE: HY000 (ER_VARIABLE_IS_NOT_STRUCT) Message: Variable \'%s\' is not a variable component (can\'t be used as XXXX.variable_name)';
$mysql_errno[1273] = 'SQLSTATE: HY000 (ER_UNKNOWN_COLLATION) Message: Unknown collation: \'%s\'';
$mysql_errno[1274] = 'SQLSTATE: HY000 (ER_SLAVE_IGNORED_SSL_PARAMS) Message: SSL parameters in CHANGE MASTER are ignored because this MySQL slave was compiled without SSL support; they can be used later if MySQL slave with SSL is started';
$mysql_errno[1275] = 'SQLSTATE: HY000 (ER_SERVER_IS_IN_SECURE_AUTH_MODE) Message: Server is running in --secure-auth mode, but \'%s\'@\'%s\' has a password in the old format; please change the password to the new format';
$mysql_errno[1276] = 'SQLSTATE: HY000 (ER_WARN_FIELD_RESOLVED) Message: Field or reference \'%s%s%s%s%s\' of SELECT #%d was resolved in SELECT #%d';
$mysql_errno[1277] = 'SQLSTATE: HY000 (ER_BAD_SLAVE_UNTIL_COND) Message: Incorrect parameter or combination of parameters for START SLAVE UNTIL';
$mysql_errno[1278] = 'SQLSTATE: HY000 (ER_MISSING_SKIP_SLAVE) Message: It is recommended to use --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL; otherwise, you will get problems if you get an unexpected slave\'s mysqld restart';
$mysql_errno[1279] = 'SQLSTATE: HY000 (ER_UNTIL_COND_IGNORED) Message: SQL thread is not to be started so UNTIL options are ignored';
$mysql_errno[1280] = 'SQLSTATE: 42000 (ER_WRONG_NAME_FOR_INDEX) Message: Incorrect index name \'%s\'';
$mysql_errno[1281] = 'SQLSTATE: 42000 (ER_WRONG_NAME_FOR_CATALOG) Message: Incorrect catalog name \'%s\'';
$mysql_errno[1282] = 'SQLSTATE: HY000 (ER_WARN_QC_RESIZE) Message: Query cache failed to set size %lu; new query cache size is %lu';
$mysql_errno[1283] = 'SQLSTATE: HY000 (ER_BAD_FT_COLUMN) Message: Column \'%s\' cannot be part of FULLTEXT index';
$mysql_errno[1284] = 'SQLSTATE: HY000 (ER_UNKNOWN_KEY_CACHE) Message: Unknown key cache \'%s\'';
$mysql_errno[1285] = 'SQLSTATE: HY000 (ER_WARN_HOSTNAME_WONT_WORK) Message: MySQL is started in --skip-name-resolve mode; you must restart it without this switch for this grant to work';
$mysql_errno[1286] = 'SQLSTATE: 42000 (ER_UNKNOWN_STORAGE_ENGINE) Message: Unknown table engine \'%s\'';
$mysql_errno[1287] = 'SQLSTATE: HY000 (ER_WARN_DEPRECATED_SYNTAX) Message: \'%s\' is deprecated; use \'%s\' instead';
$mysql_errno[1288] = 'SQLSTATE: HY000 (ER_NON_UPDATABLE_TABLE) Message: The target table %s of the %s is not updatable';
$mysql_errno[1289] = 'SQLSTATE: HY000 (ER_FEATURE_DISABLED) Message: The \'%s\' feature is disabled; you need MySQL built with \'%s\' to have it working';
$mysql_errno[1290] = 'SQLSTATE: HY000 (ER_OPTION_PREVENTS_STATEMENT) Message: The MySQL server is running with the %s option so it cannot execute this statement';
$mysql_errno[1291] = 'SQLSTATE: HY000 (ER_DUPLICATED_VALUE_IN_TYPE) Message: Column \'%s\' has duplicated value \'%s\' in %s';
$mysql_errno[1292] = 'SQLSTATE: HY000 (ER_TRUNCATED_WRONG_VALUE) Message: Truncated incorrect %s value: \'%s\'';
$mysql_errno[1293] = 'SQLSTATE: HY000 (ER_TOO_MUCH_AUTO_TIMESTAMP_COLS) Message: Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause';
$mysql_errno[1294] = 'SQLSTATE: HY000 (ER_INVALID_ON_UPDATE) Message: Invalid ON UPDATE clause for \'%s\' column';
$mysql_errno[1295] = 'SQLSTATE: HY000 (ER_UNSUPPORTED_PS) Message: This command is not supported in the prepared statement protocol yet';
$mysql_errno[1296] = 'SQLSTATE: 2F003 (ER_SP_NO_RECURSIVE_CREATE) Message: Can\'t create a %s from within another stored routine';
$mysql_errno[1297] = 'SQLSTATE: 42000 (ER_SP_ALREADY_EXISTS) Message: %s %s already exists';
$mysql_errno[1298] = 'SQLSTATE: 42000 (ER_SP_DOES_NOT_EXIST) Message: %s %s does not exist';
$mysql_errno[1299] = 'SQLSTATE: HY000 (ER_SP_DROP_FAILED) Message: Failed to DROP %s %s';
$mysql_errno[1300] = 'SQLSTATE: HY000 (ER_SP_STORE_FAILED) Message: Failed to CREATE %s %s';
$mysql_errno[1301] = 'SQLSTATE: 42000 (ER_SP_LILABEL_MISMATCH) Message: %s with no matching label: %s';
$mysql_errno[1302] = 'SQLSTATE: 42000 (ER_SP_LABEL_REDEFINE) Message: Redefining label %s';
$mysql_errno[1303] = 'SQLSTATE: 42000 (ER_SP_LABEL_MISMATCH) Message: End-label %s without match';
$mysql_errno[1304] = 'SQLSTATE: 01000 (ER_SP_UNINIT_VAR) Message: Referring to uninitialized variable %s';
$mysql_errno[1305] = 'SQLSTATE: 0A000 (ER_SP_BADSELECT) Message: SELECT in a stored procedure must have INTO';
$mysql_errno[1306] = 'SQLSTATE: 42000 (ER_SP_BADRETURN) Message: RETURN is only allowed in a FUNCTION';
$mysql_errno[1307] = 'SQLSTATE: 0A000 (ER_SP_BADSTATEMENT) Message: Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION';
$mysql_errno[1308] = 'SQLSTATE: 42000 (ER_UPDATE_LOG_DEPRECATED_IGNORED) Message: The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored';
$mysql_errno[1309] = 'SQLSTATE: 42000 (ER_UPDATE_LOG_DEPRECATED_TRANSLATED) Message: The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN';
$mysql_errno[1310] = 'SQLSTATE: 70100 (ER_QUERY_INTERRUPTED) Message: Query execution was interrupted';
$mysql_errno[1311] = 'SQLSTATE: 42000 (ER_SP_WRONG_NO_OF_ARGS) Message: Incorrect number of arguments for %s %s; expected %u, got %u';
$mysql_errno[1312] = 'SQLSTATE: 42000 (ER_SP_COND_MISMATCH) Message: Undefined CONDITION: %s';
$mysql_errno[1313] = 'SQLSTATE: 42000 (ER_SP_NORETURN) Message: No RETURN found in FUNCTION %s';
$mysql_errno[1314] = 'SQLSTATE: 2F005 (ER_SP_NORETURNEND) Message: FUNCTION %s ended without RETURN';
$mysql_errno[1315] = 'SQLSTATE: 42000 (ER_SP_BAD_CURSOR_QUERY) Message: Cursor statement must be a SELECT';
$mysql_errno[1316] = 'SQLSTATE: 42000 (ER_SP_BAD_CURSOR_SELECT) Message: Cursor SELECT must not have INTO';
$mysql_errno[1317] = 'SQLSTATE: 42000 (ER_SP_CURSOR_MISMATCH) Message: Undefined CURSOR: %s';
$mysql_errno[1318] = 'SQLSTATE: 24000 (ER_SP_CURSOR_ALREADY_OPEN) Message: Cursor is already open';
$mysql_errno[1319] = 'SQLSTATE: 24000 (ER_SP_CURSOR_NOT_OPEN) Message: Cursor is not open';
$mysql_errno[1320] = 'SQLSTATE: 42000 (ER_SP_UNDECLARED_VAR) Message: Undeclared variable: %s';
$mysql_errno[1321] = 'SQLSTATE: HY000 (ER_SP_WRONG_NO_OF_FETCH_ARGS) Message: Incorrect number of FETCH variables';
$mysql_errno[1322] = 'SQLSTATE: 02000 (ER_SP_FETCH_NO_DATA) Message: No data to FETCH';
$mysql_errno[1323] = 'SQLSTATE: 42000 (ER_SP_DUP_PARAM) Message: Duplicate parameter: %s';
$mysql_errno[1324] = 'SQLSTATE: 42000 (ER_SP_DUP_VAR) Message: Duplicate variable: %s';
$mysql_errno[1325] = 'SQLSTATE: 42000 (ER_SP_DUP_COND) Message: Duplicate condition: %s';
$mysql_errno[1326] = 'SQLSTATE: 42000 (ER_SP_DUP_CURS) Message: Duplicate cursor: %s';
$mysql_errno[1327] = 'SQLSTATE: HY000 (ER_SP_CANT_ALTER) Message: Failed to ALTER %s %s';
$mysql_errno[1328] = 'SQLSTATE: 0A000 (ER_SP_SUBSELECT_NYI) Message: Subselect value not supported';
$mysql_errno[1329] = 'SQLSTATE: 42000 (ER_SP_NO_USE) Message: USE is not allowed in a stored procedure';
$mysql_errno[1330] = 'SQLSTATE: 42000 (ER_SP_VARCOND_AFTER_CURSHNDLR) Message: Variable or condition declaration after cursor or handler declaration';
$mysql_errno[1331] = 'SQLSTATE: 42000 (ER_SP_CURSOR_AFTER_HANDLER) Message: Cursor declaration after handler declaration';
$mysql_errno[1332] = 'SQLSTATE: 20000 (ER_SP_CASE_NOT_FOUND) Message: Case not found for CASE statement';
$mysql_errno[1333] = 'SQLSTATE: HY000 (ER_FPARSER_TOO_BIG_FILE) Message: Configuration file \'%s\' is too big';
$mysql_errno[1334] = 'SQLSTATE: HY000 (ER_FPARSER_BAD_HEADER) Message: Malformed file type header in file \'%s\'';
$mysql_errno[1335] = 'SQLSTATE: HY000 (ER_FPARSER_EOF_IN_COMMENT) Message: Unexpected end of file while parsing comment \'%s\'';
$mysql_errno[1336] = 'SQLSTATE: HY000 (ER_FPARSER_ERROR_IN_PARAMETER) Message: Error while parsing parameter \'%s\' (line: \'%s\')';
$mysql_errno[1337] = 'SQLSTATE: HY000 (ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER) Message: Unexpected end of file while skipping unknown parameter \'%s\'';
$mysql_errno[2000] = '(CR_UNKNOWN_ERROR) Message: Unknown MySQL error';
$mysql_errno[2001] = '(CR_SOCKET_CREATE_ERROR) Message: Can\'t create UNIX socket (%d)';
$mysql_errno[2002] = '(CR_CONNECTION_ERROR) Message: Can\'t connect to local MySQL server through socket \'%s\' (%d)';
$mysql_errno[2003] = '(CR_CONN_HOST_ERROR) Message: Can\'t connect to MySQL server on \'%s\' (%d)';
$mysql_errno[2004] = '(CR_IPSOCK_ERROR) Message: Can\'t create TCP/IP socket (%d)';
$mysql_errno[2005] = '(CR_UNKNOWN_HOST) Message: Unknown MySQL server host \'%s\' (%d)';
$mysql_errno[2006] = '(CR_SERVER_GONE_ERROR) Message: MySQL server has gone away';
$mysql_errno[2007] = '(CR_VERSION_ERROR) Message: Protocol mismatch; server version = %d, client version = %d';
$mysql_errno[2008] = '(CR_OUT_OF_MEMORY) Message: MySQL client ran out of memory';
$mysql_errno[2009] = '(CR_WRONG_HOST_INFO) Message: Wrong host info';
$mysql_errno[2010] = '(CR_LOCALHOST_CONNECTION) Message: Localhost via UNIX socket';
$mysql_errno[2011] = '(CR_TCP_CONNECTION) Message: %s via TCP/IP';
$mysql_errno[2012] = '(CR_SERVER_HANDSHAKE_ERR) Message: Error in server handshake';
$mysql_errno[2013] = '(CR_SERVER_LOST) Message: Lost connection to MySQL server during query';
$mysql_errno[2014] = '(CR_COMMANDS_OUT_OF_SYNC) Message: Commands out of sync; you can\'t run this command now';
$mysql_errno[2015] = '(CR_NAMEDPIPE_CONNECTION) Message: %s via named pipe';
$mysql_errno[2016] = '(CR_NAMEDPIPEWAIT_ERROR) Message: Can\'t wait for named pipe to host: %s pipe: %s (%lu)';
$mysql_errno[2017] = '(CR_NAMEDPIPEOPEN_ERROR) Message: Can\'t open named pipe to host: %s pipe: %s (%lu)';
$mysql_errno[2018] = '(CR_NAMEDPIPESETSTATE_ERROR) Message: Can\'t set state of named pipe to host: %s pipe: %s (%lu)';
$mysql_errno[2019] = '(CR_CANT_READ_CHARSET) Message: Can\'t initialize character set %s (path: %s)';
$mysql_errno[2020] = '(CR_NET_PACKET_TOO_LARGE) Message: Got packet bigger than \'max_allowed_packet\' bytes';
$mysql_errno[2021] = '(CR_EMBEDDED_CONNECTION) Message: Embedded server';
$mysql_errno[2022] = '(CR_PROBE_SLAVE_STATUS) Message: Error on SHOW SLAVE STATUS:';
$mysql_errno[2023] = '(CR_PROBE_SLAVE_HOSTS) Message: Error on SHOW SLAVE HOSTS:';
$mysql_errno[2024] = '(CR_PROBE_SLAVE_CONNECT) Message: Error connecting to slave:';
$mysql_errno[2025] = '(CR_PROBE_MASTER_CONNECT) Message: Error connecting to master:';
$mysql_errno[2026] = '(CR_SSL_CONNECTION_ERROR) Message: SSL connection error';
$mysql_errno[2027] = '(CR_MALFORMED_PACKET) Message: Malformed packet';
$mysql_errno[2028] = '(CR_WRONG_LICENSE) Message: This client library is licensed only for use with MySQL servers having \'%s\' license';
$mysql_errno[2029] = '(CR_NULL_POINTER) Message: Invalid use of null pointer';
$mysql_errno[2030] = '(CR_NO_PREPARE_STMT) Message: Statement not prepared';
$mysql_errno[2031] = '(CR_PARAMS_NOT_BOUND) Message: No data supplied for parameters in prepared statement';
$mysql_errno[2032] = '(CR_DATA_TRUNCATED) Message: Data truncated';
$mysql_errno[2033] = '(CR_NO_PARAMETERS_EXISTS) Message: No parameters exist in the statement';
$mysql_errno[2034] = '(CR_INVALID_PARAMETER_NO) Message: Invalid parameter number';
$mysql_errno[2035] = '(CR_INVALID_BUFFER_USE) Message: Can\'t send long data for non-string/non-binary data types (parameter: %d)';
$mysql_errno[2036] = '(CR_UNSUPPORTED_PARAM_TYPE) Message: Using unsupported buffer type: %d (parameter: %d)';
$mysql_errno[2037] = '(CR_SHARED_MEMORY_CONNECTION) Message: Shared memory (%lu)';
$mysql_errno[2038] = '(CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR) Message: Can\'t open shared memory; client could not create request event (%lu)';
$mysql_errno[2039] = '(CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR) Message: Can\'t open shared memory; no answer event received from server (%lu)';
$mysql_errno[2040] = '(CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR) Message: Can\'t open shared memory; server could not allocate file mapping (%lu)';
$mysql_errno[2041] = '(CR_SHARED_MEMORY_CONNECT_MAP_ERROR) Message: Can\'t open shared memory; server could not get pointer to file mapping (%lu)';
$mysql_errno[2042] = '(CR_SHARED_MEMORY_FILE_MAP_ERROR) Message: Can\'t open shared memory; client could not allocate file mapping (%lu)';
$mysql_errno[2043] = '(CR_SHARED_MEMORY_MAP_ERROR) Message: Can\'t open shared memory; client could not get pointer to file mapping (%lu)';
$mysql_errno[2044] = '(CR_SHARED_MEMORY_EVENT_ERROR) Message: Can\'t open shared memory; client could not create %s event (%lu)';
$mysql_errno[2045] = '(CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR) Message: Can\'t open shared memory; no answer from server (%lu)';
$mysql_errno[2046] = '(CR_SHARED_MEMORY_CONNECT_SET_ERROR) Message: Can\'t open shared memory; cannot send request event to server (%lu)';
$mysql_errno[2047] = '(CR_CONN_UNKNOW_PROTOCOL) Message: Wrong or unknown protocol';
$mysql_errno[2048] = '(CR_INVALID_CONN_HANDLE) Message: Invalid connection handle';
$mysql_errno[2049] = '(CR_SECURE_AUTH) Message: Connection using old (pre-4.1.1) authentication protocol refused (client option \'secure_auth\' enabled)';
$mysql_errno[2050] = '(CR_FETCH_CANCELED) Message: Row retrieval was canceled by mysql_stmt_close() call';
$mysql_errno[2051] = '(CR_NO_DATA) Message: Attempt to read column without prior row fetch';

?>
tapferesschneiderlein ist offline   Mit Zitat antworten
Alt 08.08.2004, 14:42  
Gast
 
Beiträge: n/a
Standard

Bei diesem Beispiel hab ich es gerafft. danke
Ich habe allerdings noch eine kleine Frage.

Ich habe versucht das script in folgende zeile einzu bauen:


Code:
@mysql_query("insert into ".$cfg[dbpre]."user(email, cat, acc, acceptid, name) values ('".addslashes($email)."','$kat','y','".md5(uniqid(time()))."','$name')") or error(mysql_error());
Und zwar so
Code:
@mysql_query("insert into ".$cfg[dbpre]."user(email, cat, acc, acceptid, name) values ('".addslashes($email)."','$kat','y','".md5(uniqid(time()))."','$name')") or error(mysql_errno());
Er zeigt mir die Fehler zahl an .Nur die Message nicht weil ja $mysql_errno fehlt.

Egal wie ich das hinten dranhänge, entweder hagelt es Fehlermeldungen, oder der Fehler wird einfach ignoriert und in meinem Falle, der User der nicht doppelt sein darf eingetragen.

Wie baue ich da $mysql_errno noch ein?
  Mit Zitat antworten
Alt 08.08.2004, 19:02  
Erfahrener Benutzer
 
Registriert seit: 30.06.2004
Beiträge: 619
tapferesschneiderlein
Standard

Ich sehe jetzt nicht direkt einen Unterschied zwischen den beiden Codes. Warum machst Du es nicht wie von mir beschrieben:
PHP-Code:
<?
echo $mysql_errno[mysql_errno()];
?>
Ich weiß nicht, was Deine Funktion error() macht. Hast Du die vorher deklariert?
tapferesschneiderlein ist offline   Mit Zitat antworten
Alt 09.08.2004, 13:33  
Gast
 
Beiträge: n/a
Standard

ich habe deinen vorschlag erfolgreich einbauen können.
Nur in dem zweiten fall, hab ich das problem habe, das in da keine variable wie $dbusar hab, in der ich das $q einbauen kann.
Desterwegen. da ich von php noch nicht wirklich einen sitzen hab bringt mich die syntax manchmal zur verzweiflung.

daher der zweite code

Ich hatte es soweit, dass mir der sql Fehlerzahlencode ausgegeben wurde.
ich konnte es aber nicht mittels einer if-afbfrage abfangen.
  Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Externe Variable über eine Funktion ausgeben errox PHP Tipps 2008 3 14.04.2008 11:26
verschachtelte Rubriken ausgeben / alle anzeigen prinzli PHP Tipps 2008 3 25.02.2008 22:37
Sprache auf Webseite ändern PHP Tipps 2006 3 08.01.2006 13:44
Eine Zeichenkette in Sprache ausgeben PHP Tipps 2007 4 11.12.2005 20:38
Spaltennamen ausgeben PHP Tipps 2005-2 13 26.10.2005 12:39
Sprache einer Seite wechseln mercurio PHP Tipps 2005-2 9 06.09.2005 13:19
Codeschnipsel nur bei bestimmten Stylesheet ausgeben PHP Tipps 2005-2 2 24.07.2005 11:53
zahl ausgeben wenn gerade Tschuu PHP Tipps 2005-2 6 07.07.2005 19:20
ausgeben nach datum möchtegernchegga PHP Tipps 2005 8 04.05.2005 17:22
Wie DB-Ergebniss in html-Tabelle ausgeben ? PHP Tipps 2004-2 2 31.12.2004 18:04
[Erledigt] Array ausgeben PHP Tipps 2004-2 4 05.12.2004 00:53
Bestimmte Datenbank Felder nur einmal ausgeben Paulo PHP Tipps 2004-2 3 26.11.2004 16:39
[Erledigt] Ganze Tabelle ausgeben PHP Tipps 2004-2 1 21.11.2004 16:48
datenbank: gleiche zeileninhalte nur 1 mal ausgeben PHP Tipps 2004 1 16.10.2004 20:23
Datum in deutscher Version ausgeben... PHP Tipps 2004 6 24.09.2004 16:07

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
mysql_error ausgeben, a table must have at least 1 column, fehler: 1248 sqlstate: 42000 (er_derived_must_have_alias), #1010 - error dropping database (can\'t rmdir \'.\\test\\\', errno: 17), php mysql_error auf deutsche texte, connection using old (pre-4.1.1) authentication protocol refused (client option \'secure_auth\' enabled), mysql_error: lock wait timeout exceeded; try restarting transaction, #1090 - you can\'t delete all columns with alter table; use drop table instead, http://www.php.de/datenbanken/6488-mysql_error-deutscher-sprache-ausgeben.html, can\'t get hostname for your address mysql, mysql_error 1142, mysql_error: \'table \' is marked as crashed and last (automatic?) repair failed, #1069 - too many keys specified; max 0 keys allowed, error: 1062 sqlstate: 23000 (er_dup_entry) message: duplicate entry \'%s\' for key %d, 1130 fehlertext: host is not allowed to connect to this mysql server, err mysql_errno 1046, \got an error reading communication packets\, mysql> load data from master -> ; error 1158 (08s01): got an error reading communication packets, mysql\\bin\\mysqld.exe: incorrect key file for table, mysql cut by group_concat

Alle Zeitangaben in WEZ +2. Es ist jetzt 09:46 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.