mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
Merge hf@192.168.21.12:work/mysql-4.1.9855
into eagle.intranet.mysql.r18.ru:/home/hf/work/mysql-4.1.mrg
This commit is contained in:
commit
b91380456f
346 changed files with 5832 additions and 4275 deletions
|
@ -1057,3 +1057,4 @@ vio/test-ssl
|
|||
vio/test-sslclient
|
||||
vio/test-sslserver
|
||||
vio/viotest-ssl
|
||||
libmysql/libmysql.ver
|
||||
|
|
|
@ -20,14 +20,22 @@
|
|||
EXTRA_DIST = FINISH.sh \
|
||||
SETUP.sh \
|
||||
check-cpu \
|
||||
cleanup \
|
||||
compile-alpha \
|
||||
compile-alpha-ccc \
|
||||
compile-alpha-cxx \
|
||||
compile-alpha-debug \
|
||||
compile-amd64-debug-max \
|
||||
compile-amd64-max \
|
||||
compile-darwin-mwcc \
|
||||
compile-dist \
|
||||
compile-hpux11-parisc2-aCC \
|
||||
compile-ia64-debug-max \
|
||||
compile-irix-mips64-mipspro \
|
||||
compile-pentium \
|
||||
compile-pentium-debug \
|
||||
compile-pentium-debug-max \
|
||||
compile-pentium-debug-max-no-embedded \
|
||||
compile-pentium-debug-no-bdb \
|
||||
compile-pentium-debug-openssl \
|
||||
compile-pentium-gcov \
|
||||
|
@ -36,10 +44,16 @@ EXTRA_DIST = FINISH.sh \
|
|||
compile-pentium-myodbc \
|
||||
compile-pentium-mysqlfs-debug \
|
||||
compile-pentium-pgcc \
|
||||
compile-pentium-valgrind-max \
|
||||
compile-pentium64-debug \
|
||||
compile-pentium64-debug-max \
|
||||
compile-pentium64-valgrind-max \
|
||||
compile-ppc \
|
||||
compile-ppc-debug \
|
||||
compile-ppc-debug-max \
|
||||
compile-ppc-max \
|
||||
compile-solaris-sparc \
|
||||
compile-solaris-sparc-debug \
|
||||
compile-irix-mips64-mipspro \
|
||||
compile-hpux11-parisc2-aCC \
|
||||
compile-solaris-sparc-forte \
|
||||
compile-solaris-sparc-purify
|
||||
|
||||
|
|
13
BUILD/compile-pentium64-debug-max
Executable file
13
BUILD/compile-pentium64-debug-max
Executable file
|
@ -0,0 +1,13 @@
|
|||
#! /bin/sh
|
||||
|
||||
path=`dirname $0`
|
||||
. "$path/SETUP.sh" $@ --with-debug=full
|
||||
|
||||
extra_flags="$pentium64_cflags $debug_cflags $max_cflags"
|
||||
c_warnings="$c_warnings $debug_extra_warnings"
|
||||
cxx_warnings="$cxx_warnings $debug_extra_warnings"
|
||||
extra_configs="$pentium_configs $debug_configs $max_configs"
|
||||
|
||||
extra_configs="$extra_configs "
|
||||
|
||||
. "$path/FINISH.sh"
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#shift
|
||||
FROM=$USER@mysql.com
|
||||
INTERNALS=internals@lists.mysql.com
|
||||
COMMITS=commits@lists.mysql.com
|
||||
DOCS=docs-commit@mysql.com
|
||||
LIMIT=10000
|
||||
VERSION="4.1"
|
||||
|
@ -61,14 +61,14 @@ EOF
|
|||
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
||||
|
||||
#++
|
||||
# internals@ mail
|
||||
# commits@ mail
|
||||
#--
|
||||
echo "Notifying internals list at $INTERNALS"
|
||||
echo "Notifying commits list at $COMMITS"
|
||||
(
|
||||
cat <<EOF
|
||||
List-ID: <bk.mysql-$VERSION>
|
||||
From: $FROM
|
||||
To: $INTERNALS
|
||||
To: $COMMITS
|
||||
Subject: bk commit into $VERSION tree ($CHANGESET)$BS
|
||||
X-CSetKey: <$CSETKEY>
|
||||
$BH
|
||||
|
|
|
@ -18,11 +18,11 @@ noinst_SCRIPTS = Support/generate-text-files.pl
|
|||
|
||||
EXTRA_DIST = $(noinst_SCRIPTS) mysql.info INSTALL-BINARY
|
||||
|
||||
all: txt_files
|
||||
|
||||
txt_files: ../INSTALL-SOURCE ../INSTALL-WIN-SOURCE ../EXCEPTIONS-CLIENT \
|
||||
TXT_FILES= ../INSTALL-SOURCE ../INSTALL-WIN-SOURCE ../EXCEPTIONS-CLIENT \
|
||||
INSTALL-BINARY ../support-files/MacOSX/ReadMe.txt
|
||||
|
||||
all-local: $(TXT_FILES)
|
||||
|
||||
# make sure that "make install" installs the info page, too
|
||||
# automake only seems to take care of this automatically,
|
||||
# if we're building the info page from texi directly.
|
||||
|
@ -30,28 +30,32 @@ install-data-hook: mysql.info
|
|||
$(mkinstalldirs) $(DESTDIR)$(infodir)
|
||||
$(INSTALL_DATA) $(srcdir)/mysql.info $(DESTDIR)$(infodir)
|
||||
|
||||
CLEAN_FILES: $(txt_files)
|
||||
touch $(txt_files)
|
||||
uninstall-local:
|
||||
@RM@ -f $(DESTDIR)$(infodir)/mysql.info
|
||||
|
||||
# This target is not used in builds, just for convinience
|
||||
CLEAN_FILES: $(TXT_FILES)
|
||||
touch $(TXT_FILES)
|
||||
|
||||
GT = $(srcdir)/Support/generate-text-files.pl
|
||||
|
||||
../INSTALL-SOURCE: mysql.info $(GT)
|
||||
perl -w $(GT) mysql.info "installing-source" "windows-source-build" > $@
|
||||
perl -w $(GT) $< "installing-source" "windows-source-build" > $@
|
||||
|
||||
../INSTALL-WIN-SOURCE: mysql.info $(GT)
|
||||
perl -w $(GT) mysql.info "windows-source-build" "post-installation" > $@
|
||||
perl -w $(GT) $< "windows-source-build" "post-installation" > $@
|
||||
|
||||
# We put the description for the binary installation here so that
|
||||
# people who download source wont have to see it. It is moved up to
|
||||
# the toplevel by the script that makes the binary tar files.
|
||||
INSTALL-BINARY: mysql.info $(GT)
|
||||
perl -w $(GT) mysql.info "installing-binary" "installing-source" > $@
|
||||
perl -w $(GT) $< "installing-binary" "installing-source" > $@
|
||||
|
||||
../EXCEPTIONS-CLIENT: mysql.info $(GT)
|
||||
perl -w $(GT) mysql.info "mysql-floss-license-exception" "function-index" > $@
|
||||
perl -w $(GT) $< "mysql-floss-license-exception" "function-index" > $@
|
||||
|
||||
../support-files/MacOSX/ReadMe.txt: mysql.info $(GT)
|
||||
perl -w $(GT) mysql.info "mac-os-x-installation" "netware-installation" > $@
|
||||
perl -w $(GT) $< "mac-os-x-installation" "netware-installation" > $@
|
||||
|
||||
# Don't update the files from bitkeeper
|
||||
%::SCCS/s.%
|
||||
|
|
60
Makefile.am
60
Makefile.am
|
@ -19,7 +19,8 @@
|
|||
AUTOMAKE_OPTIONS = foreign
|
||||
|
||||
# These are built from source in the Docs directory
|
||||
EXTRA_DIST = INSTALL-SOURCE README COPYING EXCEPTIONS-CLIENT
|
||||
EXTRA_DIST = INSTALL-SOURCE INSTALL-WIN-SOURCE \
|
||||
README COPYING EXCEPTIONS-CLIENT
|
||||
SUBDIRS = . include @docs_dirs@ @zlib_dir@ \
|
||||
@readline_topdir@ sql-common \
|
||||
@thread_dirs@ pstack \
|
||||
|
@ -34,16 +35,19 @@ DIST_SUBDIRS = . include @docs_dirs@ zlib \
|
|||
BUILD netware os2 @libmysqld_dirs@ \
|
||||
@bench_dirs@ support-files @fs_dirs@ @tools_dirs@
|
||||
|
||||
# Relink after clean
|
||||
linked_sources = linked_client_sources linked_server_sources \
|
||||
linked_libmysql_sources linked_libmysql_r_sources \
|
||||
linked_libmysqld_sources linked_libmysqldex_sources \
|
||||
# Run these targets before any others, also make part of clean target,
|
||||
# to make sure we create new links after a clean.
|
||||
BUILT_SOURCES = linked_client_sources linked_server_sources \
|
||||
@linked_client_targets@ \
|
||||
@linked_libmysqld_targets@ \
|
||||
linked_include_sources @linked_netware_sources@
|
||||
|
||||
CLEANFILES = $(linked_sources)
|
||||
|
||||
# This is just so that the linking is done early.
|
||||
all-local: $(linked_sources)
|
||||
# The db.h file is a bit special, see note in "configure.in".
|
||||
# In the case we didn't compile with bdb, a dummy file is put
|
||||
# there, but will not be removed by the bdb make file becuase
|
||||
# it will never be called.
|
||||
CLEANFILES = $(BUILT_SOURCES) bdb/build_unix/db.h
|
||||
DISTCLEANFILES = ac_available_languages_fragment
|
||||
|
||||
linked_include_sources:
|
||||
cd include; $(MAKE) link_sources
|
||||
|
@ -73,13 +77,8 @@ linked_netware_sources:
|
|||
cd @netware_dir@; $(MAKE) link_sources
|
||||
echo timestamp > linked_netware_sources
|
||||
|
||||
#avoid recursive make calls in sql directory
|
||||
linked_server_sources:
|
||||
cd sql; rm -f mini_client_errors.c;\
|
||||
@LN_CP_F@ ../libmysql/errmsg.c mini_client_errors.c;\
|
||||
rm -f pack.c;@LN_CP_F@ ../sql-common/pack.c pack.c;\
|
||||
rm -f client.c;@LN_CP_F@ ../sql-common/client.c client.c;\
|
||||
rm -f my_time.c;@LN_CP_F@ ../sql-common/my_time.c my_time.c
|
||||
cd sql; $(MAKE) link_sources
|
||||
echo timestamp > linked_server_sources
|
||||
|
||||
# Create permission databases
|
||||
|
@ -91,35 +90,28 @@ bin-dist: all
|
|||
|
||||
# Remove BK's "SCCS" subdirectories from source distribution
|
||||
dist-hook:
|
||||
rm -rf `find $(distdir) -type d -name SCCS`
|
||||
rm -rf `find $(distdir) -type d -name SCCS -print`
|
||||
|
||||
tags:
|
||||
support-files/build-tags
|
||||
.PHONY: init-db bin-dist
|
||||
|
||||
# Test installation. Ports are configurable from the environment.
|
||||
|
||||
MYSQL_TEST_MANAGER_PORT = 9305
|
||||
MYSQL_TEST_MASTER_PORT = 9306
|
||||
MYSQL_TEST_SLAVE_PORT = 9308
|
||||
MYSQL_TEST_NDB_PORT = 9350
|
||||
# Target 'test' will run the regression test suite using the built server.
|
||||
#
|
||||
# If you are running in a shared environment, users can avoid clashing
|
||||
# port numbers by setting individual small numbers 1-100 to the
|
||||
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
|
||||
# will then calculate the various port numbers it needs from this,
|
||||
# making sure each user use different ports.
|
||||
|
||||
test:
|
||||
cd mysql-test ; \
|
||||
./mysql-test-run \
|
||||
--manager-port=$(MYSQL_TEST_MANAGER_PORT) \
|
||||
--master_port=$(MYSQL_TEST_MASTER_PORT) \
|
||||
--slave_port=$(MYSQL_TEST_SLAVE_PORT) \
|
||||
--ndbcluster_port=$(MYSQL_TEST_NDB_PORT) && \
|
||||
./mysql-test-run --ps-protocol \
|
||||
--manager-port=$(MYSQL_TEST_MANAGER_PORT) \
|
||||
--master_port=$(MYSQL_TEST_MASTER_PORT) \
|
||||
--slave_port=$(MYSQL_TEST_SLAVE_PORT) \
|
||||
--ndbcluster_port=$(MYSQL_TEST_NDB_PORT)
|
||||
./mysql-test-run && \
|
||||
./mysql-test-run --ps-protocol
|
||||
|
||||
test-force:
|
||||
cd mysql-test; \
|
||||
./mysql-test-run --force ;\
|
||||
./mysql-test-run --force && \
|
||||
./mysql-test-run --ps-protocol --force
|
||||
|
||||
# We are testing a new Perl version of the test script
|
||||
|
@ -130,5 +122,5 @@ test-pl:
|
|||
|
||||
test-force-pl:
|
||||
cd mysql-test; \
|
||||
./mysql-test-run.pl --force ; \
|
||||
./mysql-test-run.pl --force && \
|
||||
./mysql-test-run.pl --ps-protocol --force
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
MySQL-*.rpm
|
|
@ -310,8 +310,9 @@ case $SYSTEM_TYPE in
|
|||
fi
|
||||
;;
|
||||
*)
|
||||
if test -f "$mysql_zlib_dir/lib/libz.a" -a \
|
||||
-f "$mysql_zlib_dir/include/zlib.h"; then
|
||||
if test \( -f "$mysql_zlib_dir/lib/libz.a" -o -f "$mysql_zlib_dir/lib/libz.so" -o \
|
||||
-f "$mysql_zlib_dir/lib/libz.sl" -o -f "$mysql_zlib_dir/lib/libz.dylib" \) \
|
||||
-a -f "$mysql_zlib_dir/include/zlib.h"; then
|
||||
ZLIB_INCLUDES="-I$mysql_zlib_dir/include"
|
||||
ZLIB_LIBS="-L$mysql_zlib_dir/lib -lz"
|
||||
MYSQL_CHECK_ZLIB_DIR
|
||||
|
|
|
@ -41,8 +41,8 @@ DEFS = -DUNDEF_THREADS_HACK
|
|||
|
||||
link_sources:
|
||||
for f in $(sql_src) ; do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/sql/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/sql/$$f $$f; \
|
||||
done;
|
||||
|
||||
# Don't update the files from bitkeeper
|
||||
|
|
|
@ -254,7 +254,7 @@ static COMMANDS commands[] = {
|
|||
{ "quit", 'q', com_quit, 0, "Quit mysql." },
|
||||
{ "rehash", '#', com_rehash, 0, "Rebuild completion hash." },
|
||||
{ "source", '.', com_source, 1,
|
||||
"Execute a SQL script file. Takes a file name as an argument."},
|
||||
"Execute an SQL script file. Takes a file name as an argument."},
|
||||
{ "status", 's', com_status, 0, "Get status information from the server."},
|
||||
#ifdef USE_POPEN
|
||||
{ "system", '!', com_shell, 1, "Execute a system shell command."},
|
||||
|
@ -509,7 +509,7 @@ static struct my_option my_long_options[] =
|
|||
{"help", 'I', "Synonym for -?", 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
|
||||
0, 0, 0, 0, 0},
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"auto-rehash", OPT_AUTO_REHASH,
|
||||
|
@ -1813,9 +1813,13 @@ com_help(String *buffer __attribute__((unused)),
|
|||
if (help_arg)
|
||||
return com_server_help(buffer,line,help_arg+1);
|
||||
|
||||
put_info("\nFor the complete MySQL Manual online, visit:\n http://www.mysql.com/documentation\n", INFO_INFO);
|
||||
put_info("For info on technical support from MySQL developers, visit:\n http://www.mysql.com/support\n", INFO_INFO);
|
||||
put_info("For info on MySQL books, utilities, consultants, etc., visit:\n http://www.mysql.com/portal\n", INFO_INFO);
|
||||
put_info("\nFor information about MySQL products and services, visit:\n"
|
||||
" http://www.mysql.com/\n"
|
||||
"For developer information, including the MySQL Reference Manual, "
|
||||
"visit:\n"
|
||||
" http://dev.mysql.com/\n"
|
||||
"To buy MySQL Network Support, training, or other products, visit:\n"
|
||||
" https://shop.mysql.com/\n", INFO_INFO);
|
||||
put_info("List of all MySQL commands:", INFO_INFO);
|
||||
if (!named_cmds)
|
||||
put_info("Note that all text commands must be first on line and end with ';'",INFO_INFO);
|
||||
|
|
|
@ -127,7 +127,7 @@ static TYPELIB command_typelib=
|
|||
static struct my_option my_long_options[] =
|
||||
{
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"count", 'c',
|
||||
|
|
|
@ -433,7 +433,7 @@ static struct my_option my_long_options[] =
|
|||
{
|
||||
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
#ifndef DBUG_OFF
|
||||
|
|
|
@ -63,7 +63,7 @@ static struct my_option my_long_options[] =
|
|||
(gptr*) &opt_all_in_1, (gptr*) &opt_all_in_1, 0, GET_BOOL, NO_ARG, 0, 0, 0,
|
||||
0, 0, 0},
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"auto-repair", OPT_AUTO_REPAIR,
|
||||
|
|
|
@ -165,7 +165,7 @@ static struct my_option my_long_options[] =
|
|||
"Allow creation of column names that are keywords.", (gptr*) &opt_keywords,
|
||||
(gptr*) &opt_keywords, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"character-sets-dir", OPT_CHARSETS_DIR,
|
||||
|
|
|
@ -59,7 +59,7 @@ static char *shared_memory_base_name=0;
|
|||
static struct my_option my_long_options[] =
|
||||
{
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"character-sets-dir", OPT_CHARSETS_DIR,
|
||||
|
@ -517,6 +517,13 @@ int main(int argc, char **argv)
|
|||
free_defaults(argv_to_free);
|
||||
return(1); /* purecov: deadcode */
|
||||
}
|
||||
|
||||
if (mysql_query(sock, "set @@character_set_database=binary;"))
|
||||
{
|
||||
db_error(sock); /* We shall countinue here, if --force was given */
|
||||
return(1);
|
||||
}
|
||||
|
||||
if (lock_tables)
|
||||
lock_table(sock, argc, argv);
|
||||
for (; *argv != NULL; argv++)
|
||||
|
|
|
@ -156,7 +156,7 @@ int main(int argc, char **argv)
|
|||
static struct my_option my_long_options[] =
|
||||
{
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"character-sets-dir", 'c', "Directory where character sets are.",
|
||||
|
|
|
@ -3272,19 +3272,24 @@ static int run_query_stmt(MYSQL *mysql, struct st_query *q, int flags)
|
|||
/* Read result from each column */
|
||||
for (col_idx= 0; col_idx < num_fields; col_idx++)
|
||||
{
|
||||
/* FIXME is string terminated? */
|
||||
const char *val= (const char *)bind[col_idx].buffer;
|
||||
ulonglong len= *bind[col_idx].length;
|
||||
const char *val;
|
||||
ulonglong len;
|
||||
if (col_idx < max_replace_column && replace_column[col_idx])
|
||||
{
|
||||
val= replace_column[col_idx];
|
||||
len= strlen(val);
|
||||
}
|
||||
if (*bind[col_idx].is_null)
|
||||
else if (*bind[col_idx].is_null)
|
||||
{
|
||||
val= "NULL";
|
||||
len= 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* FIXME is string terminated? */
|
||||
val= (const char *) bind[col_idx].buffer;
|
||||
len= *bind[col_idx].length;
|
||||
}
|
||||
if (!display_result_vertically)
|
||||
{
|
||||
if (col_idx) /* No tab before first col */
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
# Makefile for the GNU readline library.
|
||||
# Copyright (C) 1994,1996,1997 Free Software Foundation, Inc.
|
||||
|
||||
ASRC=vi.c emacs.c common.c
|
||||
AHDR=vi.h emacs.h common.h
|
||||
ASRC = $(srcdir)/vi.c $(srcdir)/emacs.c $(srcdir)/common.c
|
||||
AHDR = vi.h emacs.h common.h
|
||||
|
||||
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
||||
-I$(srcdir)/../.. -I..
|
||||
|
@ -42,16 +42,16 @@ SUFFIXES = .sh
|
|||
$< > $@-t
|
||||
@MV@ $@-t $@
|
||||
|
||||
vi.h: vi.c makelist
|
||||
sh ./makelist -h ./vi.c > $@.tmp && \
|
||||
vi.h: $(srcdir)/vi.c makelist
|
||||
sh ./makelist -h $(srcdir)/vi.c > $@.tmp && \
|
||||
mv $@.tmp $@
|
||||
|
||||
emacs.h: emacs.c makelist
|
||||
sh ./makelist -h ./emacs.c > $@.tmp && \
|
||||
emacs.h: $(srcdir)/emacs.c makelist
|
||||
sh ./makelist -h $(srcdir)/emacs.c > $@.tmp && \
|
||||
mv $@.tmp $@
|
||||
|
||||
common.h: common.c makelist
|
||||
sh ./makelist -h ./common.c > $@.tmp && \
|
||||
common.h: $(srcdir)/common.c makelist
|
||||
sh ./makelist -h $(srcdir)/common.c > $@.tmp && \
|
||||
mv $@.tmp $@
|
||||
|
||||
help.c: ${ASRC} makelist
|
||||
|
|
47
configure.in
47
configure.in
|
@ -5,18 +5,19 @@ AC_INIT(sql/mysqld.cc)
|
|||
AC_CANONICAL_SYSTEM
|
||||
# The Docs Makefile.am parses this line!
|
||||
# remember to also change ndb version below and update version.c in ndb
|
||||
AM_INIT_AUTOMAKE(mysql, 4.1.16)
|
||||
AM_INIT_AUTOMAKE(mysql, 4.1.18)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
PROTOCOL_VERSION=10
|
||||
DOT_FRM_VERSION=6
|
||||
# See the libtool docs for information on how to do shared lib versions.
|
||||
SHARED_LIB_VERSION=14:0:0
|
||||
SHARED_LIB_MAJOR_VERSION=14
|
||||
SHARED_LIB_VERSION=$SHARED_LIB_MAJOR_VERSION:0:0
|
||||
|
||||
# ndb version
|
||||
NDB_VERSION_MAJOR=4
|
||||
NDB_VERSION_MINOR=1
|
||||
NDB_VERSION_BUILD=16
|
||||
NDB_VERSION_BUILD=18
|
||||
NDB_VERSION_STATUS=""
|
||||
|
||||
# Set all version vars based on $VERSION. How do we do this more elegant ?
|
||||
|
@ -37,7 +38,7 @@ romanian russian serbian slovak spanish swedish ukrainian"
|
|||
|
||||
# Generate make rules for all error messages
|
||||
AVAILABLE_LANGUAGES_ERRORS=
|
||||
AVAILABLE_LANGUAGES_ERRORS_RULES=$srcdir/ac_available_languages_fragment
|
||||
AVAILABLE_LANGUAGES_ERRORS_RULES=ac_available_languages_fragment
|
||||
rm -f $AVAILABLE_LANGUAGES_ERRORS_RULES
|
||||
for i in $AVAILABLE_LANGUAGES
|
||||
do
|
||||
|
@ -68,6 +69,7 @@ AC_DEFINE_UNQUOTED([PROTOCOL_VERSION], [$PROTOCOL_VERSION],
|
|||
AC_SUBST(DOT_FRM_VERSION)
|
||||
AC_DEFINE_UNQUOTED([DOT_FRM_VERSION], [$DOT_FRM_VERSION],
|
||||
[Version of .frm files])
|
||||
AC_SUBST(SHARED_LIB_MAJOR_VERSION)
|
||||
AC_SUBST(SHARED_LIB_VERSION)
|
||||
AC_SUBST(AVAILABLE_LANGUAGES)
|
||||
AC_SUBST(AVAILABLE_LANGUAGES_ERRORS)
|
||||
|
@ -431,6 +433,13 @@ then
|
|||
fi
|
||||
fi
|
||||
|
||||
# libmysqlclient versioning when linked with GNU ld.
|
||||
if $LD --version 2>/dev/null|grep -q GNU; then
|
||||
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libmysql/libmysql.ver"
|
||||
AC_CONFIG_FILES(libmysql/libmysql.ver)
|
||||
fi
|
||||
AC_SUBST(LD_VERSION_SCRIPT)
|
||||
|
||||
# Avoid bug in fcntl on some versions of linux
|
||||
AC_MSG_CHECKING("if we should use 'skip-locking' as default for $target_os")
|
||||
# Any wariation of Linux
|
||||
|
@ -1672,6 +1681,19 @@ if expr "$SYSTEM_TYPE" : ".*netware.*" > /dev/null; then
|
|||
OPTIMIZE_CXXFLAGS="$OPTIMIZE_CXXFLAGS -DNDEBUG"
|
||||
fi
|
||||
|
||||
# If the user specified CFLAGS, we won't add any optimizations
|
||||
if test -n "$SAVE_CFLAGS"
|
||||
then
|
||||
OPTIMIZE_CFLAGS=""
|
||||
DEBUG_OPTIMIZE_CC=""
|
||||
fi
|
||||
# Ditto for CXXFLAGS
|
||||
if test -n "$SAVE_CXXFLAGS"
|
||||
then
|
||||
OPTIMIZE_CXXFLAGS=""
|
||||
DEBUG_OPTIMIZE_CXX=""
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(debug,
|
||||
[ --without-debug Build a production version without debugging code],
|
||||
[with_debug=$withval],
|
||||
|
@ -2300,6 +2322,7 @@ then
|
|||
echo "Warning: extra-tools disabled because --enable-thread-safe-client wasn't used"
|
||||
else
|
||||
tools_dirs="tools"
|
||||
AC_CONFIG_FILES(tools/Makefile)
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(tools_dirs)
|
||||
|
@ -2310,9 +2333,12 @@ MYSQL_CHECK_VIO
|
|||
MYSQL_CHECK_OPENSSL
|
||||
|
||||
libmysqld_dirs=
|
||||
linked_libmysqld_targets=
|
||||
if test "$with_embedded_server" = "yes"
|
||||
then
|
||||
libmysqld_dirs=libmysqld
|
||||
linked_libmysqld_targets="linked_libmysqld_sources linked_libmysqldex_sources"
|
||||
AC_CONFIG_FILES(libmysqld/Makefile libmysqld/examples/Makefile)
|
||||
# We can't build embedded library without building the server, because
|
||||
# we depend on libmysys, libmystrings, libmyisam, etc.
|
||||
with_server=yes
|
||||
|
@ -2321,6 +2347,7 @@ fi
|
|||
# mysql_config --libmysqld-libs will print out something like
|
||||
# -L/path/to/lib/mysql -lmysqld -lmyisam -lmysys -lmystrings -ldbug ...
|
||||
AC_SUBST([libmysqld_dirs])
|
||||
AC_SUBST([linked_libmysqld_targets])
|
||||
|
||||
# Shall we build the docs?
|
||||
AC_ARG_WITH(docs,
|
||||
|
@ -2347,10 +2374,14 @@ AC_ARG_WITH(man,
|
|||
if test "$with_man" = "yes"
|
||||
then
|
||||
man_dirs="man"
|
||||
man1_files=`ls -1 $srcdir/man/*.1 | sed -e 's;^.*man/;;'`
|
||||
man1_files=`echo $man1_files`
|
||||
else
|
||||
man_dirs=""
|
||||
man1_files=""
|
||||
fi
|
||||
AC_SUBST(man_dirs)
|
||||
AC_SUBST(man1_files)
|
||||
|
||||
# Shall we build the bench code?
|
||||
AC_ARG_WITH(bench,
|
||||
|
@ -2420,7 +2451,7 @@ then
|
|||
readline_basedir="libedit"
|
||||
readline_dir="$readline_topdir/$readline_basedir"
|
||||
readline_link="\$(top_builddir)/cmd-line-utils/libedit/libedit.a"
|
||||
readline_h_ln_cmd="\$(LN) -s \$(top_builddir)/cmd-line-utils/libedit/readline readline"
|
||||
readline_h_ln_cmd="\$(LN) -s \$(top_srcdir)/cmd-line-utils/libedit/readline readline"
|
||||
compile_libedit=yes
|
||||
AC_DEFINE_UNQUOTED(HAVE_HIST_ENTRY, 1)
|
||||
AC_DEFINE_UNQUOTED(USE_LIBEDIT_INTERFACE, 1)
|
||||
|
@ -2430,7 +2461,7 @@ then
|
|||
readline_basedir="readline"
|
||||
readline_dir="$readline_topdir/$readline_basedir"
|
||||
readline_link="\$(top_builddir)/cmd-line-utils/readline/libreadline.a"
|
||||
readline_h_ln_cmd="\$(LN) -s \$(top_builddir)/cmd-line-utils/readline readline"
|
||||
readline_h_ln_cmd="\$(LN) -s \$(top_srcdir)/cmd-line-utils/readline readline"
|
||||
compile_readline=yes
|
||||
AC_DEFINE_UNQUOTED(USE_NEW_READLINE_INTERFACE, 1)
|
||||
else
|
||||
|
@ -2911,6 +2942,7 @@ if test "$THREAD_SAFE_CLIENT" != "no"
|
|||
then
|
||||
sql_client_dirs="libmysql_r $sql_client_dirs"
|
||||
linked_client_targets="$linked_client_targets linked_libmysql_r_sources"
|
||||
AC_CONFIG_FILES(libmysql_r/Makefile)
|
||||
AC_DEFINE([THREAD_SAFE_CLIENT], [1], [Should be client be thread safe])
|
||||
fi
|
||||
|
||||
|
@ -3265,12 +3297,11 @@ AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
|
|||
myisam/Makefile myisammrg/Makefile dnl
|
||||
os2/Makefile os2/include/Makefile os2/include/sys/Makefile dnl
|
||||
man/Makefile BUILD/Makefile vio/Makefile dnl
|
||||
libmysql_r/Makefile libmysqld/Makefile libmysqld/examples/Makefile dnl
|
||||
libmysql/Makefile client/Makefile dnl
|
||||
pstack/Makefile pstack/aout/Makefile sql/Makefile sql/share/Makefile dnl
|
||||
sql-common/Makefile SSL/Makefile dnl
|
||||
dbug/Makefile scripts/Makefile dnl
|
||||
include/Makefile sql-bench/Makefile tools/Makefile dnl
|
||||
include/Makefile sql-bench/Makefile dnl
|
||||
tests/Makefile Docs/Makefile support-files/Makefile dnl
|
||||
support-files/MacOSX/Makefile mysql-test/Makefile dnl
|
||||
netware/Makefile dnl
|
||||
|
|
|
@ -159,7 +159,9 @@ static void get_options(register int *argc,register char **argv[])
|
|||
case 'I':
|
||||
case '?':
|
||||
printf(" %s (Compile errormessage) Ver 1.3\n",progname);
|
||||
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
||||
puts("This software comes with ABSOLUTELY NO WARRANTY. "
|
||||
"This is free software,\n"
|
||||
"and you are welcome to modify and redistribute it under the GPL license.\n");
|
||||
printf("Usage: %s [-?] [-I] [-V] fromfile[s] tofile\n",progname);
|
||||
puts("Options: -Info -Version\n");
|
||||
help=1;
|
||||
|
|
|
@ -167,7 +167,7 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records,
|
|||
ulong found= 0;
|
||||
byte *key, *recpos;
|
||||
uint key_length;
|
||||
uint not_used;
|
||||
uint not_used[2];
|
||||
|
||||
if ((key= tree_search_edge(&keydef->rb_tree, info->parents,
|
||||
&info->last_pos, offsetof(TREE_ELEMENT, left))))
|
||||
|
@ -177,7 +177,7 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records,
|
|||
memcpy(&recpos, key + (*keydef->get_key_length)(keydef,key), sizeof(byte*));
|
||||
key_length= hp_rb_make_key(keydef, info->recbuf, recpos, 0);
|
||||
if (ha_key_cmp(keydef->seg, (uchar*) info->recbuf, (uchar*) key,
|
||||
key_length, SEARCH_FIND | SEARCH_SAME, ¬_used))
|
||||
key_length, SEARCH_FIND | SEARCH_SAME, not_used))
|
||||
{
|
||||
error= 1;
|
||||
DBUG_PRINT("error",("Record in wrong link: key: %d Record: %lx\n",
|
||||
|
|
|
@ -170,9 +170,9 @@ int heap_create(const char *name, uint keys, HP_KEYDEF *keydef,
|
|||
|
||||
static int keys_compare(heap_rb_param *param, uchar *key1, uchar *key2)
|
||||
{
|
||||
uint not_used;
|
||||
uint not_used[2];
|
||||
return ha_key_cmp(param->keyseg, key1, key2, param->key_length,
|
||||
param->search_flag, ¬_used);
|
||||
param->search_flag, not_used);
|
||||
}
|
||||
|
||||
static void init_block(HP_BLOCK *block, uint reclength, ulong min_records,
|
||||
|
|
|
@ -38,23 +38,15 @@ SUPERCLEANFILES = mysql_version.h my_config.h
|
|||
# Some include files that may be moved and patched by configure
|
||||
DISTCLEANFILES = sched.h $(SUPERCLEANFILES)
|
||||
|
||||
clean:
|
||||
clean-local:
|
||||
$(RM) -fr readline
|
||||
distclean:
|
||||
distclean-local:
|
||||
$(RM) -fr readline
|
||||
|
||||
all-local: my_config.h
|
||||
|
||||
# Since we include my_config.h it better exist from the beginning
|
||||
link_sources:
|
||||
$(CP) ../config.h my_config.h
|
||||
-$(RM) -fr readline
|
||||
@readline_h_ln_cmd@
|
||||
|
||||
# Keep automake happy
|
||||
|
||||
my_config.h: ../config.h
|
||||
$(CP) ../config.h my_config.h
|
||||
|
||||
link_sources:
|
||||
-$(RM) -fr readline
|
||||
@readline_h_ln_cmd@
|
||||
|
||||
|
|
|
@ -92,6 +92,9 @@ extern "C" {
|
|||
/* On NetWare, stack grows towards lower address*/
|
||||
#define STACK_DIRECTION -1
|
||||
|
||||
/* On NetWare, we need to set stack size for threads, otherwise default 16K is used */
|
||||
#define NW_THD_STACKSIZE 65536
|
||||
|
||||
/* On NetWare, to fix the problem with the deletion of open files */
|
||||
#define CANT_DELETE_OPEN_FILES 1
|
||||
|
||||
|
@ -116,15 +119,12 @@ extern "C" {
|
|||
/* do not use the extended time in LibC sys\stat.h */
|
||||
#define _POSIX_SOURCE
|
||||
|
||||
/* Kernel call on NetWare that will only yield if our time slice is up */
|
||||
void kYieldIfTimeSliceUp(void);
|
||||
|
||||
/* Some macros for portability */
|
||||
|
||||
#define set_timespec(ABSTIME,SEC) { (ABSTIME).tv_sec=time(NULL)+(SEC); (ABSTIME).tv_nsec=0; }
|
||||
|
||||
/* extra protection against CPU Hogs on NetWare */
|
||||
#define NETWARE_YIELD kYieldIfTimeSliceUp()
|
||||
#define NETWARE_YIELD pthread_yield()
|
||||
/* Screen mode for help texts */
|
||||
#define NETWARE_SET_SCREEN_MODE(A) setscreenmode(A)
|
||||
|
||||
|
|
|
@ -278,10 +278,10 @@ inline double ulonglong2double(ulonglong value)
|
|||
*((T)+4)=(uchar) (((A) >> 32)); }
|
||||
#define int8store(T,A) *((ulonglong *) (T))= (ulonglong) (A)
|
||||
|
||||
#define doubleget(V,M) { *((long *) &V) = *((long*) M); \
|
||||
*(((long *) &V)+1) = *(((long*) M)+1); }
|
||||
#define doublestore(T,V) { *((long *) T) = *((long*) &V); \
|
||||
*(((long *) T)+1) = *(((long*) &V)+1); }
|
||||
#define doubleget(V,M) do { *((long *) &V) = *((long*) M); \
|
||||
*(((long *) &V)+1) = *(((long*) M)+1); } while(0)
|
||||
#define doublestore(T,V) do { *((long *) T) = *((long*) &V); \
|
||||
*(((long *) T)+1) = *(((long*) &V)+1); } while(0)
|
||||
#define float4get(V,M) { *((long *) &(V)) = *((long*) (M)); }
|
||||
#define floatget(V,M) memcpy((byte*) &V,(byte*) (M),sizeof(float))
|
||||
#define floatstore(T,V) memcpy((byte*)(T), (byte*)(&V), sizeof(float))
|
||||
|
|
|
@ -33,7 +33,7 @@ typedef void (*hash_free_key)(void *);
|
|||
|
||||
typedef struct st_hash {
|
||||
uint key_offset,key_length; /* Length of key if const length */
|
||||
uint records,blength,current_record;
|
||||
uint records, blength;
|
||||
uint flags;
|
||||
DYNAMIC_ARRAY array; /* Place for hash_keys */
|
||||
hash_get_key get_key;
|
||||
|
@ -41,6 +41,9 @@ typedef struct st_hash {
|
|||
CHARSET_INFO *charset;
|
||||
} HASH;
|
||||
|
||||
/* A search iterator state */
|
||||
typedef uint HASH_SEARCH_STATE;
|
||||
|
||||
#define hash_init(A,B,C,D,E,F,G,H) _hash_init(A,B,C,D,E,F,G, H CALLER_INFO)
|
||||
my_bool _hash_init(HASH *hash, CHARSET_INFO *charset,
|
||||
uint default_array_elements, uint key_offset,
|
||||
|
@ -49,12 +52,15 @@ my_bool _hash_init(HASH *hash, CHARSET_INFO *charset,
|
|||
void hash_free(HASH *tree);
|
||||
void my_hash_reset(HASH *hash);
|
||||
byte *hash_element(HASH *hash,uint idx);
|
||||
gptr hash_search(HASH *info,const byte *key,uint length);
|
||||
gptr hash_next(HASH *info,const byte *key,uint length);
|
||||
gptr hash_search(const HASH *info, const byte *key, uint length);
|
||||
gptr hash_first(const HASH *info, const byte *key, uint length,
|
||||
HASH_SEARCH_STATE *state);
|
||||
gptr hash_next(const HASH *info, const byte *key, uint length,
|
||||
HASH_SEARCH_STATE *state);
|
||||
my_bool my_hash_insert(HASH *info,const byte *data);
|
||||
my_bool hash_delete(HASH *hash,byte *record);
|
||||
my_bool hash_update(HASH *hash,byte *record,byte *old_key,uint old_key_length);
|
||||
void hash_replace(HASH *hash, uint idx, byte *new_row);
|
||||
void hash_replace(HASH *hash, HASH_SEARCH_STATE *state, byte *new_row);
|
||||
my_bool hash_check(HASH *hash); /* Only in debug library */
|
||||
|
||||
#define hash_clear(H) bzero((char*) (H),sizeof(*(H)))
|
||||
|
|
|
@ -231,6 +231,7 @@ enum ha_base_keytype {
|
|||
#define HA_OPTION_CHECKSUM 32
|
||||
#define HA_OPTION_DELAY_KEY_WRITE 64
|
||||
#define HA_OPTION_NO_PACK_KEYS 128 /* Reserved for MySQL */
|
||||
#define HA_OPTION_CREATE_FROM_ENGINE 256
|
||||
#define HA_OPTION_TEMP_COMPRESS_RECORD ((uint) 16384) /* set by isamchk */
|
||||
#define HA_OPTION_READ_ONLY_DATA ((uint) 32768) /* Set by isamchk */
|
||||
|
||||
|
@ -241,7 +242,6 @@ enum ha_base_keytype {
|
|||
#define HA_CREATE_TMP_TABLE 4
|
||||
#define HA_CREATE_CHECKSUM 8
|
||||
#define HA_CREATE_DELAY_KEY_WRITE 64
|
||||
#define HA_CREATE_FROM_ENGINE 128
|
||||
|
||||
/* Bits in flag to _status */
|
||||
|
||||
|
|
|
@ -63,4 +63,6 @@ extern int ha_key_cmp(register HA_KEYSEG *keyseg, register uchar *a,
|
|||
register uchar *b, uint key_length, uint nextflag,
|
||||
uint *diff_pos);
|
||||
|
||||
extern HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, uchar *a);
|
||||
|
||||
#endif /* _my_handler_h */
|
||||
|
|
|
@ -322,7 +322,9 @@ typedef enum
|
|||
/* Treat NULLs as inequal when collecting statistics (default for 4.1/5.0) */
|
||||
MI_STATS_METHOD_NULLS_NOT_EQUAL,
|
||||
/* Treat NULLs as equal when collecting statistics (like 4.0 did) */
|
||||
MI_STATS_METHOD_NULLS_EQUAL
|
||||
MI_STATS_METHOD_NULLS_EQUAL,
|
||||
/* Ignore NULLs - count only tuples without NULLs in the index components */
|
||||
MI_STATS_METHOD_IGNORE_NULLS
|
||||
} enum_mi_stats_method;
|
||||
|
||||
typedef struct st_mi_check_param
|
||||
|
@ -349,7 +351,14 @@ typedef struct st_mi_check_param
|
|||
int tmpfile_createflag;
|
||||
myf myf_rw;
|
||||
IO_CACHE read_cache;
|
||||
|
||||
/*
|
||||
The next two are used to collect statistics, see update_key_parts for
|
||||
description.
|
||||
*/
|
||||
ulonglong unique_count[MI_MAX_KEY_SEG+1];
|
||||
ulonglong notnull_count[MI_MAX_KEY_SEG+1];
|
||||
|
||||
ha_checksum key_crc[MI_MAX_POSSIBLE_KEY];
|
||||
ulong rec_per_key_part[MI_MAX_KEY_SEG*MI_MAX_POSSIBLE_KEY];
|
||||
void *thd;
|
||||
|
@ -409,7 +418,8 @@ void update_auto_increment_key(MI_CHECK *param, MI_INFO *info,
|
|||
my_bool repair);
|
||||
int update_state_info(MI_CHECK *param, MI_INFO *info,uint update);
|
||||
void update_key_parts(MI_KEYDEF *keyinfo, ulong *rec_per_key_part,
|
||||
ulonglong *unique, ulonglong records);
|
||||
ulonglong *unique, ulonglong *notnull,
|
||||
ulonglong records);
|
||||
int filecopy(MI_CHECK *param, File to,File from,my_off_t start,
|
||||
my_off_t length, const char *type);
|
||||
int movepoint(MI_INFO *info,byte *record,my_off_t oldpos,
|
||||
|
|
|
@ -60,8 +60,8 @@ typedef struct SHA1_CONTEXT
|
|||
|
||||
C_MODE_START
|
||||
|
||||
int sha1_reset( SHA1_CONTEXT* );
|
||||
int sha1_input( SHA1_CONTEXT*, const uint8 *, unsigned int );
|
||||
int sha1_result( SHA1_CONTEXT* , uint8 Message_Digest[SHA1_HASH_SIZE] );
|
||||
int mysql_sha1_reset(SHA1_CONTEXT*);
|
||||
int mysql_sha1_input(SHA1_CONTEXT*, const uint8 *, unsigned int);
|
||||
int mysql_sha1_result(SHA1_CONTEXT* , uint8 Message_Digest[SHA1_HASH_SIZE]);
|
||||
|
||||
C_MODE_END
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
btr.lib: btr0cur.obj btr0btr.obj btr0pcur.obj btr0sea.obj
|
||||
lib -out:..\libs\btr.lib btr0cur.obj btr0btr.obj btr0pcur.obj btr0sea.obj
|
||||
|
||||
btr0cur.obj: btr0cur.c
|
||||
$(CCOM) $(CFL) -c btr0cur.c
|
||||
|
||||
btr0btr.obj: btr0btr.c
|
||||
$(CCOM) $(CFL) -c btr0btr.c
|
||||
|
||||
btr0sea.obj: btr0sea.c
|
||||
$(CCOM) $(CFL) -c btr0sea.c
|
||||
|
||||
btr0pcur.obj: btr0pcur.c
|
||||
$(CCOM) $(CFL) -c btr0pcur.c
|
|
@ -1,20 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
buf.lib: buf0buf.obj buf0lru.obj buf0flu.obj buf0rea.obj
|
||||
lib -out:..\libs\buf.lib buf0buf.obj buf0lru.obj buf0flu.obj buf0rea.obj
|
||||
|
||||
buf0buf.obj: buf0buf.c
|
||||
$(CCOM) $(CFL) -c buf0buf.c
|
||||
|
||||
buf0lru.obj: buf0lru.c
|
||||
$(CCOM) $(CFL) -c buf0lru.c
|
||||
|
||||
buf0flu.obj: buf0flu.c
|
||||
$(CCOM) $(CFL) -c buf0flu.c
|
||||
|
||||
buf0rea.obj: buf0rea.c
|
||||
$(CCOM) $(CFL) -c buf0rea.c
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
data.lib: data0type.obj data0data.obj
|
||||
lib -out:..\libs\data.lib data0type.obj data0data.obj
|
||||
|
||||
data0type.obj: data0type.c
|
||||
$(CCOM) $(CFL) -c data0type.c
|
||||
|
||||
data0data.obj: data0data.c
|
||||
$(CCOM) $(CFL) -c data0data.c
|
||||
|
|
@ -2077,8 +2077,11 @@ dict_foreign_find_index(
|
|||
dict_table_t* table, /* in: table */
|
||||
const char** columns,/* in: array of column names */
|
||||
ulint n_cols, /* in: number of columns */
|
||||
dict_index_t* types_idx)/* in: NULL or an index to whose types the
|
||||
column types must match */
|
||||
dict_index_t* types_idx, /* in: NULL or an index to whose types the
|
||||
column types must match */
|
||||
ibool check_charsets) /* in: whether to check charsets.
|
||||
only has an effect if types_idx !=
|
||||
NULL. */
|
||||
{
|
||||
dict_index_t* index;
|
||||
const char* col_name;
|
||||
|
@ -2107,7 +2110,8 @@ dict_foreign_find_index(
|
|||
|
||||
if (types_idx && !cmp_types_are_equal(
|
||||
dict_index_get_nth_type(index, i),
|
||||
dict_index_get_nth_type(types_idx, i))) {
|
||||
dict_index_get_nth_type(types_idx, i),
|
||||
check_charsets)) {
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -2178,7 +2182,8 @@ dict_foreign_add_to_cache(
|
|||
/*======================*/
|
||||
/* out: DB_SUCCESS or error code */
|
||||
dict_foreign_t* foreign, /* in, own: foreign key constraint */
|
||||
ibool check_types) /* in: TRUE=check type compatibility */
|
||||
ibool check_charsets) /* in: TRUE=check charset
|
||||
compatibility */
|
||||
{
|
||||
dict_table_t* for_table;
|
||||
dict_table_t* ref_table;
|
||||
|
@ -2214,16 +2219,10 @@ dict_foreign_add_to_cache(
|
|||
}
|
||||
|
||||
if (for_in_cache->referenced_table == NULL && ref_table) {
|
||||
dict_index_t* types_idx;
|
||||
if (check_types) {
|
||||
types_idx = for_in_cache->foreign_index;
|
||||
} else {
|
||||
types_idx = NULL;
|
||||
}
|
||||
index = dict_foreign_find_index(ref_table,
|
||||
(const char**) for_in_cache->referenced_col_names,
|
||||
for_in_cache->n_fields,
|
||||
types_idx);
|
||||
for_in_cache->foreign_index, check_charsets);
|
||||
|
||||
if (index == NULL) {
|
||||
dict_foreign_error_report(ef, for_in_cache,
|
||||
|
@ -2247,16 +2246,10 @@ dict_foreign_add_to_cache(
|
|||
}
|
||||
|
||||
if (for_in_cache->foreign_table == NULL && for_table) {
|
||||
dict_index_t* types_idx;
|
||||
if (check_types) {
|
||||
types_idx = for_in_cache->referenced_index;
|
||||
} else {
|
||||
types_idx = NULL;
|
||||
}
|
||||
index = dict_foreign_find_index(for_table,
|
||||
(const char**) for_in_cache->foreign_col_names,
|
||||
for_in_cache->n_fields,
|
||||
types_idx);
|
||||
for_in_cache->referenced_index, check_charsets);
|
||||
|
||||
if (index == NULL) {
|
||||
dict_foreign_error_report(ef, for_in_cache,
|
||||
|
@ -3033,7 +3026,7 @@ col_loop1:
|
|||
/* Try to find an index which contains the columns
|
||||
as the first fields and in the right order */
|
||||
|
||||
index = dict_foreign_find_index(table, column_names, i, NULL);
|
||||
index = dict_foreign_find_index(table, column_names, i, NULL, TRUE);
|
||||
|
||||
if (!index) {
|
||||
mutex_enter(&dict_foreign_err_mutex);
|
||||
|
@ -3298,8 +3291,7 @@ try_find_index:
|
|||
|
||||
if (referenced_table) {
|
||||
index = dict_foreign_find_index(referenced_table,
|
||||
column_names, i,
|
||||
foreign->foreign_index);
|
||||
column_names, i, foreign->foreign_index, TRUE);
|
||||
if (!index) {
|
||||
dict_foreign_free(foreign);
|
||||
mutex_enter(&dict_foreign_err_mutex);
|
||||
|
|
|
@ -1094,7 +1094,7 @@ dict_load_foreign(
|
|||
/* out: DB_SUCCESS or error code */
|
||||
const char* id, /* in: foreign constraint id as a
|
||||
null-terminated string */
|
||||
ibool check_types)/* in: TRUE=check type compatibility */
|
||||
ibool check_charsets)/* in: TRUE=check charset compatibility */
|
||||
{
|
||||
dict_foreign_t* foreign;
|
||||
dict_table_t* sys_foreign;
|
||||
|
@ -1205,7 +1205,7 @@ dict_load_foreign(
|
|||
a new foreign key constraint but loading one from the data
|
||||
dictionary. */
|
||||
|
||||
return(dict_foreign_add_to_cache(foreign, check_types));
|
||||
return(dict_foreign_add_to_cache(foreign, check_charsets));
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
|
@ -1220,7 +1220,8 @@ dict_load_foreigns(
|
|||
/*===============*/
|
||||
/* out: DB_SUCCESS or error code */
|
||||
const char* table_name, /* in: table name */
|
||||
ibool check_types) /* in: TRUE=check type compatibility */
|
||||
ibool check_charsets) /* in: TRUE=check charset
|
||||
compatibility */
|
||||
{
|
||||
btr_pcur_t pcur;
|
||||
mem_heap_t* heap;
|
||||
|
@ -1319,7 +1320,7 @@ loop:
|
|||
|
||||
/* Load the foreign constraint definition to the dictionary cache */
|
||||
|
||||
err = dict_load_foreign(id, check_types);
|
||||
err = dict_load_foreign(id, check_charsets);
|
||||
|
||||
if (err != DB_SUCCESS) {
|
||||
btr_pcur_close(&pcur);
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
dict.lib: dict0dict.obj dict0boot.obj dict0load.obj dict0mem.obj dict0crea.obj
|
||||
lib -out:..\libs\dict.lib dict0dict.obj dict0boot.obj dict0load.obj dict0mem.obj dict0crea.obj
|
||||
|
||||
dict0dict.obj: dict0dict.c
|
||||
$(CCOM) $(CFL) -c dict0dict.c
|
||||
|
||||
dict0boot.obj: dict0boot.c
|
||||
$(CCOM) $(CFL) -c dict0boot.c
|
||||
|
||||
dict0mem.obj: dict0mem.c
|
||||
$(CCOM) $(CFL) -c dict0mem.c
|
||||
|
||||
dict0crea.obj: dict0crea.c
|
||||
$(CCOM) $(CFL) -c dict0crea.c
|
||||
|
||||
dict0load.obj: dict0load.c
|
||||
$(CCOM) $(CFL) -c dict0load.c
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
dyn.lib: dyn0dyn.obj makefile
|
||||
lib -out:..\libs\dyn.lib dyn0dyn.obj
|
||||
|
||||
dyn0dyn.obj: dyn0dyn.c
|
||||
$(CCOM) $(CFL) -c dyn0dyn.c
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
eval.lib: eval0eval.obj eval0proc.obj
|
||||
lib -out:..\libs\eval.lib eval0eval.obj eval0proc.obj
|
||||
|
||||
eval0eval.obj: eval0eval.c
|
||||
$(CCOM) $(CFL) -c eval0eval.c
|
||||
|
||||
eval0proc.obj: eval0proc.c
|
||||
$(CCOM) $(CFL) -c eval0proc.c
|
|
@ -1,10 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
fil.lib: fil0fil.obj
|
||||
lib -out:..\libs\fil.lib fil0fil.obj
|
||||
|
||||
fil0fil.obj: fil0fil.c
|
||||
$(CCOM) $(CFL) -c fil0fil.c
|
||||
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
fsp.lib: fsp0fsp.obj
|
||||
lib -out:..\libs\fsp.lib fsp0fsp.obj
|
||||
|
||||
fsp0fsp.obj: fsp0fsp.c
|
||||
$(CCOM) $(CFL) -c fsp0fsp.c
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
fut.lib: fut0lst.obj fut0fut.obj
|
||||
lib -out:..\libs\fut.lib fut0lst.obj fut0fut.obj
|
||||
|
||||
fut0lst.obj: fut0lst.c
|
||||
$(CCOM) $(CFL) -c fut0lst.c
|
||||
|
||||
fut0fut.obj: fut0fut.c
|
||||
$(CCOM) $(CFL) -c fut0fut.c
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
ha.lib: ha0ha.obj hash0hash.obj
|
||||
lib -out:..\libs\ha.lib ha0ha.obj hash0hash.obj
|
||||
|
||||
ha0ha.obj: ha0ha.c
|
||||
$(CCOM) $(CFL) -c ha0ha.c
|
||||
|
||||
hash0hash.obj: hash0hash.c
|
||||
$(CCOM) $(CFL) -c hash0hash.c
|
|
@ -1,7 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
ibuf.lib: ibuf0ibuf.obj
|
||||
lib -out:..\libs\ibuf.lib ibuf0ibuf.obj
|
||||
|
||||
ibuf0ibuf.obj: ibuf0ibuf.c
|
||||
$(CCOM) $(CFL) -c ibuf0ibuf.c
|
|
@ -28,7 +28,7 @@ noinst_HEADERS = btr0btr.h btr0btr.ic btr0cur.h btr0cur.ic \
|
|||
ha0ha.h ha0ha.ic hash0hash.h hash0hash.ic \
|
||||
ibuf0ibuf.h ibuf0ibuf.ic ibuf0types.h lock0lock.h \
|
||||
lock0lock.ic lock0types.h log0log.h log0log.ic log0recv.h \
|
||||
log0recv.ic mach0data.h mach0data.ic makefilewin.i \
|
||||
log0recv.ic mach0data.h mach0data.ic \
|
||||
mem0dbg.h mem0dbg.ic mem0mem.h mem0mem.ic mem0pool.h \
|
||||
mem0pool.ic mtr0log.h mtr0log.ic mtr0mtr.h mtr0mtr.ic \
|
||||
mtr0types.h os0file.h os0proc.h os0proc.ic \
|
||||
|
|
|
@ -197,7 +197,8 @@ dict_foreign_add_to_cache(
|
|||
/*======================*/
|
||||
/* out: DB_SUCCESS or error code */
|
||||
dict_foreign_t* foreign, /* in, own: foreign key constraint */
|
||||
ibool check_types); /* in: TRUE=check type compatibility */
|
||||
ibool check_charsets);/* in: TRUE=check charset
|
||||
compatibility */
|
||||
/*************************************************************************
|
||||
Checks if a table is referenced by foreign keys. */
|
||||
|
||||
|
|
|
@ -82,7 +82,8 @@ dict_load_foreigns(
|
|||
/*===============*/
|
||||
/* out: DB_SUCCESS or error code */
|
||||
const char* table_name, /* in: table name */
|
||||
ibool check_types); /* in: TRUE=check type compatibility */
|
||||
ibool check_charsets);/* in: TRUE=check charsets
|
||||
compatibility */
|
||||
/************************************************************************
|
||||
Prints to the standard output information on all tables found in the data
|
||||
dictionary system table. */
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
# File included in all makefiles of the database
|
||||
# (c) Innobase Oy 1995 - 2000
|
||||
|
||||
CCOM=cl
|
||||
|
||||
# Flags for the debug version
|
||||
#CFL= -MTd -Za -Zi -W4 -WX -F8192 -D "WIN32"
|
||||
#CFLN = -MTd -Zi -W4 -F8192 -D "WIN32"
|
||||
#CFLW = -MTd -Zi -W3 -WX -F8192 -D "WIN32"
|
||||
#LFL =
|
||||
|
||||
# Flags for the fast version
|
||||
#CFL= -MT -Zi -Og -O2 -W3 -WX -D "WIN32"
|
||||
#CFLN = -MT -Zi -Og -O2 -W3 -D "WIN32"
|
||||
#CFLW = -MT -Zi -Og -O2 -W3 -WX -D "WIN32"
|
||||
#LFL =
|
||||
|
||||
# Flags for the fast debug version
|
||||
CFL= -MTd -Zi -W3 -WX -F8192 -D "WIN32"
|
||||
CFLN = -MTd -Zi -W3 -F8192 -D "WIN32"
|
||||
CFLW = -MTd -Zi -W3 -WX -F8192 -D "WIN32"
|
||||
LFL = /link/NODEFAULTLIB:LIBCMT
|
||||
|
||||
# Flags for the profiler version
|
||||
#CFL= -MT -Zi -Og -O2 -W3 -WX -D "WIN32"
|
||||
#CFLN = -MT -Zi -Og -O2 -WX -D "WIN32"
|
||||
#CFLW = -MT -Zi -Og -O2 -W3 -WX -D "WIN32"
|
||||
#LFL= -link -PROFILE
|
||||
|
||||
# Flags for the fast version without debug info (= the production version)
|
||||
#CFL= -MT -Og -O2 -G6 -W3 -WX -D "WIN32"
|
||||
#CFLN = -MT -Og -O2 -G6 -W3 -D "WIN32"
|
||||
#CFLW = -MT -Og -O2 -G6 -W3 -WX -D "WIN32"
|
||||
#LFL =
|
|
@ -86,9 +86,10 @@ log. */
|
|||
#define OS_FILE_NOT_FOUND 71
|
||||
#define OS_FILE_DISK_FULL 72
|
||||
#define OS_FILE_ALREADY_EXISTS 73
|
||||
#define OS_FILE_AIO_RESOURCES_RESERVED 74 /* wait for OS aio resources
|
||||
#define OS_FILE_PATH_ERROR 74
|
||||
#define OS_FILE_AIO_RESOURCES_RESERVED 75 /* wait for OS aio resources
|
||||
to become available again */
|
||||
#define OS_FILE_ERROR_NOT_SPECIFIED 75
|
||||
#define OS_FILE_ERROR_NOT_SPECIFIED 76
|
||||
|
||||
/* Types for aio operations */
|
||||
#define OS_FILE_READ 10
|
||||
|
@ -182,7 +183,7 @@ Creates a temporary file. */
|
|||
FILE*
|
||||
os_file_create_tmpfile(void);
|
||||
/*========================*/
|
||||
/* out: temporary file handle (never NULL) */
|
||||
/* out: temporary file handle, or NULL on error */
|
||||
/***************************************************************************
|
||||
The os_file_opendir() function opens a directory stream corresponding to the
|
||||
directory named by the dirname argument. The directory stream is positioned
|
||||
|
|
|
@ -24,7 +24,8 @@ cmp_types_are_equal(
|
|||
/* out: TRUE if the types are considered
|
||||
equal in comparisons */
|
||||
dtype_t* type1, /* in: type 1 */
|
||||
dtype_t* type2); /* in: type 2 */
|
||||
dtype_t* type2, /* in: type 2 */
|
||||
ibool check_charsets); /* in: whether to check charsets */
|
||||
/*****************************************************************
|
||||
This function is used to compare two data fields for which we know the
|
||||
data type. */
|
||||
|
|
|
@ -34,6 +34,12 @@ extern ibool srv_lower_case_table_names;
|
|||
extern mutex_t srv_monitor_file_mutex;
|
||||
/* Temporary file for innodb monitor output */
|
||||
extern FILE* srv_monitor_file;
|
||||
/* Mutex for locking srv_dict_tmpfile.
|
||||
This mutex has a very high rank; threads reserving it should not
|
||||
be holding any InnoDB latches. */
|
||||
extern mutex_t srv_dict_tmpfile_mutex;
|
||||
/* Temporary file for output from the data dictionary */
|
||||
extern FILE* srv_dict_tmpfile;
|
||||
|
||||
/* Server parameters which are read from the initfile */
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
lock.lib: lock0lock.obj
|
||||
lib -out:..\libs\lock.lib lock0lock.obj
|
||||
|
||||
lock0lock.obj: lock0lock.c
|
||||
$(CCOM) $(CFL) -c lock0lock.c
|
|
@ -1,10 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
log.lib: log0log.obj log0recv.obj
|
||||
lib -out:..\libs\log.lib log0log.obj log0recv.obj
|
||||
|
||||
log0log.obj: log0log.c
|
||||
$(CCOM) $(CFL) -c log0log.c
|
||||
|
||||
log0recv.obj: log0recv.c
|
||||
$(CCOM) $(CFL) -c log0recv.c
|
|
@ -1,9 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
mach.lib: mach0data.obj
|
||||
lib -out:..\libs\mach.lib mach0data.obj
|
||||
|
||||
mach0data.obj: mach0data.c
|
||||
$(CCOM) $(CFLN) -c mach0data.c
|
||||
|
||||
|
|
@ -1,164 +0,0 @@
|
|||
doall: del_libs pb_all os.lib ut.lib mach.lib sync.lib mem.lib dyn.lib ha.lib com.lib thr.lib srv.lib fil.lib buf.lib log.lib mtr.lib log.lib fut.lib fsp.lib dict.lib data.lib rem.lib page.lib btr.lib ibuf.lib usr.lib que.lib trx.lib lock.lib read.lib row.lib pars.lib eval.lib ib_odbc.lib
|
||||
|
||||
del_libs:
|
||||
cd libs
|
||||
del *.lib
|
||||
cd ..
|
||||
|
||||
pb_all:
|
||||
pb_all
|
||||
|
||||
os.lib:
|
||||
cd os
|
||||
remake
|
||||
cd ..
|
||||
|
||||
ut.lib:
|
||||
cd ut
|
||||
remake
|
||||
cd ..
|
||||
|
||||
mach.lib:
|
||||
cd mach
|
||||
remake
|
||||
cd ..
|
||||
|
||||
sync.lib:
|
||||
cd sync
|
||||
remake
|
||||
cd ..
|
||||
|
||||
mem.lib:
|
||||
cd mem
|
||||
remake
|
||||
cd ..
|
||||
|
||||
dyn.lib:
|
||||
cd dyn
|
||||
remake
|
||||
cd ..
|
||||
|
||||
ha.lib:
|
||||
cd ha
|
||||
remake
|
||||
cd ..
|
||||
|
||||
com.lib:
|
||||
cd com
|
||||
remake
|
||||
cd ..
|
||||
|
||||
thr.lib:
|
||||
cd thr
|
||||
remake
|
||||
cd ..
|
||||
|
||||
srv.lib:
|
||||
cd srv
|
||||
remake
|
||||
cd ..
|
||||
|
||||
fil.lib:
|
||||
cd fil
|
||||
remake
|
||||
cd ..
|
||||
|
||||
buf.lib:
|
||||
cd buf
|
||||
remake
|
||||
cd ..
|
||||
|
||||
log.lib:
|
||||
cd log
|
||||
remake
|
||||
cd ..
|
||||
|
||||
mtr.lib:
|
||||
cd mtr
|
||||
remake
|
||||
cd ..
|
||||
|
||||
fut.lib:
|
||||
cd fut
|
||||
remake
|
||||
cd ..
|
||||
|
||||
fsp.lib:
|
||||
cd fsp
|
||||
remake
|
||||
cd ..
|
||||
|
||||
dict.lib:
|
||||
cd dict
|
||||
remake
|
||||
cd ..
|
||||
|
||||
data.lib:
|
||||
cd data
|
||||
remake
|
||||
cd ..
|
||||
|
||||
rem.lib:
|
||||
cd rem
|
||||
remake
|
||||
cd ..
|
||||
|
||||
page.lib:
|
||||
cd page
|
||||
remake
|
||||
cd ..
|
||||
|
||||
btr.lib:
|
||||
cd btr
|
||||
remake
|
||||
cd ..
|
||||
|
||||
ibuf.lib:
|
||||
cd ibuf
|
||||
remake
|
||||
cd ..
|
||||
|
||||
usr.lib:
|
||||
cd usr
|
||||
remake
|
||||
cd ..
|
||||
|
||||
que.lib:
|
||||
cd que
|
||||
remake
|
||||
cd ..
|
||||
|
||||
trx.lib:
|
||||
cd trx
|
||||
remake
|
||||
cd ..
|
||||
|
||||
lock.lib:
|
||||
cd lock
|
||||
remake
|
||||
cd ..
|
||||
|
||||
read.lib:
|
||||
cd read
|
||||
remake
|
||||
cd ..
|
||||
|
||||
row.lib:
|
||||
cd row
|
||||
remake
|
||||
cd ..
|
||||
|
||||
pars.lib:
|
||||
cd pars
|
||||
remake
|
||||
cd ..
|
||||
|
||||
eval.lib:
|
||||
cd eval
|
||||
remake
|
||||
cd ..
|
||||
|
||||
ib_odbc.lib:
|
||||
cd odbc
|
||||
remake
|
||||
cd ..
|
|
@ -1,10 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
mem.lib: mem0mem.obj mem0pool.obj makefile
|
||||
lib -out:..\libs\mem.lib mem0mem.obj mem0pool.obj
|
||||
|
||||
mem0mem.obj: mem0mem.c mem0dbg.c
|
||||
$(CCOM) $(CFL) -c mem0mem.c
|
||||
|
||||
mem0pool.obj: mem0pool.c
|
||||
$(CCOM) $(CFL) -c mem0pool.c
|
|
@ -1,14 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
mtr.lib: mtr0mtr.obj mtr0log.obj
|
||||
lib -out:..\libs\mtr.lib mtr0mtr.obj mtr0log.obj
|
||||
|
||||
mtr0mtr.obj: mtr0mtr.c
|
||||
$(CCOM) $(CFL) -c mtr0mtr.c
|
||||
|
||||
mtr0log.obj: mtr0log.c
|
||||
$(CCOM) $(CFL) -c mtr0log.c
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
# Example mysql config file.
|
||||
# Copy this file to c:\my.cnf to set global options
|
||||
#
|
||||
# One can use all long options that the program supports.
|
||||
# Run the program with --help to get a list of available options
|
||||
|
||||
# This will be passed to all mysql clients
|
||||
[client]
|
||||
#password=my_password
|
||||
port=3306
|
||||
#socket=MySQL
|
||||
|
||||
# Here is entries for some specific programs
|
||||
# The following values assume you have at least 32M ram
|
||||
|
||||
# The MySQL server
|
||||
[mysqld]
|
||||
port=3306
|
||||
#socket=MySQL
|
||||
skip-locking
|
||||
default-character-set=latin1
|
||||
set-variable = key_buffer=2M
|
||||
set-variable = max_allowed_packet=1M
|
||||
set-variable = thread_stack=128K
|
||||
set-variable = flush_time=1800
|
||||
|
||||
innobase_data_home_dir = e:\ibdata\
|
||||
innobase_data_file_path = ibdata1:25M;ibdata2:37M;ibdata3:100M;ibdata4:300M
|
||||
set-variable = innobase_mirrored_log_groups=1
|
||||
innobase_log_group_home_dir = e:\iblogs\
|
||||
set-variable = innobase_log_files_in_group=3
|
||||
set-variable = innobase_log_file_size=5M
|
||||
set-variable = innobase_log_buffer_size=8M
|
||||
innobase_flush_log_at_trx_commit=1
|
||||
innobase_log_arch_dir = e:\iblogs\
|
||||
innobase_log_archive=0
|
||||
set-variable = innobase_buffer_pool_size=16M
|
||||
set-variable = innobase_additional_mem_pool_size=2M
|
||||
set-variable = innobase_file_io_threads=4
|
||||
set-variable = innobase_lock_wait_timeout=50
|
||||
|
||||
|
||||
# Uncomment the following row if you move the MySQL distribution to another
|
||||
# location
|
||||
#basedir = d:/mysql/
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
set-variable = max_allowed_packet=16M
|
||||
|
||||
[mysql]
|
||||
no-auto-rehash
|
||||
|
||||
[isamchk]
|
||||
set-variable= key=16M
|
||||
|
||||
[client_fltk]
|
||||
help_file= c:\mysql\sql_client\MySQL.help
|
||||
client_file= c:\mysql\MySQL.options
|
||||
history_length=20
|
||||
database = test
|
||||
queries_root= c:\mysql\queries
|
||||
last_database_file= c:\mysql\lastdb
|
|
@ -1,17 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
os.lib: os0sync.obj os0thread.obj os0proc.obj os0file.obj
|
||||
lib -out:..\libs\os.lib os0sync.obj os0thread.obj os0proc.obj os0file.obj
|
||||
|
||||
os0sync.obj: os0sync.c
|
||||
$(CCOM) $(CFLW) -c os0sync.c
|
||||
|
||||
os0thread.obj: os0thread.c
|
||||
$(CCOM) $(CFLW) -c os0thread.c
|
||||
|
||||
os0proc.obj: os0proc.c
|
||||
$(CCOM) $(CFLW) -c os0proc.c
|
||||
|
||||
os0file.obj: os0file.c
|
||||
$(CCOM) $(CFLW) -c os0file.c
|
||||
|
|
@ -303,6 +303,8 @@ os_file_get_last_error(
|
|||
return(OS_FILE_NOT_FOUND);
|
||||
} else if (err == EEXIST) {
|
||||
return(OS_FILE_ALREADY_EXISTS);
|
||||
} else if (err == EXDEV || err == ENOTDIR || err == EISDIR) {
|
||||
return(OS_FILE_PATH_ERROR);
|
||||
} else {
|
||||
return(100 + err);
|
||||
}
|
||||
|
@ -352,7 +354,8 @@ os_file_handle_error(
|
|||
|
||||
return(TRUE);
|
||||
|
||||
} else if (err == OS_FILE_ALREADY_EXISTS) {
|
||||
} else if (err == OS_FILE_ALREADY_EXISTS
|
||||
|| err == OS_FILE_PATH_ERROR) {
|
||||
|
||||
return(FALSE);
|
||||
} else {
|
||||
|
@ -456,7 +459,8 @@ os_file_handle_error_no_exit(
|
|||
|
||||
return(TRUE);
|
||||
|
||||
} else if (err == OS_FILE_ALREADY_EXISTS) {
|
||||
} else if (err == OS_FILE_ALREADY_EXISTS
|
||||
|| err == OS_FILE_PATH_ERROR) {
|
||||
|
||||
return(FALSE);
|
||||
} else {
|
||||
|
|
|
@ -147,6 +147,15 @@ os_thread_create(
|
|||
"InnoDB: Error: pthread_attr_setstacksize returned %d\n", ret);
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
#ifdef __NETWARE__
|
||||
ret = pthread_attr_setstacksize(&attr,
|
||||
(size_t) NW_THD_STACKSIZE);
|
||||
if (ret) {
|
||||
fprintf(stderr,
|
||||
"InnoDB: Error: pthread_attr_setstacksize returned %d\n", ret);
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
os_mutex_enter(os_sync_mutex);
|
||||
os_thread_count++;
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
page.lib: page0page.obj page0cur.obj
|
||||
lib -out:..\libs\page.lib page0page.obj page0cur.obj
|
||||
|
||||
page0page.obj: page0page.c
|
||||
$(CCOM) $(CFL) -c page0page.c
|
||||
|
||||
page0cur.obj: page0cur.c
|
||||
$(CCOM) $(CFL) -c page0cur.c
|
||||
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
pars.lib: pars0grm.obj lexyy.obj pars0pars.obj pars0opt.obj pars0sym.obj rename_and_copy
|
||||
lib -out:..\libs\pars.lib pars0grm.obj lexyy.obj pars0pars.obj pars0opt.obj pars0sym.obj
|
||||
|
||||
pars0grm.obj: pars0grm.y
|
||||
bs pars0grm.y
|
||||
$(CCOM) $(CFLW) -c pars0grm.c
|
||||
|
||||
rename_and_copy:
|
||||
ren pars0grm.h pars0grm.h
|
||||
copy pars0grm.h ..\include
|
||||
|
||||
lexyy.obj: pars0lex.l
|
||||
fl pars0lex.l
|
||||
$(CCOM) $(CFLN) -c lexyy.c
|
||||
|
||||
pars0pars.obj: pars0pars.c
|
||||
$(CCOM) $(CFL) -c pars0pars.c
|
||||
|
||||
pars0opt.obj: pars0opt.c
|
||||
$(CCOM) $(CFL) -c pars0opt.c
|
||||
|
||||
pars0sym.obj: pars0sym.c
|
||||
$(CCOM) $(CFL) -c pars0sym.c
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
que.lib: que0que.obj
|
||||
lib -out:..\libs\que.lib que0que.obj
|
||||
|
||||
que0que.obj: que0que.c
|
||||
$(CCOM) $(CFL) -c que0que.c
|
|
@ -1,7 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
read.lib: read0read.obj
|
||||
lib -out:..\libs\read.lib read0read.obj
|
||||
|
||||
read0read.obj: read0read.c
|
||||
$(CCOM) $(CFL) -c read0read.c
|
|
@ -1,12 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
rem.lib: rem0rec.obj rem0cmp.obj
|
||||
lib -out:..\libs\rem.lib rem0rec.obj rem0cmp.obj
|
||||
|
||||
rem0rec.obj: rem0rec.c
|
||||
$(CCOM) $(CFL) -c rem0rec.c
|
||||
|
||||
rem0cmp.obj: rem0cmp.c
|
||||
$(CCOM) $(CFL) -c rem0cmp.c
|
||||
|
||||
|
|
@ -98,7 +98,8 @@ cmp_types_are_equal(
|
|||
/* out: TRUE if the types are considered
|
||||
equal in comparisons */
|
||||
dtype_t* type1, /* in: type 1 */
|
||||
dtype_t* type2) /* in: type 2 */
|
||||
dtype_t* type2, /* in: type 2 */
|
||||
ibool check_charsets) /* in: whether to check charsets */
|
||||
{
|
||||
if (dtype_is_non_binary_string_type(type1->mtype, type1->prtype)
|
||||
&& dtype_is_non_binary_string_type(type2->mtype, type2->prtype)) {
|
||||
|
@ -106,12 +107,12 @@ cmp_types_are_equal(
|
|||
/* Both are non-binary string types: they can be compared if
|
||||
and only if the charset-collation is the same */
|
||||
|
||||
if (dtype_get_charset_coll(type1->prtype)
|
||||
== dtype_get_charset_coll(type2->prtype)) {
|
||||
if (check_charsets) {
|
||||
return(dtype_get_charset_coll(type1->prtype)
|
||||
== dtype_get_charset_coll(type2->prtype));
|
||||
} else {
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
if (dtype_is_binary_string_type(type1->mtype, type1->prtype)
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
row.lib: row0mysql.obj row0upd.obj row0sel.obj row0umod.obj row0uins.obj row0ins.obj row0upd.obj row0undo.obj row0purge.obj row0vers.obj row0row.obj
|
||||
lib -out:..\libs\row.lib row0mysql.obj row0sel.obj row0umod.obj row0uins.obj row0ins.obj row0upd.obj row0undo.obj row0purge.obj row0vers.obj row0row.obj
|
||||
|
||||
row0mysql.obj: row0mysql.c
|
||||
$(CCOM) $(CFL) -c row0mysql.c
|
||||
|
||||
row0ins.obj: row0ins.c
|
||||
$(CCOM) $(CFL) -c row0ins.c
|
||||
|
||||
row0sel.obj: row0sel.c
|
||||
$(CCOM) $(CFL) -c row0sel.c
|
||||
|
||||
row0upd.obj: row0upd.c
|
||||
$(CCOM) $(CFL) -c row0upd.c
|
||||
|
||||
row0undo.obj: row0undo.c
|
||||
$(CCOM) $(CFL) -c row0undo.c
|
||||
|
||||
row0purge.obj: row0purge.c
|
||||
$(CCOM) $(CFL) -c row0purge.c
|
||||
|
||||
row0row.obj: row0row.c
|
||||
$(CCOM) $(CFL) -c row0row.c
|
||||
|
||||
row0vers.obj: row0vers.c
|
||||
$(CCOM) $(CFL) -c row0vers.c
|
||||
|
||||
row0umod.obj: row0umod.c
|
||||
$(CCOM) $(CFL) -c row0umod.c
|
||||
|
||||
row0uins.obj: row0uins.c
|
||||
$(CCOM) $(CFL) -c row0uins.c
|
|
@ -522,18 +522,48 @@ row_ins_cascade_calc_update_vec(
|
|||
&& ufield->new_val.len
|
||||
< dtype_get_fixed_size(type)) {
|
||||
|
||||
ulint cset;
|
||||
|
||||
ufield->new_val.data =
|
||||
mem_heap_alloc(heap,
|
||||
dtype_get_fixed_size(type));
|
||||
ufield->new_val.len =
|
||||
dtype_get_fixed_size(type);
|
||||
ut_a(dtype_get_pad_char(type)
|
||||
!= ULINT_UNDEFINED);
|
||||
|
||||
memset(ufield->new_val.data,
|
||||
(byte)dtype_get_pad_char(type),
|
||||
dtype_get_fixed_size(type));
|
||||
ut_memcpy(ufield->new_val.data,
|
||||
/* Handle UCS2 strings differently.
|
||||
As no new collations will be
|
||||
introduced in 4.1, we hardcode the
|
||||
charset-collation codes here.
|
||||
In 5.0, the logic is based on
|
||||
mbminlen. */
|
||||
cset = dtype_get_charset_coll(
|
||||
dtype_get_prtype(type));
|
||||
|
||||
if (cset == 35/*ucs2_general_ci*/
|
||||
|| cset == 90/*ucs2_bin*/
|
||||
|| (cset >= 128/*ucs2_unicode_ci*/
|
||||
&& cset <= 144
|
||||
/*ucs2_persian_ci*/)) {
|
||||
/* space=0x0020 */
|
||||
ulint i;
|
||||
for (i = 0;
|
||||
i < ufield->new_val.len;
|
||||
i += 2) {
|
||||
mach_write_to_2(((byte*)
|
||||
ufield->new_val.data)
|
||||
+ i, 0x0020);
|
||||
}
|
||||
} else {
|
||||
ut_a(dtype_get_pad_char(type)
|
||||
!= ULINT_UNDEFINED);
|
||||
|
||||
memset(ufield->new_val.data,
|
||||
(byte)dtype_get_pad_char(
|
||||
type),
|
||||
ufield->new_val.len);
|
||||
}
|
||||
|
||||
memcpy(ufield->new_val.data,
|
||||
parent_ufield->new_val.data,
|
||||
parent_ufield->new_val.len);
|
||||
}
|
||||
|
|
|
@ -1804,7 +1804,7 @@ row_table_add_foreign_constraints(
|
|||
|
||||
if (err == DB_SUCCESS) {
|
||||
/* Check that also referencing constraints are ok */
|
||||
err = dict_load_foreigns(name, trx->check_foreigns);
|
||||
err = dict_load_foreigns(name, TRUE);
|
||||
}
|
||||
|
||||
if (err != DB_SUCCESS) {
|
||||
|
@ -2963,7 +2963,8 @@ row_rename_table_for_mysql(
|
|||
mem_heap_t* heap = NULL;
|
||||
const char** constraints_to_drop = NULL;
|
||||
ulint n_constraints_to_drop = 0;
|
||||
ibool recovering_temp_table = FALSE;
|
||||
ibool recovering_temp_table = FALSE;
|
||||
ibool old_is_tmp, new_is_tmp;
|
||||
ulint len;
|
||||
ulint i;
|
||||
ibool success;
|
||||
|
@ -3003,6 +3004,9 @@ row_rename_table_for_mysql(
|
|||
trx->op_info = "renaming table";
|
||||
trx_start_if_not_started(trx);
|
||||
|
||||
old_is_tmp = row_is_mysql_tmp_table_name(old_name);
|
||||
new_is_tmp = row_is_mysql_tmp_table_name(new_name);
|
||||
|
||||
if (row_mysql_is_recovered_tmp_table(new_name)) {
|
||||
|
||||
recovering_temp_table = TRUE;
|
||||
|
@ -3047,7 +3051,7 @@ row_rename_table_for_mysql(
|
|||
len = (sizeof str1) + (sizeof str2) + (sizeof str3) + (sizeof str5) - 4
|
||||
+ ut_strlenq(new_name, '\'') + ut_strlenq(old_name, '\'');
|
||||
|
||||
if (row_is_mysql_tmp_table_name(new_name)) {
|
||||
if (new_is_tmp) {
|
||||
db_name_len = dict_get_db_name_len(old_name) + 1;
|
||||
|
||||
/* MySQL is doing an ALTER TABLE command and it renames the
|
||||
|
@ -3200,7 +3204,7 @@ row_rename_table_for_mysql(
|
|||
the table is stored in a single-table tablespace */
|
||||
|
||||
success = dict_table_rename_in_cache(table, new_name,
|
||||
!row_is_mysql_tmp_table_name(new_name));
|
||||
!new_is_tmp);
|
||||
if (!success) {
|
||||
trx->error_state = DB_SUCCESS;
|
||||
trx_general_rollback_for_mysql(trx, FALSE, NULL);
|
||||
|
@ -3217,19 +3221,16 @@ row_rename_table_for_mysql(
|
|||
goto funct_exit;
|
||||
}
|
||||
|
||||
err = dict_load_foreigns(new_name, trx->check_foreigns);
|
||||
/* We only want to switch off some of the type checking in
|
||||
an ALTER, not in a RENAME. */
|
||||
|
||||
err = dict_load_foreigns(new_name,
|
||||
old_is_tmp ? trx->check_foreigns : TRUE);
|
||||
|
||||
if (row_is_mysql_tmp_table_name(old_name)) {
|
||||
if (err != DB_SUCCESS) {
|
||||
ut_print_timestamp(stderr);
|
||||
|
||||
/* MySQL is doing an ALTER TABLE command and it
|
||||
renames the created temporary table to the name
|
||||
of the original table. In the ALTER TABLE we maybe
|
||||
created some FOREIGN KEY constraints for the temporary
|
||||
table. But we want to load also the foreign key
|
||||
constraint definitions for the original table name. */
|
||||
|
||||
if (err != DB_SUCCESS) {
|
||||
ut_print_timestamp(stderr);
|
||||
if (old_is_tmp) {
|
||||
fputs(" InnoDB: Error: in ALTER TABLE ",
|
||||
stderr);
|
||||
ut_print_name(stderr, trx, new_name);
|
||||
|
@ -3237,36 +3238,23 @@ row_rename_table_for_mysql(
|
|||
"InnoDB: has or is referenced in foreign key constraints\n"
|
||||
"InnoDB: which are not compatible with the new table definition.\n",
|
||||
stderr);
|
||||
|
||||
ut_a(dict_table_rename_in_cache(table,
|
||||
old_name, FALSE));
|
||||
trx->error_state = DB_SUCCESS;
|
||||
trx_general_rollback_for_mysql(trx, FALSE,
|
||||
NULL);
|
||||
trx->error_state = DB_SUCCESS;
|
||||
}
|
||||
} else {
|
||||
if (err != DB_SUCCESS) {
|
||||
|
||||
ut_print_timestamp(stderr);
|
||||
|
||||
} else {
|
||||
fputs(
|
||||
" InnoDB: Error: in RENAME TABLE table ",
|
||||
stderr);
|
||||
ut_print_name(stderr, trx, new_name);
|
||||
fputs("\n"
|
||||
"InnoDB: is referenced in foreign key constraints\n"
|
||||
"InnoDB: which are not compatible with the new table definition.\n",
|
||||
"InnoDB: is referenced in foreign key constraints\n"
|
||||
"InnoDB: which are not compatible with the new table definition.\n",
|
||||
stderr);
|
||||
|
||||
ut_a(dict_table_rename_in_cache(table,
|
||||
old_name, FALSE));
|
||||
|
||||
trx->error_state = DB_SUCCESS;
|
||||
trx_general_rollback_for_mysql(trx, FALSE,
|
||||
NULL);
|
||||
trx->error_state = DB_SUCCESS;
|
||||
}
|
||||
|
||||
ut_a(dict_table_rename_in_cache(table,
|
||||
old_name, FALSE));
|
||||
trx->error_state = DB_SUCCESS;
|
||||
trx_general_rollback_for_mysql(trx, FALSE,
|
||||
NULL);
|
||||
trx->error_state = DB_SUCCESS;
|
||||
}
|
||||
}
|
||||
funct_exit:
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
srv.lib: srv0srv.obj srv0que.obj srv0start.obj
|
||||
lib -out:..\libs\srv.lib srv0srv.obj srv0que.obj srv0start.obj
|
||||
|
||||
srv0srv.obj: srv0srv.c
|
||||
$(CCOM) $(CFL) -c srv0srv.c
|
||||
|
||||
srv0que.obj: srv0que.c
|
||||
$(CCOM) $(CFL) -c srv0que.c
|
||||
|
||||
srv0start.obj: srv0start.c
|
||||
$(CCOM) $(CFL) -c srv0start.c
|
||||
|
||||
|
|
@ -334,6 +334,12 @@ mutex_t srv_innodb_monitor_mutex;
|
|||
mutex_t srv_monitor_file_mutex;
|
||||
/* Temporary file for innodb monitor output */
|
||||
FILE* srv_monitor_file;
|
||||
/* Mutex for locking srv_dict_tmpfile.
|
||||
This mutex has a very high rank; threads reserving it should not
|
||||
be holding any InnoDB latches. */
|
||||
mutex_t srv_dict_tmpfile_mutex;
|
||||
/* Temporary file for output from the data dictionary */
|
||||
FILE* srv_dict_tmpfile;
|
||||
|
||||
ulint srv_main_thread_process_no = 0;
|
||||
ulint srv_main_thread_id = 0;
|
||||
|
|
|
@ -1178,6 +1178,13 @@ NetWare. */
|
|||
}
|
||||
}
|
||||
|
||||
mutex_create(&srv_dict_tmpfile_mutex);
|
||||
mutex_set_level(&srv_dict_tmpfile_mutex, SYNC_DICT_OPERATION);
|
||||
srv_dict_tmpfile = os_file_create_tmpfile();
|
||||
if (!srv_dict_tmpfile) {
|
||||
return(DB_ERROR);
|
||||
}
|
||||
|
||||
/* Restrict the maximum number of file i/o threads */
|
||||
if (srv_n_file_io_threads > SRV_MAX_N_IO_THREADS) {
|
||||
|
||||
|
@ -1804,8 +1811,13 @@ innobase_shutdown_for_mysql(void)
|
|||
mem_free(srv_monitor_file_name);
|
||||
}
|
||||
}
|
||||
|
||||
if (srv_dict_tmpfile) {
|
||||
fclose(srv_dict_tmpfile);
|
||||
srv_dict_tmpfile = 0;
|
||||
}
|
||||
|
||||
mutex_free(&srv_monitor_file_mutex);
|
||||
mutex_free(&srv_dict_tmpfile_mutex);
|
||||
|
||||
/* 3. Free all InnoDB's own mutexes and the os_fast_mutexes inside
|
||||
them */
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
sync.lib: sync0sync.obj sync0rw.obj sync0arr.obj
|
||||
lib -out:..\libs\sync.lib sync0sync.obj sync0rw.obj sync0arr.obj
|
||||
|
||||
sync0sync.obj: sync0sync.c
|
||||
$(CCOM) $(CFLN) -c sync0sync.c
|
||||
|
||||
sync0rw.obj: sync0rw.c
|
||||
$(CCOM) $(CFL) -c sync0rw.c
|
||||
|
||||
sync0arr.obj: sync0arr.c
|
||||
$(CCOM) $(CFL) -c sync0arr.c
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
thr.lib: thr0loc.obj
|
||||
lib -out:..\libs\thr.lib thr0loc.obj
|
||||
|
||||
thr0loc.obj: thr0loc.c
|
||||
$(CCOM) $(CFL) -c thr0loc.c
|
||||
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
trx.lib: trx0sys.obj trx0trx.obj trx0rseg.obj trx0undo.obj trx0rec.obj trx0roll.obj trx0purge.obj
|
||||
lib -out:..\libs\trx.lib trx0sys.obj trx0trx.obj trx0rseg.obj trx0undo.obj trx0rec.obj trx0roll.obj trx0purge.obj
|
||||
|
||||
trx0trx.obj: trx0trx.c
|
||||
$(CCOM) $(CFL) -c -I.. trx0trx.c
|
||||
|
||||
trx0sys.obj: trx0sys.c
|
||||
$(CCOM) $(CFL) -c -I.. trx0sys.c
|
||||
|
||||
trx0rseg.obj: trx0rseg.c
|
||||
$(CCOM) $(CFL) -c -I.. trx0rseg.c
|
||||
|
||||
trx0undo.obj: trx0undo.c
|
||||
$(CCOM) $(CFL) -c -I.. trx0undo.c
|
||||
|
||||
trx0rec.obj: trx0rec.c
|
||||
$(CCOM) $(CFL) -c -I.. trx0rec.c
|
||||
|
||||
trx0roll.obj: trx0roll.c
|
||||
$(CCOM) $(CFL) -c -I.. trx0roll.c
|
||||
|
||||
trx0purge.obj: trx0purge.c
|
||||
$(CCOM) $(CFL) -c -I.. trx0purge.c
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
usr.lib: usr0sess.obj
|
||||
lib -out:..\libs\usr.lib usr0sess.obj
|
||||
|
||||
usr0sess.obj: usr0sess.c
|
||||
$(CCOM) $(CFL) -c usr0sess.c
|
|
@ -1,21 +0,0 @@
|
|||
include ..\include\makefile.i
|
||||
|
||||
ut.lib: ut0ut.obj ut0mem.obj ut0byte.obj ut0dbg.obj ut0rnd.obj
|
||||
lib -out:..\libs\ut.lib ut0ut.obj ut0mem.obj ut0byte.obj ut0dbg.obj ut0rnd.obj
|
||||
|
||||
ut0ut.obj: ut0ut.c
|
||||
$(CCOM) $(CFL) -c ut0ut.c
|
||||
|
||||
ut0mem.obj: ut0mem.c
|
||||
$(CCOM) $(CFL) -c ut0mem.c
|
||||
|
||||
ut0byte.obj: ut0byte.c
|
||||
$(CCOM) $(CFL) -c ut0byte.c
|
||||
|
||||
ut0dbg.obj: ut0dbg.c
|
||||
$(CCOM) $(CFL) -c ut0dbg.c
|
||||
|
||||
ut0rnd.obj: ut0rnd.c
|
||||
$(CCOM) $(CFL) -c ut0rnd.c
|
||||
|
||||
|
|
@ -244,7 +244,7 @@ static struct my_option my_long_options[] =
|
|||
"Analyze distribution of keys. Will make some joins in MySQL faster.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"character-sets-dir", OPT_CHARSETS_DIR_IC,
|
||||
|
|
|
@ -43,33 +43,33 @@ link_sources:
|
|||
vs=`echo $(vio_objects) | sed "s;\.lo;.c;g"`; \
|
||||
scs=`echo $(sql_cmn_objects) | sed "s;\.lo;.c;g"`; \
|
||||
for f in $$ss; do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../strings/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/strings/$$f $$f; \
|
||||
done; \
|
||||
for f in $$vs $(vioheaders); do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../vio/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/vio/$$f $$f; \
|
||||
done; \
|
||||
for f in $$scs; do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../sql-common/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/sql-common/$$f $$f; \
|
||||
done; \
|
||||
for f in $(mystringsextra); do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../strings/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/strings/$$f $$f; \
|
||||
done; \
|
||||
for f in $$ds; do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../dbug/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/dbug/$$f $$f; \
|
||||
done; \
|
||||
for f in $$ms $(mysysheaders); do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../mysys/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/mysys/$$f $$f; \
|
||||
done; \
|
||||
rm -f $(srcdir)/net.c; \
|
||||
@LN_CP_F@ $(srcdir)/../sql/net_serv.cc $(srcdir)/net.c ; \
|
||||
rm -f $(srcdir)/password.c; \
|
||||
@LN_CP_F@ $(srcdir)/../sql/password.c $(srcdir)/password.c
|
||||
rm -f net.c; \
|
||||
@LN_CP_F@ $(top_srcdir)/sql/net_serv.cc net.c ; \
|
||||
rm -f password.c; \
|
||||
@LN_CP_F@ $(top_srcdir)/sql/password.c password.c
|
||||
|
||||
# This part requires GNUmake
|
||||
#
|
||||
|
|
|
@ -75,7 +75,7 @@ mysysobjects2 = my_lib.lo
|
|||
mysysobjects = $(mysysobjects1) $(mysysobjects2)
|
||||
target_libadd = $(mysysobjects) $(mystringsobjects) $(dbugobjects) \
|
||||
$(sql_cmn_objects) $(vio_objects) $(sqlobjects)
|
||||
target_ldflags = -version-info @SHARED_LIB_VERSION@
|
||||
target_ldflags = -version-info @SHARED_LIB_VERSION@ @LD_VERSION_SCRIPT@
|
||||
vio_objects= vio.lo viosocket.lo viossl.lo viosslfactories.lo
|
||||
CLEANFILES = $(target_libadd) $(SHLIBOBJS) \
|
||||
$(target)
|
||||
|
|
|
@ -2733,7 +2733,7 @@ my_bool STDCALL mysql_stmt_attr_get(MYSQL_STMT *stmt,
|
|||
{
|
||||
switch (attr_type) {
|
||||
case STMT_ATTR_UPDATE_MAX_LENGTH:
|
||||
*(unsigned long *) value= stmt->update_max_length;
|
||||
*(my_bool*) value= stmt->update_max_length;
|
||||
break;
|
||||
default:
|
||||
return TRUE;
|
||||
|
|
1
libmysql/libmysql.ver.in
Normal file
1
libmysql/libmysql.ver.in
Normal file
|
@ -0,0 +1 @@
|
|||
libmysqlclient_@SHARED_LIB_MAJOR_VERSION@ { global: *; };
|
|
@ -41,6 +41,6 @@ libmysqlclient_r_la_LDFLAGS = $(target_ldflags)
|
|||
link_sources:
|
||||
set -x; \
|
||||
for f in `cd $(libmysql_dir) && echo *.[ch]`; do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(libmysql_dir)/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(libmysql_dir)/$$f $$f; \
|
||||
done
|
||||
|
|
|
@ -122,19 +122,19 @@ endif
|
|||
link_sources:
|
||||
set -x; \
|
||||
for f in $(sqlsources); do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../sql/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/sql/$$f $$f; \
|
||||
done; \
|
||||
for f in $(libmysqlsources); do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../libmysql/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/libmysql/$$f $$f; \
|
||||
done; \
|
||||
for f in $(sqlexamplessources); do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../sql/examples/$$f $(srcdir)/$$f; \
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/sql/examples/$$f $$f; \
|
||||
done; \
|
||||
rm -f $(srcdir)/client_settings.h; \
|
||||
@LN_CP_F@ $(srcdir)/../libmysql/client_settings.h $(srcdir)/client_settings.h;
|
||||
rm -f client_settings.h; \
|
||||
@LN_CP_F@ $(top_srcdir)/libmysql/client_settings.h client_settings.h
|
||||
|
||||
|
||||
clean-local:
|
||||
|
|
|
@ -20,14 +20,15 @@ client_sources = $(mysqltest_embedded_SOURCES) $(mysql_SOURCES)
|
|||
tests_sources= $(mysql_client_test_embedded_SOURCES)
|
||||
|
||||
link_sources:
|
||||
set -x; \
|
||||
for f in $(client_sources); do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../../client/$$f $(srcdir)/$$f; \
|
||||
done;
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/client/$$f $$f; \
|
||||
done; \
|
||||
for f in $(tests_sources); do \
|
||||
rm -f $(srcdir)/$$f; \
|
||||
@LN_CP_F@ $(srcdir)/../../tests/$$f $(srcdir)/$$f; \
|
||||
done;
|
||||
rm -f $$f; \
|
||||
@LN_CP_F@ $(top_srcdir)/tests/$$f $$f; \
|
||||
done
|
||||
|
||||
DEFS = -DEMBEDDED_LIBRARY
|
||||
INCLUDES = @MT_INCLUDES@ \
|
||||
|
@ -48,7 +49,7 @@ mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD)
|
|||
mysql_client_test_embedded_LINK = $(CXXLINK)
|
||||
mysql_client_test_embedded_SOURCES = mysql_client_test.c
|
||||
|
||||
clean:
|
||||
clean-local:
|
||||
rm -f $(client_sources)
|
||||
rm -f $(tests_sources)
|
||||
|
||||
|
|
0
libmysqld/ha_blackhole.cc
Executable file
0
libmysqld/ha_blackhole.cc
Executable file
|
@ -17,30 +17,8 @@
|
|||
|
||||
## Process this file with automake to create Makefile.in
|
||||
|
||||
man_MANS = mysql.1 isamchk.1 isamlog.1 mysql_zap.1 mysqlaccess.1 \
|
||||
mysqladmin.1 mysqld.1 mysqld_multi.1 mysqldump.1 mysqlshow.1 \
|
||||
perror.1 replace.1 mysqld_safe.1 mysql_fix_privilege_tables.1
|
||||
|
||||
EXTRA_DIST = mysql.1.in isamchk.1.in isamlog.1.in mysql_zap.1.in \
|
||||
mysqlaccess.1.in mysqladmin.1.in mysqld.1.in mysqld_multi.1.in \
|
||||
mysqldump.1.in mysqlshow.1.in perror.1.in replace.1.in mysqlman.1.in \
|
||||
mysqld_safe.1.in mysql_fix_privilege_tables.1.in
|
||||
|
||||
CLEANFILES = $(man_MANS)
|
||||
|
||||
SUFFIXES = .in
|
||||
|
||||
.in:
|
||||
@RM@ -f $@ $@-t
|
||||
@SED@ \
|
||||
-e 's!@''MYSQL_BASE_VERSION''@!@MYSQL_BASE_VERSION@!' \
|
||||
-e 's!@''sysconfdir''@!@sysconfdir@!' \
|
||||
-e 's!@''bindir''@!$(bindir)!g' \
|
||||
-e 's!@''libexecdir''@!$(libexecdir)!g' \
|
||||
-e 's!@''localstatedir''@!$(localstatedir)!g' \
|
||||
-e 's!@''MYSQL_NO_DASH_VERSION''@!@MYSQL_NO_DASH_VERSION@!' \
|
||||
$< > $@-t
|
||||
@MV@ $@-t $@
|
||||
man1_MANS = @man1_files@
|
||||
EXTRA_DIST = $(man1_MANS)
|
||||
|
||||
# Don't update the files from bitkeeper
|
||||
%::SCCS/s.%
|
||||
|
|
145
man/isamchk.1.in
145
man/isamchk.1.in
|
@ -1,145 +0,0 @@
|
|||
.TH isamchk 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
.BR isamchk
|
||||
\- Description, check and repair of ISAM tables.
|
||||
Used without options all tables on the command will be checked for errors
|
||||
.SH USAGE
|
||||
isamchk [OPTIONS] tables[.ISM]
|
||||
.SH SYNOPSIS
|
||||
.B isamchk
|
||||
.RB [ \-a | \-\-analyze ]
|
||||
.RB [ \-# | \-\-debug=... ]
|
||||
.RB [ \-\-character\-sets\-dir=...]
|
||||
.RB [ \-C | \-\-default\-character\-set=...]
|
||||
.RB [ \-d | \-\-description ]
|
||||
.RB [ \-e | \-\-extend\-check ]
|
||||
.RB [ \-f | \-\-force ]
|
||||
.RB [ \-? | \-\-help ]
|
||||
.RB [ \-i | \-\-information ]
|
||||
.RB [ \-k | \-\-keys\-used=# ]
|
||||
.RB [ \-l | \-\-no\-symlinks]
|
||||
.RB [ \-q | \-\-quick ]
|
||||
.RB [ \-r | \-\-recover ]
|
||||
.RB [ \-o | \-\-safe\-recover ]
|
||||
.RB [ \-O | "\-\-set\-variable var=option"]
|
||||
.RB [ \-s | \-\-silent ]
|
||||
.RB [ \-S | \-\-sort\-index ]
|
||||
.RB [ \-R | \-\-sort\-records=#]
|
||||
.RB [ \-u | \-\-unpack ]
|
||||
.RB [ \-v | \-\-verbose ]
|
||||
.RB [ \-V | \-\-version ]
|
||||
.RB [ \-w | \-\-wait ]
|
||||
.SH DESCRIPTION
|
||||
.TP
|
||||
.BR \-a | \-\-analyze
|
||||
Analyze distribution of keys. Will make some joins in
|
||||
MySQL faster.
|
||||
.TP
|
||||
.BR \-# | \-\-debug=...
|
||||
Output debug log. Often this is 'd:t:o ,filename`
|
||||
.TP
|
||||
.BR \-\-character\-sets\-dir=...
|
||||
Directory where character sets are
|
||||
.TP
|
||||
.BR \-C | \-\-default\-character\-set=...
|
||||
Set the default character set
|
||||
.TP
|
||||
.BR \-d | \-\-description
|
||||
Prints some information about table.
|
||||
.TP
|
||||
.BR \-e | \-\-extend\-check
|
||||
Check the table VERY thoroughly. One need use this
|
||||
only in extreme cases as isamchk should normally find
|
||||
all errors even without this switch
|
||||
.TP
|
||||
.BR \-f | \-\-force
|
||||
Overwrite old temporary files.
|
||||
If one uses \-f when checking tables (running isamchk
|
||||
without \-r), isamchk will automatically restart with
|
||||
\-r on any wrong table.
|
||||
.TP
|
||||
.BR \-? | \-\-help
|
||||
Display help and exit.
|
||||
.TP
|
||||
.BR \-i | \-\-information
|
||||
Print statistics information about the table
|
||||
.TP
|
||||
.BR \-k | \-\-keys\-used=#
|
||||
Used with '\-r'. Tell ISAM to update only the first
|
||||
# keys. This can be used to get faster inserts!
|
||||
.TP
|
||||
.BR \-l | \-\-no\-symlinks
|
||||
Do not follow symbolic links when repairing. Normally
|
||||
isamchk repairs the table a symlink points at.
|
||||
.TP
|
||||
.BR \-q | \-\-quick
|
||||
Used with \-r to get a faster repair. (The data file
|
||||
isn't touched.) One can give a second '\-q' to force
|
||||
isamchk to modify the original datafile.
|
||||
.TP
|
||||
.BR \-r | \-\-recover
|
||||
Can fix almost anything except unique keys that aren't
|
||||
unique.
|
||||
.TP
|
||||
.BR \-o | \-\-safe\-recover
|
||||
Uses old recovery method; slower than '\-r' but can
|
||||
handle a couple of cases that '\-r' cannot handle.
|
||||
.TP
|
||||
.BR \-O | " \-\-set\-variable var=option "
|
||||
Change the value of a variable.
|
||||
.TP
|
||||
.BR \-s | \-\-silent
|
||||
Only print errors. One can use two \-s to make isamchk
|
||||
very silent
|
||||
.TP
|
||||
.BR \-S | \-\-sort\-index
|
||||
Sort index blocks. This speeds up 'read\-next' in
|
||||
applications
|
||||
.TP
|
||||
.BR \-R | \-\-sort\-records=#
|
||||
Sort records according to an index. This makes your
|
||||
data much more localized and may speed up things
|
||||
(It may be VERY slow to do a sort the first time!)
|
||||
.TP
|
||||
.BR \-u | \-\-unpack
|
||||
Unpack file packed with pack_isam.
|
||||
.TP
|
||||
.BR \-v | \-\-verbose
|
||||
Print more information. This can be used with
|
||||
\-d and \-e. Use many \-v for more verbosity!
|
||||
.TP
|
||||
.BR \-V | \-\-version
|
||||
Print version and exit.
|
||||
.TP
|
||||
.BR \-w | \-\-wait
|
||||
Wait if table is locked.
|
||||
.SH "SEE ALSO"
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com/).
|
||||
This software comes with no warranty.
|
||||
Manual page by L. (Kill-9) Pedersen
|
||||
(kill-9@kill\-9.dk), Mercurmedia Data Model Architect /
|
||||
system developer (http://www.mercurmedia.com)
|
||||
|
||||
.\" end of man page
|
107
man/isamlog.1.in
107
man/isamlog.1.in
|
@ -1,107 +0,0 @@
|
|||
.TH isamlog 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
isamlog - Write info about whats in a nisam log file.
|
||||
.SH USAGE
|
||||
isamlog [-?iruvIV] [-c #] [-f #] [-F filepath/] [-o #] [-R file recordpos] [-w write_file] [log-filename [table ...]]
|
||||
.SH SYNOPSIS
|
||||
.B isamlog
|
||||
.RB [ -? | -I ]
|
||||
.RB [ -V ]
|
||||
.RB [ -c ]
|
||||
.RB [ -f ]
|
||||
.RB [ -F ]
|
||||
.RB [ -i ]
|
||||
.RB [ -o ]
|
||||
.RB [ "-p #" ]
|
||||
.RB [ -r ]
|
||||
.RB [ -R ]
|
||||
.RB [ -u ]
|
||||
.RB [ -v ]
|
||||
.RB [ -w ]
|
||||
.SH DESCRIPTION
|
||||
.TP
|
||||
.BR isamlog
|
||||
.TP
|
||||
.BR -? | -I
|
||||
info
|
||||
.TP
|
||||
.BR -V
|
||||
version
|
||||
.TP
|
||||
.BR -c
|
||||
do only # commands
|
||||
.TP
|
||||
.BR -f
|
||||
max open files
|
||||
.TP
|
||||
.BR -F
|
||||
file path
|
||||
.TP
|
||||
.BR -i
|
||||
extra info
|
||||
.TP
|
||||
.BR -o
|
||||
offset
|
||||
.TP
|
||||
.BR "-p #"
|
||||
remove # components from path
|
||||
.TP
|
||||
.BR -r
|
||||
recover
|
||||
.TP
|
||||
.BR -R
|
||||
file recordposition
|
||||
.TP
|
||||
.BR -u
|
||||
update
|
||||
.TP
|
||||
.BR -v
|
||||
verbose
|
||||
.TP
|
||||
.BR -w
|
||||
write file
|
||||
.SH NOTE
|
||||
If no file name is given isam.log is used
|
||||
One can give a second and a third '-v' for more verbose.
|
||||
Normaly one does a update (-u).
|
||||
If a recover is done all writes and all possibly updates and deletes is done
|
||||
and errors are only counted.
|
||||
If one gives table names as arguments only these tables will be updated
|
||||
|
||||
|
||||
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
|
||||
.SH AUTHOR
|
||||
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com/).
|
||||
This software comes with no warranty.
|
||||
Manual page by L. (Kill-9) Pedersen
|
||||
(kill-9@kill-9.dk), Mercurmedia Data Model Architect /
|
||||
system developer (http://www.mercurmedia.com)
|
||||
|
||||
|
||||
.\" end of man page
|
||||
|
||||
|
160
man/mysql.1.in
160
man/mysql.1.in
|
@ -1,160 +0,0 @@
|
|||
.TH mysql 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
mysql \- text-based client for mysqld, a SQL-based relational database daemon
|
||||
.SH USAGE
|
||||
mysql [OPTIONS] [Database]
|
||||
.SH SYNOPSIS
|
||||
.B mysql
|
||||
.RB [ \-B | \-\-batch ]
|
||||
.RB [ \-# | \-\-debug=
|
||||
.IR logfile ]
|
||||
.RB [ \-T | \-\-debug-info ]
|
||||
.RB [ \-e | \-\-exec=
|
||||
.IR command ]
|
||||
.RB [ \-f | \-\-force ]
|
||||
.RB [ \-? | \-\-help ]
|
||||
.RB [ \-h | \-\-host=
|
||||
.IR hostname ]
|
||||
.RB [ \-n | \-\-unbuffered ]
|
||||
.RB [ \-p[pwd] ]
|
||||
.RI [ \-\-password=[pwd] ]
|
||||
.RB [ \-P | \-\-port=
|
||||
.IR pnum ]
|
||||
.RB [ \-q | \-\-quick ]
|
||||
.RB [ \-r | \-\-raw ]
|
||||
.RB [ \-s | \-\-silent ]
|
||||
.RB [ \-S | \-\-socket=
|
||||
.IR snum ]
|
||||
.RB [ \-u | \-\-user=
|
||||
.IR uname ]
|
||||
.RB [ \-v | \-\-verbose ]
|
||||
.RB [ \-V | \-\-version ]
|
||||
.RB [ \-w | \-\-wait ]
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.IR mysql
|
||||
program provides a curses-based interface to the SQL-based database
|
||||
server daemon,
|
||||
.IR mysqld (1).
|
||||
Full fuller documentation, refer to the HTML documents installed with
|
||||
the package.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR \-B | \-\-batch
|
||||
Print results with a tab as separator,
|
||||
each row on a new line.
|
||||
.TP
|
||||
\fB\-#\fP|\fB\-\-debug=\fP\fIlogfile\fP
|
||||
Employ the specified debug log.
|
||||
.TP
|
||||
.BR \-T | \-\-debug-info
|
||||
Print debug information upon exiting.
|
||||
.TP
|
||||
\fB\-e | \-\-exec=\fP\fPcommand\fP
|
||||
Execute the specified command and quit
|
||||
.BR ( \-\-batch
|
||||
is implicit).
|
||||
.TP
|
||||
.BR \-f | \-\-force
|
||||
Continue even if the face of a SQL error.
|
||||
.TP
|
||||
.BR \-? | \-\-help
|
||||
Display a help message and exit.
|
||||
.TP
|
||||
\fB\-h\fP|\fP\-\-host=\fP\fIhostname\fP
|
||||
Connect to the specified host.
|
||||
.TP
|
||||
.BR \-n | \-\-unbuffered
|
||||
Flush the buffer after each query.
|
||||
.TP
|
||||
\fB\-p\fP|\fB\-\-password\fP[\fB=\fP\fIpwd\fP]
|
||||
Employ the specified password when connecting to the database server.
|
||||
If a password is not supplied, it will be requested interactively.
|
||||
.TP
|
||||
\fB\-P\fR|\fB\-\-port=\fP\fIpnum\fP
|
||||
Employ the specified port number for connecting to the database server.
|
||||
.TP
|
||||
.BR \-q | \-\-quick
|
||||
Do not cache the result; print it row by row.
|
||||
This may slow down the server if the output is suspended.
|
||||
.TP
|
||||
.BR \-r | \-\-raw
|
||||
Write fields without conversion.
|
||||
(used with
|
||||
.BR \-\-batch ).
|
||||
.TP
|
||||
.BR \-s | \-\-silent
|
||||
Silent mode: reduce the amount of output.
|
||||
.TP
|
||||
\fB\-S\fP|\fB\-\-socket=\fP\fIsnum\fP
|
||||
Employ the specified socket file for connecting to the database server.
|
||||
.TP
|
||||
\fB\-u\fP|\fB\-\-user=\fP\fIuname\fP
|
||||
Employ the specified user name for logging in to the server.
|
||||
.TP
|
||||
.BR \-v | \-\-verbose
|
||||
Verbose mode: write more
|
||||
Specifying this option
|
||||
.I twice
|
||||
produces a tabular output format.
|
||||
.TP
|
||||
.BR \-V | \-\-version
|
||||
Print the
|
||||
.I mysql
|
||||
version number and exit.
|
||||
.TP
|
||||
.BR \-w | \-\-wait
|
||||
Wait and retry if the database server connection is down.
|
||||
.SH FILES
|
||||
.TP 2.2i
|
||||
.I /etc/my.cnf
|
||||
MySQL configuration file
|
||||
.TP
|
||||
.I @bindir@/mysql
|
||||
Client executable
|
||||
.TP
|
||||
.I @libexecdir@/mysqld
|
||||
Server executable
|
||||
.TP
|
||||
.I @bindir@/mysqld_safe
|
||||
executable shell script for starting mysqld safely
|
||||
.TP
|
||||
.I @localstatedir@
|
||||
location of database files
|
||||
.SH EXAMPLE
|
||||
You can also read a backup dump file back into MySQL with:
|
||||
.TP
|
||||
.BR mysql
|
||||
\fP\fIdatabase\fP
|
||||
.BR <
|
||||
backup-file.sql
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
Ver 6.3, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com/)
|
||||
This software comes with no warranty.
|
||||
Manual page by R. P. C. Rodgers,
|
||||
Lister Hill National Center for Biomedical Communication,
|
||||
U.S. National Library of Medicine
|
||||
(rodgers@nlm.nih.gov).
|
||||
.\" end of man page
|
|
@ -1,40 +0,0 @@
|
|||
.TH mysql 1 "17 March 2003" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
mysql_fix_privilege_tables \- Fixes MySQL privilege tables.
|
||||
.SH SYNOPSIS
|
||||
mysql_fix_privilege_tables [mysql_root_password]
|
||||
.SH DESCRIPTION
|
||||
This scripts updates the mysql.user, mysql.db, mysql.host and the
|
||||
mysql.func tables to MySQL 3.22.14 and above.
|
||||
|
||||
This is needed if you want to use the new GRANT functions,
|
||||
CREATE AGGREGATE FUNCTION or want to use the more secure passwords in 3.23
|
||||
|
||||
If you get 'Access denied' errors, run the script again
|
||||
and give the MySQL root user password as an argument.
|
||||
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
This manpage was written by Christian Hammers <ch@debian.org>.
|
||||
|
||||
MySQL is available at http://www.mysql.com/.
|
||||
.\" end of man page
|
|
@ -1,52 +0,0 @@
|
|||
.TH zap 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
zap - a perl script used to kill processes
|
||||
.SH USAGE
|
||||
/usr/bin/mysql_zap [-signal] [-?Ift] pattern
|
||||
.SH SYNOPSIS
|
||||
.B zap
|
||||
.RB [ \-I | \-? ]
|
||||
.RB [ \-f ]
|
||||
.RB [ \-t ]
|
||||
.SH DESCRIPTION
|
||||
.TP
|
||||
.BR zap
|
||||
supports by executing
|
||||
.TP
|
||||
.BR \-I | \-?
|
||||
info
|
||||
.TP
|
||||
.BR \-f
|
||||
force
|
||||
.TP
|
||||
.BR \-t
|
||||
test
|
||||
.SH NOTE
|
||||
If
|
||||
.BR -f
|
||||
isn't given, ask user for confirmation for each process to kill. If signal isn't given, try first with signal 15 and after that with signal 9. If
|
||||
.BR -t
|
||||
is given the processes is only shown on stdout.
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@ Michael (Monty) Widenius (monty@mysql.com), MySQL AB (http://www.mysql.com/). This software comes with no warranty. Manual page by L. (Kill-9) Pedersen (kill-9@kill-9.dk), Mercurmedia Data Model Architect / system developer (http://www.mercurmedia.com)
|
||||
.\" end of man page
|
|
@ -1,125 +0,0 @@
|
|||
.TH mysqlaccess 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
.BR mysqlaccess \- Create new users to mysql.
|
||||
.SH USAGE
|
||||
mysqlaccess [host [user [db]]] OPTIONS
|
||||
.SH SYNOPSIS
|
||||
.B mysqlaccess
|
||||
.RB [ \-? | \-\-help ]
|
||||
.RB [ \-v | \-\-version ]
|
||||
.RB [ \-p | \-\-password=# ]
|
||||
.RB [ \-h | \-\-host=# ]
|
||||
.RB [ \-d | \-\-db=# ]
|
||||
.RB [ \-U | \-\-superuser=# ]
|
||||
.RB [ \-P | \-\-spassword=# ]
|
||||
.RB [ \-H | \-\-rhost=# ]
|
||||
.RB [ \-\-old_server ]
|
||||
.RB [ \-b | \-\-brief ]
|
||||
.RB [ \-t | \-\-table ]
|
||||
.RB [ \-\-relnotes]
|
||||
.RB [ \-\-plan ]
|
||||
.RB [ \-\-howto ]
|
||||
.RB [ \-\-debug=N ]
|
||||
.RB [ \-\-copy ]
|
||||
.RB [ \-\-preview ]
|
||||
.RB [ \-\-commit ]
|
||||
.RB [ \-\-rollback ]
|
||||
.SH DESCRIPTION
|
||||
.TP
|
||||
.BR \-? | \-\-help
|
||||
display this helpscreen and exit
|
||||
.TP
|
||||
.BR \-v | \-\-version
|
||||
print information on the program `mysqlaccess'
|
||||
.TP
|
||||
.BR \-u | \-\-user=#
|
||||
username for logging in to the db
|
||||
.TP
|
||||
.BR \-p | \-\-password=#
|
||||
validate password for user
|
||||
.TP
|
||||
.BR \-h | \-\-host=#
|
||||
name or IP\-number of the host
|
||||
.TP
|
||||
.BR \-d | \-\-db=#
|
||||
name of the database
|
||||
.TP
|
||||
.BR \-U | \-\-superuser=#
|
||||
connect as superuser
|
||||
.TP
|
||||
.BR \-P | \-\-spassword=#
|
||||
password for superuser
|
||||
.TP
|
||||
.BR \-H | \-\-rhost=#
|
||||
remote MySQL\-server to connect to
|
||||
.TP
|
||||
.BR \-\-old_server
|
||||
connect to old MySQL\-server (before v3.21) which
|
||||
does not yet know how to handle full where clauses.
|
||||
.TP
|
||||
.BR \-b | \-\-brief
|
||||
single\-line tabular report
|
||||
.TP
|
||||
.BR \-t | \-\-table
|
||||
report in table\-format
|
||||
.TP
|
||||
.BR \-\-relnotes
|
||||
print release\-notes
|
||||
.TP
|
||||
.BR \-\-plan
|
||||
print suggestions/ideas for future releases
|
||||
.TP
|
||||
.BR \-\-howto
|
||||
some examples of how to run `mysqlaccess'
|
||||
.TP
|
||||
.BR \-\-debug=N
|
||||
enter debuglevel N (0..3)
|
||||
.TP
|
||||
.BR \-\-copy
|
||||
reload temporary grant\-tables from original ones
|
||||
.TP
|
||||
.BR \-\-preview
|
||||
show differences in privileges after making
|
||||
changes in (temporary) grant\-tables
|
||||
.TP
|
||||
.BR \-\-commit
|
||||
copy grant\-rules from temporary tables to grant\-tables
|
||||
(!don't forget to do an mysqladmin reload)
|
||||
.TP
|
||||
.BR \-\-rollback
|
||||
undo the last changes to the grant\-tables.
|
||||
.SH NOTE
|
||||
At least the user and the db must be given (even with wildcards)
|
||||
If no host is given, `localhost' is assumed
|
||||
Wildcards (*,?,%,_) are allowed for host, user and db, but be sure
|
||||
to escape them from your shell!! (i.e., type \\* or '*')
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com/).
|
||||
This software comes with no warranty.
|
||||
Manual page by L. (Kill-9) Pedersen
|
||||
(kill-9@kill\-9.dk), Mercurmedia Data Model Architect /
|
||||
system developer (http://www.mercurmedia.com)
|
||||
|
||||
.\" end of man page
|
|
@ -1,209 +0,0 @@
|
|||
.TH mysqladmin 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
mysqladmin [OPTIONS] command command.... \- A utility for performing administrative operations
|
||||
.SH OPTION SYNOPSIS
|
||||
.B mysqladmin
|
||||
.RB [ \-# | \-\-debug=
|
||||
.IR logfile ]
|
||||
.RB [ \-f | \-\-force ]
|
||||
.RB [ \-? | \-\-help ]
|
||||
.BR [ --character-sets-dir=\fP\fIdirectory\fP ]
|
||||
.RB [ \-C | \-\-compress ]
|
||||
.RB [ \-h | \-\-host=[#] ]
|
||||
.RB [ \-p[pwd] ]
|
||||
.RI [ \-\-password=[pwd] ]
|
||||
.RB [ \-P | \-\-port=
|
||||
.IR pnum ]
|
||||
.RB [ \-i | \-\-sleep=
|
||||
.IR sec ]
|
||||
.RB [ \-E | \-\-vertical ]
|
||||
.RB [ \-s | \-\-silent ]
|
||||
.RB [ \-S | \-\-socket=
|
||||
.IR # ]
|
||||
.RB [ \-r | \-\-relative ]
|
||||
.RB [ \-t | \-\-timeout=
|
||||
.IR # ]
|
||||
.RB [ \-u | \-\-user=
|
||||
.IR uname ]
|
||||
.RB [ \-v | \-\-verbose ]
|
||||
.RB [ \-V | \-\-version ]
|
||||
.RB [ \-w | \-\-wait[=retries] ]
|
||||
.SH OPTION DESCRIPTION
|
||||
You can get a list of the options your version of
|
||||
.IR mysqladmin
|
||||
supports by executing
|
||||
.BR "mysqladmin \-\-help"
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR \-# | \-\-debug=\fP\fIlogfile\fP
|
||||
Output debug log. Often this is 'd:t:o,filename`
|
||||
.TP
|
||||
.BR \-f | \-\-force
|
||||
Don't ask for confirmation on drop database; with
|
||||
multiple commands, continue even if an error occurs
|
||||
.TP
|
||||
.BR \-? | \-\-help
|
||||
Display help and exit
|
||||
.TP
|
||||
.BR --character-sets-dir=\fP\fIdirectory\fP
|
||||
Set the character set directory
|
||||
.TP
|
||||
.BR \-C | \-\-compress
|
||||
Use compression in server/client protocol
|
||||
.TP
|
||||
\fB\-h\fP|\fP\-\-host=\fP\fIhostname\fP
|
||||
Connect to host
|
||||
.TP
|
||||
\fB\-p\fP|\fB\-\-password\fP[\fB=\fP\fIpwd\fP]
|
||||
Password to use when connecting to server
|
||||
If password is not given it's asked from the tty
|
||||
.TP
|
||||
\fB\-P\fR|\fB\-\-port=\fP\fIpnum\fP
|
||||
Port number to use for connection
|
||||
.TP
|
||||
\fB\-i\fR|\fB\-\-sleep=\fP\fIsec\fP
|
||||
Execute commands again and again with a sleep between
|
||||
.TP
|
||||
.BR \-r | \-\-relative
|
||||
Show difference between current and previous values
|
||||
when used with
|
||||
.BR -i
|
||||
. Currently works only with
|
||||
extended-status
|
||||
.TP
|
||||
.BR \-E | \-\-vertical
|
||||
Print output vertically. Is similar to
|
||||
.BR --relative,
|
||||
but prints output vertically.
|
||||
.TP
|
||||
.BR \-s | \-\-silent
|
||||
Silently exit if one can't connect to server
|
||||
.TP
|
||||
\fB\-S\fR|\fB\-\-socket=\fP\fIfile\fP
|
||||
Socket file to use for connection
|
||||
.TP
|
||||
\fB\-t\fR|\fB\-\-timeout=\fP\fIsec\fP
|
||||
Timeout for connection to the mysqld server
|
||||
.TP
|
||||
\fB\-u\fP|\fB\-\-user=\fP\fIuname\fP
|
||||
User for login if not current user
|
||||
.TP
|
||||
.BR \-v | \-\-verbose
|
||||
Write more information
|
||||
.TP
|
||||
.BR \-V | \-\-version
|
||||
Output version information and exit
|
||||
.TP
|
||||
.BR \-w | \-\-wait
|
||||
Wait and retry if connection is down
|
||||
.SH COMMAND SYNOPSIS
|
||||
.B MySQLADMIN
|
||||
.RB [ "create \fP\fIdatabasename\fP "]
|
||||
.RB [ "drop \fP\fIdatabasename\fP" ]
|
||||
.RB [ extended-status ]
|
||||
.RB [ flush-hosts ]
|
||||
.RB [ flush-logs ]
|
||||
.RB [ flush-tables ]
|
||||
.RB [ flush-privileges ]
|
||||
.RB [ " kill id,id,... " ]
|
||||
.RB [ "password \fP\fInew-password\fP "]
|
||||
.RB [ ping ]
|
||||
.RB [ processlist ]
|
||||
.RB [ reload ]
|
||||
.RB [ refresh ]
|
||||
.RB [ shutdown ]
|
||||
.RB [ slave-start ]
|
||||
.RB [ slave-stop ]
|
||||
.RB [ status ]
|
||||
.RB [ variables ]
|
||||
.RB [ version ]
|
||||
|
||||
.SH COMMANDS
|
||||
Where command is a one or more of: (Commands may be shortened)
|
||||
.TP
|
||||
.BR "create databasename"
|
||||
Create a new database
|
||||
.TP
|
||||
.BR "drop databasename"
|
||||
Delete a database and all its tables
|
||||
.TP
|
||||
.BR extended-status
|
||||
Gives an extended status message from the server
|
||||
.TP
|
||||
.BR flush-hosts
|
||||
Flush all cached hosts
|
||||
.TP
|
||||
.BR flush-logs
|
||||
Flush all logs
|
||||
.TP
|
||||
.BR flush-status
|
||||
Clear status variables
|
||||
.TP
|
||||
.BR flush-tables
|
||||
Flush all tables
|
||||
.TP
|
||||
.BR flush-threads
|
||||
Flush the thread cache
|
||||
.TP
|
||||
.BR flush-privileges
|
||||
Reload grant tables (same as reload)
|
||||
.TP
|
||||
.BR "kill id,id,..."
|
||||
Kill mysql threads
|
||||
.TP
|
||||
.BR "password \fP\fInew-password\fP"
|
||||
Change old password to new-password
|
||||
.TP
|
||||
.BR ping
|
||||
Check if mysqld is alive
|
||||
.TP
|
||||
.BR processlist
|
||||
Show list of active threads in server
|
||||
.TP
|
||||
.BR reload
|
||||
Reload grant tables
|
||||
.TP
|
||||
.BR refresh
|
||||
Flush all tables and close and open logfiles
|
||||
.TP
|
||||
.BR shutdown
|
||||
Take server down
|
||||
.TP
|
||||
.BR status
|
||||
Gives a short status message from the server
|
||||
.TP
|
||||
.BR variables
|
||||
Prints variables available
|
||||
.TP
|
||||
.BR version
|
||||
Get version info from server
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com/).
|
||||
This software comes with no warranty.
|
||||
Manual page by L. (Kill-9) Pedersen
|
||||
(kill-9@kill-9.dk), Mercurmedia Data Model Architect /
|
||||
system developer (http://www.mercurmedia.com)
|
||||
.\" end of man page
|
||||
|
234
man/mysqld.1.in
234
man/mysqld.1.in
|
@ -1,234 +0,0 @@
|
|||
.TH mysqld 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
mysqld \- The MySQL server demon
|
||||
.SH USAGE
|
||||
mysqld [OPTIONS]
|
||||
.SH SYNOPSIS
|
||||
.B mysqld
|
||||
.RB [ \-\-ansi ]
|
||||
.RB [ \-b | \-\-basedir=\fP\fIpath\fP ]
|
||||
.RB [ \-\-big-tables ]
|
||||
.RB [ \-\-bind\-address=IP ]
|
||||
.RB [ \-\-character\-sets\-dir=\fP\fIpath\fP ]
|
||||
.RB [ \-\-chroot=\fP\fIpath\fP ]
|
||||
.RB [ \-h | \-\-datadir=\fP\fIpath\fP ]
|
||||
.RB [ \-\-default\-character\-set=\fP\fIcharset\fP ]
|
||||
.RB [ \-\-default\-table\-type=\fP\fItype \fP]
|
||||
.RB [ \-\-delay\-key\-write\-for\-all\-tables ]
|
||||
.RB [ \-\-enable\-locking ]
|
||||
.RB [ \-T | \-\-exit\-info]
|
||||
.RB [ \-\-flush ]
|
||||
.RB [ \-? | \-\-help ]
|
||||
.RB [ \-\-init\-file=file ]
|
||||
.RB [ \-L | \-\-language=... ]
|
||||
.RB [ \-l | \-\-log[=file] ]
|
||||
.RB [ \-\-log\-isam[=file] ]
|
||||
.RB [ \-\-log\-slow\-queries\fP\fI[=file]\fP ]
|
||||
.RB [ \-\-log\-update\fP\fI[=file]\fP ]
|
||||
.RB [ \-\-log\-long\-format ]
|
||||
.RB [ \-\-low\-priority\-updates ]
|
||||
.RB [ \-\-memlock ]
|
||||
.RB [ " \-\-myisam\-recover [=option[,option...]]] where option is one of DEFAULT, BACKUP, FORCE or QUICK." ]
|
||||
.RB [ \-\-pid\-file=\fP\fIpath\fP ]
|
||||
.RB [ \-P | \-\-port=... ]
|
||||
.RB [ \-o | \-\-old\-protocol ]
|
||||
.RB [ \-\-one\-thread ]
|
||||
.RB [ \-O | \-\-set\-variable var=\fP\fIoption\fP ]
|
||||
.RB [ \-Sg | \-\-skip\-grant\-tables ]
|
||||
.RB [ \-\-safe\-mode ]
|
||||
.RB [ \-\-secure ]
|
||||
.RB [ \-\-skip\-concurrent\-insert ]
|
||||
.RB [ \-\-skip\-delay\-key\-write ]
|
||||
.RB [ \-\-skip\-locking ]
|
||||
.RB [ \-\-skip\-name\-resolve ]
|
||||
.RB [ \-\-skip\-networking ]
|
||||
.RB [ \-\-skip\-new ]
|
||||
.RB [ \-\-skip\-host\-cache ]
|
||||
.RB [ \-\-skip\-show\-database ]
|
||||
.RB [ \-\-skip\-thread\-priority ]
|
||||
.RB [ \-\-socket=path ]
|
||||
.RB [ \-t | \-\-tmpdir=\fP\fIpath \fP]
|
||||
.RB [ \-u | \-\-user=\fP\fIuser_name\fP ]
|
||||
.RB [ \-V | \-\-version ]
|
||||
.SH DESCRIPTION
|
||||
.TP
|
||||
.BR --ansi
|
||||
Use ANSI SQL syntax instead of MySQL syntax. See section 5.2 Running MySQL in ANSI Mode.
|
||||
.TP
|
||||
.BR -b | --basedir=\fP\fIpath \fP
|
||||
Path to installation directory. All paths are usually resolved relative to this.
|
||||
.TP
|
||||
.BR --big-tables
|
||||
Allow big result sets by saving all temporary sets on file. It solves most 'table full' errors, but also slows down the queries where in\-memory tables would suffice. Since Version 3.23.2, MySQL is able to solve it automaticaly by using memory for small temporary tables and switching to disk tables where necessary.
|
||||
.TP
|
||||
.BR \-\-bind\-address=\fP\fIIP \fP
|
||||
IP address to bind to.
|
||||
.TP
|
||||
.BR \-\-character\-sets\-dir=\fP\fIpath \fP
|
||||
Directory where character sets are. See section 10.1.1 The Character Set Used for Data and Sorting.
|
||||
.TP
|
||||
.BR \-\-chroot=\fP\fIpath \fP
|
||||
Chroot mysqld daemon during startup. Recommended security measure. It will somewhat limit LOAD DATA INFILE and SELECT ... INTO OUTFILE though.
|
||||
.TP
|
||||
.BR \-h | \-\-datadir=\fP\fIpath \fP
|
||||
Path to the database root.
|
||||
.TP
|
||||
.BR \-\-default\-character\-set=\fP\fIcharset \fP
|
||||
Set the default character set. See section 10.1.1 The Character Set Used for Data and Sorting.
|
||||
.TP
|
||||
.BR \-\-default\-table\-type=\fP\fItype \fP
|
||||
Set the default table type for tables. See section 8 MySQL Table Types.
|
||||
.TP
|
||||
.BR \-\-delay\-key\-write\-for\-all\-tables
|
||||
Don't flush key buffers between writes for any MyISAM table. See Mysql Manual section 12.2.3 Tuning Server Parameters.
|
||||
.TP
|
||||
.BR \-\-enable\-locking
|
||||
Enable system locking.
|
||||
.TP
|
||||
.BR \-T | \-\-exit\-info
|
||||
Print some debug info at exit.
|
||||
.TP
|
||||
.BR \-\-flush
|
||||
Flush all changes to disk after each SQL command. Normally MySQL only does a write of all changes to disk after each SQL command and lets the operating system handle the syncing to disk. See section 20.2 What to Do if MySQL Keeps Crashing.
|
||||
.TP
|
||||
.BR \-? | \-\-help
|
||||
Display short help and exit.
|
||||
.TP
|
||||
.BR \-\-init\-file=\fP\fIfile \fP
|
||||
Read SQL commands from this file at startup.
|
||||
.TP
|
||||
.BR \-L | \-\-language=...
|
||||
Client error messages in given language. May be given as a full path. See Mysql Manual section 10.1 What Languages Are Supported by MySQL?.
|
||||
.TP
|
||||
.BR \-l | \-\-log\fP\fI[=file] \fP
|
||||
Log connections and queries to file.
|
||||
.TP
|
||||
.BR \-\-log\-isam\fP\fI[=file] \fP
|
||||
Log all ISAM/MyISAM changes to file (only used when debugging ISAM/MyISAM).
|
||||
.TP
|
||||
.BR \-\-log\-slow\-queries\fP\fI[=file] \fP
|
||||
Log all queries that have taken more than long_query_time seconds to execute to file. See Mysql Manual section 21.5 The Slow Query Log.
|
||||
.TP
|
||||
.BR \-\-log\-update\fP\fI[=file] \fP
|
||||
Log updates to file.# where # is a unique number if not given. See Mysql Manual section 21.3 The Update Log.
|
||||
.TP
|
||||
.BR \-\-log\-long\-format
|
||||
Log some extra information to update log. If you are using
|
||||
.BR \-\-log\-slow\-queries
|
||||
then queries that are not using indexes are logged to the slow query log.
|
||||
.TP
|
||||
.BR \-\-low\-priority\-updates
|
||||
Table\-modifying operations (INSERT/DELETE/UPDATE) will have lower priority than selects. It can also be done via {INSERT | REPLACE | UPDATE | DELETE} LOW_PRIORITY ... to lower the priority of only one query, or by SET OPTION SQL_LOW_PRIORITY_UPDATES=1 to change the priority in one thread. See Mysql Manual section 12.2.9 Table Locking Issues.
|
||||
.TP
|
||||
.BR \-\-memlock
|
||||
Lock the mysqld process in memory. This works only if your system supports the mlockall() system call. This may help if you have a problem where the operating system is causing mysqld to swap on disk.
|
||||
.TP
|
||||
.BR " \-\-myisam\-recover [=option[,option...]]] where option is one of DEFAULT, BACKUP, FORCE or QUICK. "
|
||||
If this option is used, mysqld will on open check if the table is marked as crashed or if if the table wasn't closed properly (The last option only works if you are running with \-\-skip\-locking). If this is the case mysqld will run check on the table. If the table was corrupted, mysqld will attempt to repair it. The following options affects how the repair works.
|
||||
.BR DEFAULT
|
||||
The same as not giving any option to \-\-myisam\-recover.
|
||||
.BR BACKUP
|
||||
If the data table was changed during recover, save a backup of the `table_name.MYD' data file as `table_name\-datetime.BAK'.
|
||||
.BR FORCE
|
||||
Run recover even if we will loose more than one row from the .MYD file.
|
||||
.BR QUICK
|
||||
Don't check the rows in the table if there isn't any delete blocks.
|
||||
Before a table is automaticly repaired, mysqld will add a note about this in the error log. If you want to be able to recover from most things without user intervention, you should use the options BACKUP,FORCE. This will force a repair of a table even if some rows would be deleted, but it will keep the old data file as a backup so that you can later examine what happened.
|
||||
.TP
|
||||
.BR \-\-pid\-file=\fP\fIpath \fP
|
||||
Path to pid file used by mysqld_safe.
|
||||
.TP
|
||||
.BR \-P | \-\-port=...
|
||||
Port number to listen for TCP/IP connections.
|
||||
.TP
|
||||
.BR \-o | \-\-old\-protocol
|
||||
Use the 3.20 protocol for compatibility with some very old clients. See Mysql Manual section 4.17.3 Upgrading from Version 3.20 to Version 3.21.
|
||||
.TP
|
||||
.BR \-\-one\-thread
|
||||
Only use one thread (for debugging under Linux). See Mysql Manual section H.1 Debugging a MySQL server.
|
||||
.TP
|
||||
.BR \-O | " \-\-set\-variable var=\fP\fIoption\fP "
|
||||
Give a variable a value. \-\-help lists variables. You can find a full description for all variables in the SHOW VARIABLES section in this manual. See Mysql Manual section 7.28.4 SHOW VARIABLES. The tuning server parameters section includes information of how to optimize these. See Mysql Manual section 12.2.3 Tuning Server Parameters.
|
||||
.TP
|
||||
.BR \-Sg | \-\-skip\-grant\-tables
|
||||
This option causes the server not to use the privilege system at all. This gives everyone full access to all databases! (You can tell a running server to start using the grant tables again by executing mysqladmin flush\-privileges or mysqladmin reload.)
|
||||
.TP
|
||||
.BR \-\-safe\-mode
|
||||
Skip some optimize stages. Implies
|
||||
.BR \-\-skip\-delay\-key\-write.
|
||||
.TP
|
||||
.BR \-\-secure
|
||||
IP numbers returned by the gethostbyname() system call are checked to make sure they resolve back to the original hostname. This makes it harder for someone on the outside to get access by pretending to be another host. This option also adds some sanity checks of hostnames. The option is turned off by default in MySQL Version 3.21 because sometimes it takes a long time to perform backward resolutions. MySQL Version 3.22 caches hostnames (unless \-\-skip\-host\-cache is used) and has this option enabled by default.
|
||||
.TP
|
||||
.BR \-\-skip\-concurrent\-insert
|
||||
Turn off the ability to select and insert at the same time on MyISAM tables. (This is only to be used if you think you have found a bug in this feature).
|
||||
.TP
|
||||
.BR \-\-skip\-delay\-key\-write
|
||||
Ignore the delay_key_write option for all tables. See Mysql Manual section 12.2.3 Tuning Server Parameters.
|
||||
.TP
|
||||
.BR \-\-skip\-locking
|
||||
Don't use system locking. To use isamchk or myisamchk you must shut down the server. See Mysql Manual section 1.6 How Stable Is MySQL?. Note that in MySQL Version 3.23 you can use REPAIR and CHECK to repair/check MyISAM tables.
|
||||
.TP
|
||||
.BR \-\-skip\-name\-resolve
|
||||
Hostnames are not resolved. All Host column values in the grant tables must be IP numbers or localhost.
|
||||
.TP
|
||||
.BR \-\-skip\-networking
|
||||
Don't listen for TCP/IP connections at all. All interaction with mysqld must be made via Unix sockets. This option is highly recommended for systems where only local requests are allowed. However, this option is unsuitable for systems that use MIT\-pthreads, because the MIT\-pthreads package doesn't support Unix sockets.
|
||||
.TP
|
||||
.BR \-\-skip\-new
|
||||
Don't use new, possible wrong routines. Implies
|
||||
.BR \-\-skip\-delay\-key\-write
|
||||
. This will also set default table type to ISAM. See Mysql Manual section 8.3 ISAM Tables.
|
||||
.TP
|
||||
.BR \-\-skip\-host\-cache
|
||||
Never use host name cache for faster name\-ip resolution, but query DNS server on every connect instead.
|
||||
.TP
|
||||
.BR \-\-skip\-show\-database
|
||||
Don't allow 'SHOW DATABASE' commands, unless the user has process privilege.
|
||||
.TP
|
||||
.BR \-\-skip\-thread\-priority
|
||||
Disable using thread priorities for faster response time.
|
||||
.TP
|
||||
.BR \-\-socket=\fP\fIpath \fP
|
||||
Socket file to use for local connections instead of default /tmp/mysql.sock.
|
||||
.TP
|
||||
.BR \-t | \-\-tmpdir=\fP\fIpath\fP
|
||||
Path for temporary files. It may be useful if your default /tmp directory resides on a partition too small to hold temporary tables.
|
||||
.TP
|
||||
.BR \-u | \-\-user=\fP\fIuser_name \fP
|
||||
Run mysqld daemon as user user_name. This option is mandatory when starting mysqld as root.
|
||||
.TP
|
||||
.BR \-V | \-\-version
|
||||
Output version information and exit.
|
||||
|
||||
.SH NOTE
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com/).
|
||||
This software comes with no warranty.
|
||||
Manual page by L. (Kill-9) Pedersen
|
||||
(kill-9@kill\-9.dk), Mercurmedia Data Model Architect /
|
||||
system developer (http://www.mercurmedia.com)
|
||||
|
||||
.\" end of man page
|
|
@ -1,94 +0,0 @@
|
|||
.TH mysqld_multi 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
mysqld_multi - is meant for managing several mysqld processes running in different UNIX sockets and TCP/IP ports.
|
||||
.SH USAGE
|
||||
mysqld_multi [OPTIONS] {start|stop|report} [GNR,GNR,GNR...]
|
||||
.SH SYNOPSIS
|
||||
.B mysqld_multi
|
||||
.RB [ --config-file=... ]
|
||||
.RB [ --example ]
|
||||
.RB [ --help ]
|
||||
.RB [ --log=... ]
|
||||
.RB [ --mysqladmin=... ]
|
||||
.RB [ --mysqld=... ]
|
||||
.RB [ --no-log ]
|
||||
.RB [ --password=... ]
|
||||
.RB [ --tcp-ip ]
|
||||
.RB [ --user=... ]
|
||||
.RB [ --version ]
|
||||
.SH DESCRIPTION
|
||||
.TP
|
||||
.BR mysqld_multi
|
||||
.TP
|
||||
.BR --config-file=...
|
||||
Alternative config file. NOTE: This will not affect this program\'s own options (group [mysqld_multi]), but only groups [mysqld#]. Without this option everything will be searched from the ordinary my.cnf file.
|
||||
.TP
|
||||
.BR --example
|
||||
Give an example of a config file.
|
||||
.TP
|
||||
.BR --help
|
||||
Print this help and exit.
|
||||
.TP
|
||||
.BR --log=...
|
||||
Log file. Full path to and the name for the log file. NOTE: If the file exists, everything will be appended.
|
||||
.TP
|
||||
.BR --mysqladmin=...
|
||||
mysqladmin binary to be used for a server shutdown.
|
||||
.TP
|
||||
.BR --mysqld=...
|
||||
mysqld binary to be used. Note that you can give mysqld_safe to this option also. The options are passed to mysqld. Just make sure you have mysqld in your environment variable PATH or fix mysqld_safe.
|
||||
.TP
|
||||
.BR --no-log
|
||||
Print to stdout instead of the log file. By default the log file is turned on.
|
||||
.TP
|
||||
.BR --password=...
|
||||
Password for user for mysqladmin.
|
||||
.TP
|
||||
.BR --tcp-ip
|
||||
Connect to the MySQL server(s) via the TCP/IP port instead of the UNIX socket. This affects stopping and reporting. If a socket file is missing, the server may still be running, but can be accessed only via the TCP/IP port. By default connecting is done via the UNIX socket.
|
||||
.TP
|
||||
.BR --user=...
|
||||
MySQL user for mysqladmin.
|
||||
.TP
|
||||
.BR --version
|
||||
Print the version number and exit.
|
||||
.SH NOTE
|
||||
Please see the mysql manual for more detailed information on this.
|
||||
|
||||
|
||||
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
|
||||
.SH AUTHOR
|
||||
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com/).
|
||||
This software comes with no warranty.
|
||||
Manual page by L. (Kill-9) Pedersen
|
||||
(kill-9@kill-9.dk), Mercurmedia Data Model Architect /
|
||||
system developer (http://www.mercurmedia.com)
|
||||
|
||||
|
||||
.\" end of man page
|
||||
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
.TH safe_mysqld 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
mysqld_safe \- start the mysqld daemon on Unix.
|
||||
.SH SYNOPSIS
|
||||
.B mysqld_safe
|
||||
.RB [ \-\-basedir=\fP\fIpath\fP ]
|
||||
.RB [ \-\-core\-file\-size=# ]
|
||||
.RB [ \-\-defaults\-extra\-file=\fP\fIpath\fP ]
|
||||
.RB [ \-\-defaults\-file=\fP\fIpath\fP ]
|
||||
.RB [ \-\-open\-files=# ]
|
||||
.RB [ \-\-datadir=\fP\fIpath\fP ]
|
||||
.RB [ \-\-err\-log=\fP\fIpath \fP]
|
||||
.RB [ \-\-ledir=path ]
|
||||
.RB [ \-\-log=\fP\fIpath\fP ]
|
||||
.RB [ \-\-no\-defaults ]
|
||||
.RB [ \-\-open\-files=# ]
|
||||
.RB [ \-\-pid\-file=\fP\fIpath\fP ]
|
||||
.RB [ \-\-port=# ]
|
||||
.RB [ \-\-socket=\fP\fIpath\fP ]
|
||||
.RB [ \-\-timezone=# ]
|
||||
.RB [ \-\-user=# ]
|
||||
.SH DESCRIPTION
|
||||
mysqld_safe adds some safety features such as restarting the server when an
|
||||
error occurs and logging run-time information to a log file.
|
||||
.BR
|
||||
.TP
|
||||
.BR \-\-basedir=\fP\fIpath \fP
|
||||
.TP
|
||||
.BR \-\-core\-file\-size=#
|
||||
Size of the core file mysqld should be able to create. Passed to ulimit \-c.
|
||||
.TP
|
||||
.BR \-\-defaults\-extra\-file=\fP\fIpath \fP
|
||||
.TP
|
||||
.BR \-\-defaults\-file=\fP\fIpath \fP
|
||||
.TP
|
||||
.BR \-\-datadir=\fP\fIpath \fP
|
||||
.TP
|
||||
.BR \-\-err\-log=\fP\fIpath \fP
|
||||
.TP
|
||||
.BR \-\-ledir=\fP\fIpath \fP
|
||||
Path to mysqld
|
||||
.TP
|
||||
.BR \-\-log=\fP\fIpath \fP
|
||||
.TP
|
||||
.BR \-\-no\-defaults
|
||||
.TP
|
||||
.BR \-\-open\-files=#
|
||||
Number of files mysqld should be able to open. Passed to ulimit \-n.
|
||||
.TP
|
||||
.BR \-\-pid\-file=\fP\fIpath \fP
|
||||
.TP
|
||||
.BR \-\-port=#
|
||||
.TP
|
||||
.BR \-\-socket=\fP\fIpath \fP
|
||||
.TP
|
||||
.BR \-\-timezone=#
|
||||
Set the timezone (the TZ) variable to the value of this parameter.
|
||||
.TP
|
||||
.BR \-\-user=#
|
||||
.SH NOTE
|
||||
Note that all options on the command line to mysqld_safe are passed to mysqld. If you wants to use any options in mysqld_safe that mysqld doesn't support, you must specify these in the option file.
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com).
|
||||
This software comes with no warranty.
|
||||
Manual page by L. (Kill-9) Pedersen
|
||||
(kill-9@kill\-9.dk), Mercurmedia Data Model Architect /
|
||||
system developer (http://www.mercurmedia.com)
|
||||
|
||||
.\" end of man page
|
|
@ -1,279 +0,0 @@
|
|||
.TH mysqldump 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
mysqldump \- text\-based client for dumping or backing up mysql databases, tables and or data.
|
||||
|
||||
.SH USAGE
|
||||
.BR "mysqldump [\fP\fIOPTIONS\fP] database [\fP\fItables\fP]"
|
||||
.TP
|
||||
OR
|
||||
.BR "mysqldump [\fP\fIOPTIONS\fP] \-\-databases [\fP\fIOPTIONS\fP] DB1 [\fP\fIDB2 DB3...\fP]"
|
||||
.TP
|
||||
OR
|
||||
.BR "mysqldump [\fP\fIOPTIONS\fP] \-\-all-databases [\fP\fIOPTIONS\fP]"
|
||||
|
||||
.SH OPTION SYNOPSIS
|
||||
.B mysqldump
|
||||
.RB [ \-A | \-\-all-databases ]
|
||||
.RB [ \-a | \-\-all ]
|
||||
.RB [ \-# | \-\-debug=... ]
|
||||
.RB [ \-\-character-sets-dir=...]
|
||||
.RB [ \-? | \-\-help ]
|
||||
.RB [ \-B | \-\-databases ]
|
||||
.RB [ \-c | \-\-complete-insert ]
|
||||
.RB [ \-C | \-\-compress ]
|
||||
.RB [ \-\-default-character-set=...]
|
||||
.RB [ \-e | \-\-extended-insert ]
|
||||
.RB [ \-\-add-drop-table ]
|
||||
.RB [ \-\-add-locks ]
|
||||
.RB [ \-\-allow-keywords ]
|
||||
.RB [ \-\-delayed-insert ]
|
||||
.RB [ \-F | \-\-flush-logs ]
|
||||
.RB [ \-f | \-\-force ]
|
||||
.RB [ \-h | \-\-host=... ]
|
||||
.RB [ \-l | \-\-lock-tables ]
|
||||
.RB [ \-n | \-\-no-create-db ]
|
||||
.RB [ \-t | \-\-no-create-info ]
|
||||
.RB [ \-d | \-\-no-data ]
|
||||
.RB [ \-O | \-\-set-variable var=\fP\fIoption\fP ]
|
||||
.RB [ \-\-opt ]
|
||||
.RB [ \-p | \-\-password\fP\fI[=...]\fP ]
|
||||
.RB [ \-P | \-\-port=... ]
|
||||
.RB [ \-q | \-\-quick ]
|
||||
.RB [ \-Q | \-\-quote-names ]
|
||||
.RB [ \-S | \-\-socket=... ]
|
||||
.RB [ \-\-tables ]
|
||||
.RB [ \-T | \-\-tab=... ]
|
||||
.RB [ \-u | \-\-user=# ]
|
||||
.RB [ \-v | \-\-verbose ]
|
||||
.RB [ \-V | \-\-version ]
|
||||
.RB [ \-w | \-\-where= ]
|
||||
.RB [ \-\-delayed ]
|
||||
.RB [ \-e | \-\-extended-insert ]
|
||||
.RB [ \-\-fields\-terminated\-by=... ]
|
||||
.RB [ \-\-fields\-enclosed\-by=... ]
|
||||
.RB [ \-\-fields-optionally\-enclosed\-by=... ]
|
||||
.RB [ \-\-fields\-escaped\-by=... ]
|
||||
.RB [ \-\-lines\-terminated\-by=... ]
|
||||
.RB [ \-v | \-\-verbose ]
|
||||
.RB [ \-V | \-\-version ]
|
||||
.RB [ "\-O net_buffer_length=#, where # < 16M" ]
|
||||
.SH DESCRIPTION
|
||||
Dumping definition and data mysql database or table
|
||||
.IR mysqldump
|
||||
supports by executing
|
||||
.TP
|
||||
.BR \-A | \-\-all\-databases
|
||||
Dump all the databases. This will be same as
|
||||
.BR \-\-databases
|
||||
with all databases selected.
|
||||
.TP
|
||||
.BR \-a | \-\-all
|
||||
Include all MySQL specific create options.
|
||||
.TP
|
||||
.BR \-# | \-\-debug=...
|
||||
Output debug log. Often this is 'd:t:o,filename`.
|
||||
.TP
|
||||
.BR \-\-character\-sets\-dir=...
|
||||
Directory where character sets are
|
||||
.TP
|
||||
.BR \-? | \-\-help
|
||||
Display this help message and exit.
|
||||
.TP
|
||||
.BR \-B | \-\-databases
|
||||
To dump several databases. Note the difference in
|
||||
usage; In this case no tables are given. All name
|
||||
arguments are regarded as databasenames.
|
||||
'USE db_name;' will be included in the output
|
||||
.TP
|
||||
.BR \-c | \-\-complete\-insert
|
||||
Use complete insert statements.
|
||||
.TP
|
||||
.BR \-C | \-\-compress
|
||||
Use compression in server/client protocol.
|
||||
.TP
|
||||
.BR \-\-default\-character\-set=...
|
||||
Set the default character set
|
||||
.TP
|
||||
.BR \-e | \-\-extended\-insert
|
||||
Allows utilization of the new, much faster
|
||||
INSERT syntax.
|
||||
.TP
|
||||
.BR \-\-add\-drop\-table
|
||||
Add a 'drop table' before each create.
|
||||
.TP
|
||||
.BR \-\-add\-locks
|
||||
Add locks around insert statements.
|
||||
.TP
|
||||
.BR \-\-allow\-keywords
|
||||
Allow creation of column names that are keywords.
|
||||
.TP
|
||||
.BR \-\-delayed\-insert
|
||||
Insert rows with INSERT DELAYED.
|
||||
.TP
|
||||
.BR \-F | \-\-flush\-logs
|
||||
Flush logs file in server before starting dump.
|
||||
.TP
|
||||
.BR \-f | \-\-force
|
||||
Continue even if we get an sql\-error.
|
||||
.TP
|
||||
.BR \-h | \-\-host=...
|
||||
Connect to host.
|
||||
.TP
|
||||
.BR \-l | \-\-lock\-tables
|
||||
Lock all tables for read.
|
||||
.TP
|
||||
.BR \-n | \-\-no\-create\-db
|
||||
\&'CREATE DATABASE /*!32312 IF NOT EXISTS*/ db_name;'
|
||||
will not be put in the output. The above line will
|
||||
be added otherwise, if
|
||||
.BR \-\-databases
|
||||
or
|
||||
.BR \-\-all\-databases
|
||||
option was given.
|
||||
.TP
|
||||
.BR \-t | \-\-no\-create\-info
|
||||
Don't write table creation info.
|
||||
.TP
|
||||
.BR \-d | \-\-no\-data
|
||||
No row information.
|
||||
.TP
|
||||
.BR \-O | "\-\-set\-variable var=option"
|
||||
give a variable a value.
|
||||
.BR \-\-help
|
||||
lists variables
|
||||
.TP
|
||||
.BR \-\-opt
|
||||
Same as
|
||||
.BR " \-\-add\-drop\-table \-\-add\-locks \-\-all \-\-extended\-insert \-\-quick \-\-lock\-tables "
|
||||
.TP
|
||||
.BR \-p | \-\-password[=...]
|
||||
Password to use when connecting to server.
|
||||
If password is not given it's solicited on the tty.
|
||||
.TP
|
||||
.BR \-P | \-\-port=...
|
||||
Port number to use for connection.
|
||||
.TP
|
||||
.BR \-q | \-\-quick
|
||||
Don't buffer query, dump directly to stdout.
|
||||
.TP
|
||||
.BR \-Q | \-\-quote\-names
|
||||
Quote table and column names with `
|
||||
.TP
|
||||
.BR \-S | \-\-socket=...
|
||||
Socket file to use for connection.
|
||||
.TP
|
||||
.BR \-\-tables
|
||||
\fP\fIOverrides \fPoption
|
||||
.BR \-\-databases (\-B).
|
||||
.TP
|
||||
.BR \-T | \-\-tab=...
|
||||
Creates tab separated textfile for each table to
|
||||
given path. (creates .sql and .txt files).
|
||||
NOTE: This only works if mysqldump is run on
|
||||
the same machine as the mysqld daemon.
|
||||
.TP
|
||||
.BR \-u | \-\-user=#
|
||||
User for login if not current user.
|
||||
.TP
|
||||
.BR \-v | \-\-verbose
|
||||
Print info about the various stages.
|
||||
.TP
|
||||
.BR \-V | \-\-version
|
||||
Output version information and exit.
|
||||
.TP
|
||||
.BR \-w | \-\-where=
|
||||
dump only selected records; QUOTES mandatory!
|
||||
.TP
|
||||
.BR \-\-delayed
|
||||
Insert rows with the INSERT DELAYED command.
|
||||
.TP
|
||||
.BR \-e | \-\-extended-insert
|
||||
Use the new multiline INSERT syntax. (Gives more compact and faster inserts statements.)
|
||||
.TP
|
||||
.BR \-\-fields\-terminated\-by=...
|
||||
.TP
|
||||
.BR \-\-fields\-enclosed\-by=...
|
||||
.TP
|
||||
.TP
|
||||
.BR \-\-fields-optionally\-enclosed\-by=...
|
||||
.TP
|
||||
.BR \-\-fields\-escaped\-by=...
|
||||
.TP
|
||||
.BR \-\-lines\-terminated\-by=...
|
||||
These options are used with the
|
||||
.BR -T
|
||||
option and have the same meaning as the corresponding clauses for LOAD DATA INFILE. See Mysql manual section 7.23 LOAD DATA INFILE Syntax.
|
||||
.TP
|
||||
.BR \-v | \-\-verbose
|
||||
Verbose mode. Print out more information on what the program does.
|
||||
.TP
|
||||
.BR \-V | \-\-version
|
||||
Print version information and exit.
|
||||
.TP
|
||||
.BR "\-O net_buffer_length=#, where # < 16M "
|
||||
When creating multi-row-insert statements (as with option
|
||||
.BR --extended-insert
|
||||
or
|
||||
.BR --opt
|
||||
), mysqldump will create rows up to net_buffer_length length. If you increase this variable, you should also ensure that the max_allowed_packet variable in the MySQL server is bigger than the net_buffer_length.
|
||||
.SH EXAMPLES
|
||||
.TP
|
||||
The most normal use of mysqldump is probably for making a backup of whole
|
||||
databases. See the section on Database Backups in the MySQL Reference Manual.
|
||||
.TP
|
||||
mysqldump \-\-opt \fP\fIdatabase\fP > backup-file.sql
|
||||
.TP
|
||||
You can read this back into MySQL with:
|
||||
.TP
|
||||
.BR mysql
|
||||
\fP\fIdatabase\fP
|
||||
.BR <
|
||||
backup-file.sql
|
||||
.TP
|
||||
or
|
||||
.TP
|
||||
.BR mysql
|
||||
\-e 'source /patch\-to\-backup/backup\-file.sql' database
|
||||
.TP
|
||||
However, it's also very useful to populate another MySQL server with information from a database:
|
||||
.TP
|
||||
mysqldump \-\-opt \fP\fIdatabase\fP | mysql \-\-host=\fP\fIremote\-host\fP \-C database
|
||||
.TP
|
||||
It is possible to dump several databases with one command:
|
||||
.TP
|
||||
mysqldump \-\-databases database1 [ database2 database3... ] > my_databases.sql
|
||||
.TP
|
||||
If all the databases are wanted, one can use:
|
||||
.TP
|
||||
mysqldump \fP\fI\-\-all\-databases\fP > all_databases.sql
|
||||
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysqlshow(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com/).
|
||||
This software comes with no warranty.
|
||||
Manual page by L. (Kill-9) Pedersen
|
||||
(kill-9@kill-9.dk), Mercurmedia Data Model Architect /
|
||||
system developer (http://www.mercurmedia.com)
|
||||
|
||||
.\" end of man page
|
|
@ -1,4 +1,4 @@
|
|||
.TH mysqlman 1 "20 July 2004" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.TH mysqlman 1 "20 July 2004" "MySQL" "MySQL database"
|
||||
.SH NAME
|
||||
mysqlman \- default man page for mysql
|
||||
.SH "DESCRIPTION"
|
|
@ -1,98 +0,0 @@
|
|||
.TH mysqlshow 1 "19 December 2000" "MySQL @MYSQL_BASE_VERSION@" "MySQL database"
|
||||
.SH NAME
|
||||
.BR mysqlshow
|
||||
\- Shows the structure of a mysql database (databases,tables and columns)
|
||||
.SH USAGE
|
||||
shell> mysqlshow [\fP\fIOPTIONS\fP] [\fP\fIdatabase [table [column]]\fP]
|
||||
.SH SYNOPSIS
|
||||
.B mysqlshow
|
||||
.RB [ \-# | \-\-debug=...]
|
||||
.RB [ \-? | \-\-help ]
|
||||
.RB [ \-c | \-\-character\-sets\-dir=...]
|
||||
.RB [ \-C | \-\-compress ]
|
||||
.RB [ \-h | \-\-host=... ]
|
||||
.RB [ \-i | \-\-status ]
|
||||
.RB [ \-k | \-\-keys ]
|
||||
.RB [ \-p | \-\-password\fP\fI[=...]\fP ]
|
||||
.RB [ \-P | \-\-port=... ]
|
||||
.RB [ \-S | \-\-socket=... ]
|
||||
.RB [ \-u | \-\-user=# ]
|
||||
.RB [ \-V | \-\-version ]
|
||||
.SH DESCRIPTION
|
||||
.TP
|
||||
.BR \-# | \-\-debug=...
|
||||
output debug log. Often this is 'd:t:o,filename`
|
||||
.TP
|
||||
.BR \-? | \-\-help
|
||||
display help and exit
|
||||
.TP
|
||||
.BR \-c | \-\-character\-sets\-dir=...
|
||||
Directory where character sets are
|
||||
.TP
|
||||
.BR \-C | \-\-compress
|
||||
Use compression in server/client protocol
|
||||
.TP
|
||||
.BR \-h | \-\-host=...
|
||||
connect to host
|
||||
.TP
|
||||
.BR \-i | \-\-status
|
||||
Shows a lot of extra information about each table
|
||||
.TP
|
||||
.BR \-k | \-\-keys
|
||||
show keys for table
|
||||
.TP
|
||||
.BR \-p | \-\-password \fP\fI[=...] \fP
|
||||
password to use when connecting to server
|
||||
If password is not given it's asked from the tty.
|
||||
.TP
|
||||
.BR \-P | \-\-port=...
|
||||
Port number to use for connection
|
||||
.TP
|
||||
.BR \-S | \-\-socket=...
|
||||
Socket file to use for connection
|
||||
.TP
|
||||
.BR \-u | \-\-user=#
|
||||
user for login if not current user
|
||||
.TP
|
||||
.BR \-V | \-\-version
|
||||
output version information and exit
|
||||
|
||||
|
||||
.SH NOTE
|
||||
If last argument contains a shell or SQL wildcard (*,?,% or _) then only
|
||||
what's matched by the wildcard is shown.
|
||||
If no database is given then all matching databases are shown.
|
||||
If no table is given then all matching tables in database are shown
|
||||
If no column is given then all matching columns and columntypes in table
|
||||
are shown
|
||||
|
||||
.SH "SEE ALSO"
|
||||
isamchk(1),
|
||||
isamlog(1),
|
||||
mysql(1),
|
||||
mysqlaccess(1),
|
||||
mysqladmin(1),
|
||||
mysqld(1),
|
||||
mysqld_multi(1),
|
||||
mysqld_safe(1),
|
||||
mysqldump(1),
|
||||
mysql_fix_privilege_tables(1),
|
||||
mysql_zap(1),
|
||||
perror(1),
|
||||
replace(1)
|
||||
.P
|
||||
For more information please refer to the MySQL reference
|
||||
manual, which may already be installed locally and which
|
||||
is also available online at http://dev.mysql.com/doc/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.SH AUTHOR
|
||||
Ver 1.0, distribution @MYSQL_NO_DASH_VERSION@
|
||||
Michael (Monty) Widenius (monty@mysql.com),
|
||||
MySQL AB (http://www.mysql.com/).
|
||||
This software comes with no warranty.
|
||||
Manual page by L. (Kill-9) Pedersen
|
||||
(kill-9@kill\-9.dk), Mercurmedia Data Model Architect /
|
||||
system developer (http://www.mercurmedia.com)
|
||||
|
||||
.\" end of man page
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue