mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
c1488c7e58
Changed errmsg -> my_errmsg (portability issue) Fixed that mysqlbinlog writes SET TIMESTAMP before all queries Fixed comments in default my.cnf files Docs/manual.texi: Updated information about character sets client/mysqladmin.c: Added missing help text client/mysqltest.c: Changed --replace to --replace_result to not conflict with SQL replace command include/my_sys.h: change errmsg -> my_errmsg (portability issue) libmysql/errmsg.c: change errmsg -> my_errmsg (portability issue) myisam/mi_cache.c: Changed seek+read to pread myisam/mi_check.c: Fix bug that caused myisamchk to be very slow under some specific error conditions myisam/mi_dynrec.c: cleanup myisam/myisamchk.c: Write out value of checksum myisam/myisamdef.h: cleanup mysql-test/r/backup.result: Fixed the case where backup caused different error messages mysql-test/r/bdb.result: Added new test case mysql-test/r/fulltext.result: Fix for new CREATE TABLE format mysql-test/t/backup.test: Use --replace_result and --send mysql-test/t/bdb.test: New test case mysql-test/t/status.test: Use --send mysys/errors.c: change errmsg -> my_errmsg (portability issue) mysys/my_error.c: change errmsg -> my_errmsg (portability issue) mysys/typelib.c: Only accept full type names sql/derror.cc: change errmsg -> my_errmsg (portability issue) sql/ha_berkeley.cc: Fixed bug when using key parts that could be NULL sql/log_event.cc: Log SET TIMESTAMP before all queries sql/mysqlbinlog.cc: Incremented version number sql/mysqld.cc: change errmsg -> my_errmsg (portability issue) Always accept --skip-gemeni, --skip-bdb and --skip-innobase sql/slave.cc: cleanup sql/sql_base.cc: cleanup sql/sql_db.cc: cleanup support-files/my-huge.cnf.sh: Remove usage of # at end of line support-files/my-large.cnf.sh: Remove usage of # at end of line support-files/my-medium.cnf.sh: Remove usage of # at end of line support-files/my-small.cnf.sh: Remove usage of # at end of line
82 lines
3.1 KiB
C
82 lines
3.1 KiB
C
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Library General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Library General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
License along with this library; if not, write to the Free
|
|
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
MA 02111-1307, USA */
|
|
|
|
/* 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
|
|
const char *client_errors[]=
|
|
{
|
|
"Unbekannter MySQL Fehler",
|
|
"Kann UNIX-Socket nicht anlegen (%d)",
|
|
"Keine Verbindung zu lokalem MySQL Server, socket: '%-.64s' (%d)",
|
|
"Keine Verbindung zu MySQL Server auf %-.64s (%d)",
|
|
"Kann TCP/IP-Socket nicht anlegen (%d)",
|
|
"Unbekannter MySQL Server Host (%-.64s) (%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",
|
|
"%-.64s 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",
|
|
"Verbindung ueber Named Pipe; Host: %-.64s",
|
|
"Kann nicht auf Named Pipe warten. Host: %-.64s pipe: %-.32s (%lu)",
|
|
"Kann Named Pipe nicht oeffnen. Host: %-.64s pipe: %-.32s (%lu)",
|
|
"Kann den Status der Named Pipe nicht setzen. Host: %-.64s pipe: %-.32s (%lu)",
|
|
"Can't initialize character set %-.64s (path: %-.64s)",
|
|
"Got packet bigger than 'max_allowed_packet'"
|
|
};
|
|
|
|
#else /* ENGLISH */
|
|
const char *client_errors[]=
|
|
{
|
|
"Unknown MySQL error",
|
|
"Can't create UNIX socket (%d)",
|
|
"Can't connect to local MySQL server through socket '%-.64s' (%d)",
|
|
"Can't connect to MySQL server on '%-.64s' (%d)",
|
|
"Can't create TCP/IP socket (%d)",
|
|
"Unknown MySQL Server Host '%-.64s' (%d)",
|
|
"MySQL server has gone away",
|
|
"Protocol mismatch. Server Version = %d Client Version = %d",
|
|
"MySQL client run out of memory",
|
|
"Wrong host info",
|
|
"Localhost via UNIX socket",
|
|
"%-.64s 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",
|
|
"%-.64s via named pipe",
|
|
"Can't wait for named pipe to host: %-.64s pipe: %-.32s (%lu)",
|
|
"Can't open named pipe to host: %-.64s pipe: %-.32s (%lu)",
|
|
"Can't set state of named pipe to host: %-.64s pipe: %-.32s (%lu)",
|
|
"Can't initialize character set %-.64s (path: %-.64s)",
|
|
"Got packet bigger than 'max_allowed_packet'"
|
|
};
|
|
#endif
|
|
|
|
|
|
void init_client_errs(void)
|
|
{
|
|
my_errmsg[CLIENT_ERRMAP] = &client_errors[0];
|
|
}
|