errmsg.c
上传用户:jmzj888
上传日期:2007-01-02
资源大小:220k
文件大小:2k
- /* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
- This file is public domain and comes with NO WARRANTY of any kind */
- /* Error messages for MySQL clients */
- /* error messages for the demon is in share/language/errmsg.sys */
- #include <global.h>
- #include <my_sys.h>
- #include "errmsg.h"
- #ifdef GERMAN
- static char *client_errors[]=
- {
- "Unbekannter MySQL Fehler",
- "Kann UNIX-Socket nicht anlegen",
- "Keine Verbindung zu lokalem MySQL Server",
- "Keine Verbindung zu MySQL Server auf %s (%d)",
- "Kann IP-Socket nicht anlegen",
- "Unbekannter MySQL Server Host (%s) (%d)",
- "MySQL Server nicht vorhanden",
- "Protokolle ungleich. Server Version = % d Client Version = %d",
- "MySQL client got out of memory",
- "Wrong host info",
- "Localhost via UNIX socket",
- "%s via TCP/IP",
- "Error in server handshake",
- "Lost connection to MySQL server during query",
- "Commands out of sync; You can't run this command now",
- };
- #else /* ENGLISH */
- char *client_errors[]=
- {
- "Unknown MySQL error",
- "Can't create UNIX socket",
- "Can't connect to local MySQL server",
- "Can't connect to MySQL server on %s (%d)",
- "Can't create IP socket",
- "Unknown MySQL Server Host (%s) (%d)",
- "MySQL server has gone away",
- "Protocol mismatch. Server Version = %d Client Version = %d",
- "MySQL client got out of memory",
- "Wrong host info",
- "Localhost via UNIX socket",
- "%s via TCP/IP",
- "Error in server handshake",
- "Lost connection to MySQL server during query",
- "Commands out of sync; You can't run this command now",
- };
- #endif
- void init_client_errs(void)
- {
- errmsg[CLIENT_ERRMAP] = &client_errors[0];
- }