mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Merged MySQL 5.1.46 GPLed documentation into MariaDB.
This commit is contained in:
commit
d9a95a5500
52 changed files with 1913 additions and 1681 deletions
497
INSTALL-SOURCE
497
INSTALL-SOURCE
|
@ -17,8 +17,7 @@ Chapter 2. Installing and Upgrading MySQL
|
|||
platform.
|
||||
Please note that not all platforms are equally suitable for
|
||||
running MySQL, and that not all platforms on which MySQL is
|
||||
known to run are officially supported by Sun Microsystems,
|
||||
Inc.:
|
||||
known to run are officially supported by Oracle Corporation:
|
||||
|
||||
2. Choose which distribution to install.
|
||||
Several versions of MySQL are available, and most are
|
||||
|
@ -77,12 +76,11 @@ Chapter 2. Installing and Upgrading MySQL
|
|||
|
||||
Important
|
||||
|
||||
Sun Microsystems, Inc. does not necessarily provide official
|
||||
support for all the platforms listed in this section. For
|
||||
information about those platforms that are officially supported,
|
||||
see MySQL Server Supported Platforms
|
||||
(http://www.mysql.com/support/supportedplatforms.html) on the
|
||||
MySQL Web site.
|
||||
Oracle Corporation does not necessarily provide official support
|
||||
for all the platforms listed in this section. For information
|
||||
about those platforms that are officially supported, see
|
||||
http://www.mysql.com/support/supportedplatforms.html on the MySQL
|
||||
Web site.
|
||||
|
||||
We use GNU Autoconf, so it is possible to port MySQL to all modern
|
||||
systems that have a C++ compiler and a working implementation of
|
||||
|
@ -148,7 +146,7 @@ Important
|
|||
by the ability of the file system to deal with large files and
|
||||
dealing with them efficiently.
|
||||
|
||||
* Our level of expertise here at Sun Microsystems, Inc. with the
|
||||
* Our level of expertise here at Oracle Corporation with the
|
||||
platform. If we know a platform well, we enable
|
||||
platform-specific optimizations and fixes at compile time. We
|
||||
can also provide advice on configuring your system optimally
|
||||
|
@ -184,17 +182,16 @@ Important
|
|||
new features are being added that could affect stability.
|
||||
|
||||
* MySQL 5.0 is the previous stable (production-quality) release
|
||||
series.
|
||||
series. MySQL 5.0 is now at the end of the product lifecycle.
|
||||
Active development and support for this version has ended.
|
||||
Extended support for MySQL 5.0 remains available. According to
|
||||
the http://www.mysql.com/about/legal/lifecycle/, only Security
|
||||
and Severity Level 1 issues are still being fixed for MySQL
|
||||
5.0.
|
||||
|
||||
* MySQL 4.1, 4.0, and 3.23 are old stable (production-quality)
|
||||
release series. MySQL 4.1 is now at the end of the product
|
||||
lifecycle. Active development and support for these versions
|
||||
has ended.
|
||||
Extended support for MySQL 4.1 remains available. According to
|
||||
the MySQL Lifecycle Policy
|
||||
(http://www.mysql.com/about/legal/lifecycle/), only Security
|
||||
and Severity Level 1 issues are still being fixed for MySQL
|
||||
4.1.
|
||||
release series. Active development and support for these
|
||||
versions has ended.
|
||||
|
||||
We do not believe in a complete code freeze because this prevents
|
||||
us from making bugfixes and other fixes that must be done. By
|
||||
|
@ -228,7 +225,7 @@ Important
|
|||
the code on which future releases are to be based.
|
||||
|
||||
The MySQL naming scheme uses release names that consist of three
|
||||
numbers and a suffix; for example, mysql-5.0.12-beta. The numbers
|
||||
numbers and a suffix; for example, mysql-5.0.14-rc. The numbers
|
||||
within the release name are interpreted as follows:
|
||||
|
||||
* The first number (5) is the major version and describes the
|
||||
|
@ -238,7 +235,7 @@ Important
|
|||
the major version and release level constitute the release
|
||||
series number.
|
||||
|
||||
* The third number (12) is the version number within the release
|
||||
* The third number (14) is the version number within the release
|
||||
series. This is incremented for each new release. Usually you
|
||||
want the latest version for the series you have chosen.
|
||||
|
||||
|
@ -307,11 +304,6 @@ Important
|
|||
actually made the code faster. See Section 7.1.3, "The MySQL
|
||||
Benchmark Suite."
|
||||
|
||||
* The crash-me test
|
||||
This test tries to determine what features the database
|
||||
supports and what its capabilities and limitations are. See
|
||||
Section 7.1.3, "The MySQL Benchmark Suite."
|
||||
|
||||
We also test the newest MySQL version in our internal production
|
||||
environment, on at least one machine. We have more than 100GB of
|
||||
data to work with.
|
||||
|
@ -475,8 +467,8 @@ Important
|
|||
shell> md5sum package_name
|
||||
|
||||
Example:
|
||||
shell> md5sum mysql-standard-5.1.41-linux-i686.tar.gz
|
||||
aaab65abbec64d5e907dcd41b8699945 mysql-standard-5.1.41-linux-i686.ta
|
||||
shell> md5sum mysql-standard-5.1.46-linux-i686.tar.gz
|
||||
aaab65abbec64d5e907dcd41b8699945 mysql-standard-5.1.46-linux-i686.ta
|
||||
r.gz
|
||||
|
||||
You should verify that the resulting checksum (the string of
|
||||
|
@ -520,8 +512,7 @@ Note
|
|||
named build@mysql.com. Alternatively, you can cut and paste the
|
||||
key directly from the following text:
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1.0.6 (GNU/Linux)
|
||||
Comment: For info see http://www.gnupg.org
|
||||
Version: GnuPG v1.4.5 (GNU/Linux)
|
||||
|
||||
mQGiBD4+owwRBAC14GIfUfCyEDSIePvEW3SAFUdJBtoQHH/nJKZyQT7h9bPlUWC3
|
||||
RODjQReyCITRrdwyrKUGku2FmeVGwn2u2WmDMNABLnpprWPkBdCk96+OmSLN9brZ
|
||||
|
@ -533,81 +524,26 @@ kYpXBACmWpP8NJTkamEnPCia2ZoOHODANwpUkP43I7jsDmgtobZX9qnrAXw+uNDI
|
|||
QJEXM6FSbi0LLtZciNlYsafwAPEOMDKpMqAK6IyisNtPvaLd8lH0bPAnWqcyefep
|
||||
rv0sxxqUEMcM3o7wwgfN83POkDasDbs3pjwPhxvhz6//62zQJ7Q7TXlTUUwgUGFj
|
||||
a2FnZSBzaWduaW5nIGtleSAod3d3Lm15c3FsLmNvbSkgPGJ1aWxkQG15c3FsLmNv
|
||||
bT6IXQQTEQIAHQUCR6yUtAUJDTBYqAULBwoDBAMVAwIDFgIBAheAAAoJEIxxjTtQ
|
||||
cuH1rpIAn38+BlBI815Dou9VXMIAsQEk4G3tAJ9+Cz69Y/Xwm611lzteJrCAA32+
|
||||
aYhMBBMRAgAMBQI+PqPRBYMJZgC7AAoJEElQ4SqycpHyJOEAn1mxHijft00bKXvu
|
||||
bT6IXQQTEQIAHQULBwoDBAMVAwIDFgIBAheABQJLcC5lBQkQ8/JZAAoJEIxxjTtQ
|
||||
cuH1oD4AoIcOQ4EoGsZvy06D0Ei5vcsWEy8dAJ4g46i3WEcdSWxMhcBSsPz65sh5
|
||||
lohMBBMRAgAMBQI+PqPRBYMJZgC7AAoJEElQ4SqycpHyJOEAn1mxHijft00bKXvu
|
||||
cSo/pECUmppiAJ41M9MRVj5VcdH/KN/KjRtW6tHFPYhMBBMRAgAMBQI+QoIDBYMJ
|
||||
YiKJAAoJELb1zU3GuiQ/lpEAoIhpp6BozKI8p6eaabzF5MlJH58pAKCu/ROofK8J
|
||||
Eg2aLos+5zEYrB/LsohGBBARAgAGBQI/rOOvAAoJEK/FI0h4g3QP9pYAoNtSISDD
|
||||
AAU2HafyAYlLD/yUC4hKAJ0czMsBLbo0M/xPaJ6Ox9Q5Hmw2uIhGBBARAgAGBQI/
|
||||
tEN3AAoJEIWWr6swc05mxsMAnRag9X61Ygu1kbfBiqDku4czTd9pAJ4q5W8KZ0+2
|
||||
ujTrEPN55NdWtnXj4YhGBBARAgAGBQJDW7PqAAoJEIvYLm8wuUtcf3QAnRCyqF0C
|
||||
pMCTdIGc7bDO5I7CIMhTAJ0UTGx0O1d/VwvdDiKWj45N2tNbYIhGBBMRAgAGBQJE
|
||||
8TMmAAoJEPZJxPRgk1MMCnEAoIm2pP0sIcVh9Yo0YYGAqORrTOL3AJwIbcy+e8HM
|
||||
NSoNV5u51RnrVKie34hMBBARAgAMBQJBgcsBBYMGItmLAAoJEBhZ0B9ne6HsQo0A
|
||||
nA/LCTQ3P5kvJvDhg1DsfVTFnJxpAJ49WFjg/kIcaN5iP1JfaBAITZI3H4hMBBAR
|
||||
AgAMBQJBgcs0BYMGItlYAAoJEIHC9+viE7aSIiMAnRVTVVAfMXvJhV6D5uHfWeeD
|
||||
046TAJ4kjwP2bHyd6DjCymq+BdEDz63axohMBBARAgAMBQJBgctiBYMGItkqAAoJ
|
||||
EGtw7Nldw/RzCaoAmwWM6+Rj1zl4D/PIys5nW48Hql3hAJ0bLOBthv96g+7oUy9U
|
||||
j09Uh41lF4hMBBARAgAMBQJB0JMkBYMF1BFoAAoJEH0lygrBKafCYlUAoIb1r5D6
|
||||
qMLMPMO1krHk3MNbX5b5AJ4vryx5fw6iJctC5GWJ+Y8ytXab34hMBBARAgAMBQJC
|
||||
K1u6BYMFeUjSAAoJEOYbpIkV67mr8xMAoJMy+UJC0sqXMPSxh3BUsdcmtFS+AJ9+
|
||||
Z15LpoOnAidTT/K9iODXGViK6ohMBBIRAgAMBQJAKlk6BYMHektSAAoJEDyhHzSU
|
||||
+vhhJlwAnA/gOdwOThjO8O+dFtdbpKuImfXJAJ0TL53QKp92EzscZSz49lD2YkoE
|
||||
qohMBBIRAgAMBQJAPfq6BYMHZqnSAAoJEPLXXGPjnGWcst8AoLQ3MJWqttMNHDbl
|
||||
xSyzXhFGhRU8AJ4ukRzfNJqElQHQ00ZM2WnCVNzOUIhMBBIRAgAMBQJBDgqEBYMG
|
||||
lpoIAAoJEDnKK/Q9aopf/N0AniE2fcCKO1wDIwusuGVlC+JvnnWbAKDDoUSEYuNn
|
||||
5qzRbrzWW5zBno/Nb4hMBBIRAgAMBQJCgKU0BYMFI/9YAAoJEAQNwIV8g5+o4yQA
|
||||
nA9QOFLV5POCddyUMqB/fnctuO9eAJ4sJbLKP/Z3SAiTpKrNo+XZRxauqIhMBBMR
|
||||
AgAMBQI+TU2EBYMJV1cIAAoJEC27dr+t1MkzBQwAoJU+RuTVSn+TI+uWxUpT82/d
|
||||
s5NkAJ9bnNodffyMMK7GyMiv/TzifiTD+4hMBBMRAgAMBQJB14B2BYMFzSQWAAoJ
|
||||
EGbv28jNgv0+P7wAn13uu8YkhwfNMJJhWdpK2/qM/4AQAJ40drnKW2qJ5EEIJwtx
|
||||
pwapgrzWiYhMBBMRAgAMBQJCGIEOBYMFjCN+AAoJEHbBAxyiMW6hoO4An0Ith3Kx
|
||||
5/sixbjZR9aEjoePGTNKAJ94SldLiESaYaJx2lGIlD9bbVoHQYhdBBMRAgAdBQJH
|
||||
rJTPBQkNMFioBQsHCgMEAxUDAgMWAgECF4AACgkQjHGNO1By4fV0KgCgsLpG2wP0
|
||||
rc3s07Fync9g7MfairMAoIUefSNKrGTsTxvLeyH4DLzJW/QFiHsEMBECADsFAkJ3
|
||||
NfU0HQBPb3BzLi4uIHNob3VsZCBoYXZlIGJlZW4gbG9jYWwhIEknbSAqc28qIHN0
|
||||
dXBpZC4uLgAKCRA5yiv0PWqKX+9HAJ0WjTx/rqgouK4QCrOV/2IOU+jMQQCfYSC8
|
||||
JgsIIeN8aiyuStTdYrk0VWCIjwQwEQIATwUCRW8Av0gdAFNob3VsZCBoYXZlIGJl
|
||||
ZW4gYSBsb2NhbCBzaWduYXR1cmUsIG9yIHNvbWV0aGluZyAtIFdURiB3YXMgSSB0
|
||||
aGlua2luZz8ACgkQOcor9D1qil+g+wCfcFWoo5qUl4XTE9K8tH3Q+xGWeYYAnjii
|
||||
KxjtOXc0ls+BlqXxbfZ9uqBsiQIiBBABAgAMBQJBgcuFBYMGItkHAAoJEKrj5s5m
|
||||
oURoqC8QAIISudocbJRhrTAROOPoMsReyp46Jdp3iL1oFDGcPfkZSBwWh8L+cJjh
|
||||
dycIwwSeZ1D2h9S5Tc4EnoE0khsS6wBpuAuih5s//coRqIIiLKEdhTmNqulkCH5m
|
||||
imCzc5zXWZDW0hpLr2InGsZMuh2QCwAkB4RTBM+r18cUXMLV4YHKyjIVaDhsiPP/
|
||||
MKUj6rJNsUDmDq1GiJdOjySjtCFjYADlQYSD7zcd1vpqQLThnZBESvEoCqumEfOP
|
||||
xemNU6xAB0CL+pUpB40pE6Un6Krr5h6yZxYZ/N5vzt0Y3B5UUMkgYDSpjbulNvaU
|
||||
TFiOxEU3gJvXc1+h0BsxM7FwBZnuMA8LEA+UdQb76YcyuFBcROhmcEUTiducLu84
|
||||
E2BZ2NSBdymRQKSinhvXsEWlH6Txm1gtJLynYsvPi4B4JxKbb+awnFPusL8W+gfz
|
||||
jbygeKdyqzYgKj3M79R3geaY7Q75Kxl1UogiOKcbI5VZvg47OQCWeeERnejqEAdx
|
||||
EQiwGA/ARhVOP/1l0LQA7jg2P1xTtrBqqC2ufDB+v+jhXaCXxstKSW1lTbv/b0d6
|
||||
454UaOUV7RisN39pE2zFvJvY7bwfiwbUJVmYLm4rWJAEOJLIDtDRtt2h8JahDObm
|
||||
3CWkpadjw57S5v1c/mn+xV9yTgVx5YUfC/788L1HNKXfeVDq8zbAiQIiBBMBAgAM
|
||||
BQJCnwocBYMFBZpwAAoJENjCCglaJFfPIT4P/25zvPp8ixqV85igs3rRqMBtBsj+
|
||||
5EoEW6DJnlGhoi26yf1nasC2frVasWG7i4JIm0U3WfLZERGDjR/nqlOCEqsP5gS3
|
||||
43N7r4UpDkBsYh0WxH/ZtST5llFK3zd7XgtxvqKL98l/OSgijH2W2SJ9DGpjtO+T
|
||||
iegq7igtJzw7Vax9z/LQH2xhRQKZR9yernwMSYaJ72i9SyWbK3k0+e95fGnlR5pF
|
||||
zlGq320rYHgD7v9yoQ2t1klsAxK6e3b7Z+RiJG6cAU8o8F0kGxjWzF4v8D1op7S+
|
||||
IoRdB0Bap01ko0KLyt3+g4/33/2UxsW50BtfqcvYNJvU4bZns1YSqAgDOOanBhg8
|
||||
Ip5XPlDxH6J/3997n5JNj/nk5ojfd8nYfe/5TjflWNiput6tZ7frEki1wl6pTNbv
|
||||
V9C1eLUJMSXfDZyHtUXmiP9DKNpsucCUeBKWRKLqnsHLkLYydsIeUJ8+ciKc+EWh
|
||||
FxEY+Ml72cXAaz5BuW9L8KHNzZZfez/ZJabiARQpFfjOwAnmhzJ9r++TEKRLEr96
|
||||
taUI9/8nVPvT6LnBpcM38Td6dJ639YvuH3ilAqmPPw50YvglIEe4BUYD5r52Seqc
|
||||
8XQowouGOuBX4vs7zgWFuYA/s9ebfGaIw+uJd/56Xl9ll6q5CghqB/yt1EceFEnF
|
||||
CAjQc2SeRo6qzx22uQINBD4+ox0QCADv4Yl/Fsx1jjCyU+eMf2sXg3ap9awQ3+XF
|
||||
pmglhzdrozTZYKceXpqFPb+0ErbDVAjhgW15HjuAK+2Bvo7Ukd986jYd8uZENGJG
|
||||
N3UNMIep7JfsIeFyCGP901GVbZnSXlAURyZX1TRWGndoV9YLhSN+zctT6GQBbMTv
|
||||
NoPlwf0nvK//rG5lXDjXXHSHhSqxNxYy7SIzUHMQupfUNjsvCg8Rv871GRt/h+Yt
|
||||
7XUTMhoJrg+oBFdBlzh2FKKcy3ordfgGtGwpN+jMG7vgXjsPwiVt/m9Jgdu4Tmn/
|
||||
WggPOeSD+nyRb7cXG5avJxyKoVNw3PbXnLJff0tcWeUvMpRv8XkbAAMFB/4vCqpr
|
||||
wIatF+w4AnGKbrcId+3LmZRzmtRKdOyUZgQg4JHUF5Bq7I9ls8OwMP0xnVlpJp9q
|
||||
cW/AUbouXH3GRTu3Or68ouhaSbi7nF/e+fnlWOdJ3VpD15CdRxeIvhycEahNs5Yj
|
||||
f0RzLOCyXMF0L74w+NxBNwDunolRWw/qgAHcVBaDni25SjQRzxuwzxvcS/jYua5B
|
||||
Pk10ocbAexdM+2XSSWThtCTg5qMeyLLUExqGlPbuNaMmUyIlz4hYnSaCGQoe33bq
|
||||
z/KZ91/keR1DVzK+zPm2vJUjcXHvxd5Jh9C+67CqnYfXf2lcYSSDSfop1Q5611la
|
||||
F7vRgY0/DXKNYlPUiEwEGBECAAwFAkeslPwFCQ0wWN8ACgkQjHGNO1By4fWlzgCf
|
||||
Qj3rkfcljYZOuLOn50J7PFuF7FoAnjwWGhwVi9+Fm2B5RZvpo++BBkdP
|
||||
=Xquv
|
||||
Eg2aLos+5zEYrB/LsrkCDQQ+PqMdEAgA7+GJfxbMdY4wslPnjH9rF4N2qfWsEN/l
|
||||
xaZoJYc3a6M02WCnHl6ahT2/tBK2w1QI4YFteR47gCvtgb6O1JHffOo2HfLmRDRi
|
||||
Rjd1DTCHqeyX7CHhcghj/dNRlW2Z0l5QFEcmV9U0Vhp3aFfWC4Ujfs3LU+hkAWzE
|
||||
7zaD5cH9J7yv/6xuZVw411x0h4UqsTcWMu0iM1BzELqX1DY7LwoPEb/O9Rkbf4fm
|
||||
Le11EzIaCa4PqARXQZc4dhSinMt6K3X4BrRsKTfozBu74F47D8Ilbf5vSYHbuE5p
|
||||
/1oIDznkg/p8kW+3FxuWrycciqFTcNz215yyX39LXFnlLzKUb/F5GwADBQf+Lwqq
|
||||
a8CGrRfsOAJxim63CHfty5mUc5rUSnTslGYEIOCR1BeQauyPZbPDsDD9MZ1ZaSaf
|
||||
anFvwFG6Llx9xkU7tzq+vKLoWkm4u5xf3vn55VjnSd1aQ9eQnUcXiL4cnBGoTbOW
|
||||
I39EcyzgslzBdC++MPjcQTcA7p6JUVsP6oAB3FQWg54tuUo0Ec8bsM8b3Ev42Lmu
|
||||
QT5NdKHGwHsXTPtl0klk4bQk4OajHsiy1BMahpT27jWjJlMiJc+IWJ0mghkKHt92
|
||||
6s/ymfdf5HkdQ1cyvsz5tryVI3Fx78XeSYfQvuuwqp2H139pXGEkg0n6KdUOetdZ
|
||||
Whe70YGNPw1yjWJT1IhMBBgRAgAMBQI+PqMdBQkJZgGAAAoJEIxxjTtQcuH17p4A
|
||||
n3r1QpVC9yhnW2cSAjq+kr72GX0eAJ4295kl6NxYEuFApmr1+0uUq/SlsQ==
|
||||
=Mski
|
||||
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
To import the build key into your personal public GPG keyring, use
|
||||
|
@ -650,8 +586,8 @@ pg-signature.html
|
|||
signature, which also is available from the download page. The
|
||||
signature file has the same name as the distribution file with an
|
||||
.asc extension, as shown by the examples in the following table.
|
||||
Distribution file mysql-standard-5.1.41-linux-i686.tar.gz
|
||||
Signature file mysql-standard-5.1.41-linux-i686.tar.gz.asc
|
||||
Distribution file mysql-standard-5.1.46-linux-i686.tar.gz
|
||||
Signature file mysql-standard-5.1.46-linux-i686.tar.gz.asc
|
||||
|
||||
Make sure that both files are stored in the same directory and
|
||||
then run the following command to verify the signature for the
|
||||
|
@ -659,7 +595,7 @@ pg-signature.html
|
|||
shell> gpg --verify package_name.asc
|
||||
|
||||
Example:
|
||||
shell> gpg --verify mysql-standard-5.1.41-linux-i686.tar.gz.asc
|
||||
shell> gpg --verify mysql-standard-5.1.46-linux-i686.tar.gz.asc
|
||||
gpg: Signature made Tue 12 Jul 2005 23:35:41 EST using DSA key ID 507
|
||||
2E1F5
|
||||
gpg: Good signature from "MySQL Package signing key (www.mysql.com) <
|
||||
|
@ -679,8 +615,8 @@ build@mysql.com>"
|
|||
shell> rpm --checksig package_name.rpm
|
||||
|
||||
Example:
|
||||
shell> rpm --checksig MySQL-server-5.1.41-0.glibc23.i386.rpm
|
||||
MySQL-server-5.1.41-0.glibc23.i386.rpm: md5 gpg OK
|
||||
shell> rpm --checksig MySQL-server-5.1.46-0.glibc23.i386.rpm
|
||||
MySQL-server-5.1.46-0.glibc23.i386.rpm: md5 gpg OK
|
||||
|
||||
Note
|
||||
|
||||
|
@ -705,7 +641,7 @@ shell> rpm --import mysql_pubkey.asc
|
|||
|
||||
This section describes the default layout of the directories
|
||||
created by installing binary or source distributions provided by
|
||||
Sun Microsystems, Inc. A distribution provided by another vendor
|
||||
Oracle Corporation. A distribution provided by another vendor
|
||||
might use a layout different from those shown here.
|
||||
|
||||
Installations created from our Linux RPM distributions result in
|
||||
|
@ -773,9 +709,7 @@ shell> rpm --import mysql_pubkey.asc
|
|||
|
||||
This section covers the installation of MySQL binary distributions
|
||||
that are provided for various platforms in the form of compressed
|
||||
tar files (files with a .tar.gz extension). See Section 2.2,
|
||||
"Installing MySQL from Generic Binaries on Unix/Linux," for a
|
||||
detailed list.
|
||||
tar files (files with a .tar.gz extension).
|
||||
|
||||
To obtain MySQL, see Section 2.1.3, "How to Get MySQL."
|
||||
|
||||
|
@ -793,7 +727,7 @@ shell> rpm --import mysql_pubkey.asc
|
|||
|
||||
MySQL tar file binary distributions have names of the form
|
||||
mysql-VERSION-OS.tar.gz, where VERSION is a number (for example,
|
||||
5.1.41), and OS indicates the type of operating system for which
|
||||
5.1.46), and OS indicates the type of operating system for which
|
||||
the distribution is intended (for example, pc-linux-i686).
|
||||
|
||||
In addition to these generic packages, we also offer binaries in
|
||||
|
@ -818,7 +752,7 @@ shell> rpm --import mysql_pubkey.asc
|
|||
first.
|
||||
|
||||
If you run into problems and need to file a bug report, please use
|
||||
the instructions in Section 1.6, "How to Report Bugs or Problems."
|
||||
the instructions in Section 1.7, "How to Report Bugs or Problems."
|
||||
|
||||
The basic commands that you must execute to install and use a
|
||||
MySQL binary distribution are:
|
||||
|
@ -987,7 +921,7 @@ Note
|
|||
|
||||
MySQL source distributions are provided as compressed tar archives
|
||||
and have names of the form mysql-VERSION.tar.gz, where VERSION is
|
||||
a number like 5.1.41.
|
||||
a number like 5.1.46.
|
||||
|
||||
You need the following tools to build and install MySQL from
|
||||
source:
|
||||
|
@ -1005,15 +939,9 @@ Note
|
|||
systems with a deficient tar, you should install GNU tar
|
||||
first.
|
||||
|
||||
* A working ANSI C++ compiler. gcc 2.95.2 or later, SGI C++, and
|
||||
SunPro C++ are some of the compilers that are known to work.
|
||||
libg++ is not needed when using gcc. gcc 2.7.x has a bug that
|
||||
makes it impossible to compile some perfectly legal C++ files,
|
||||
such as sql/sql_base.cc. If you have only gcc 2.7.x, you must
|
||||
upgrade your gcc to be able to compile MySQL. gcc 2.8.1 is
|
||||
also known to have problems on some platforms, so it should be
|
||||
avoided if a newer compiler exists for the platform. gcc
|
||||
2.95.2 or later is recommended.
|
||||
* A working ANSI C++ compiler. GCC 3.2 or later, Sun Studio 10
|
||||
or later, Visual Studio 2005 or later, and many current
|
||||
vendor-supplied compilers are known to work.
|
||||
|
||||
* A good make program. GNU make is always recommended and is
|
||||
sometimes required. (BSD make fails, and vendor-provided make
|
||||
|
@ -1035,7 +963,7 @@ CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \
|
|||
On most systems, this gives you a fast and stable binary.
|
||||
|
||||
If you run into problems and need to file a bug report, please use
|
||||
the instructions in Section 1.6, "How to Report Bugs or Problems."
|
||||
the instructions in Section 1.7, "How to Report Bugs or Problems."
|
||||
|
||||
2.3.1. Source Installation Overview
|
||||
|
||||
|
@ -1121,7 +1049,7 @@ shell> make
|
|||
from config.log that you think can help solve the problem.
|
||||
Also include the last couple of lines of output from
|
||||
configure. To file a bug report, please use the instructions
|
||||
in Section 1.6, "How to Report Bugs or Problems."
|
||||
in Section 1.7, "How to Report Bugs or Problems."
|
||||
If the compile fails, see Section 2.3.4, "Dealing with
|
||||
Problems Compiling MySQL," for help.
|
||||
|
||||
|
@ -1497,10 +1425,9 @@ shell> ./configure --with-charset=CHARSET
|
|||
cp1251, cp1256, cp1257, cp850, cp852, cp866, cp932, dec8,
|
||||
eucjpms, euckr, gb2312, gbk, geostd8, greek, hebrew, hp8,
|
||||
keybcs2, koi8r, koi8u, latin1, latin2, latin5, latin7, macce,
|
||||
macroman, sjis, swe7, tis620, ucs2, ujis, utf8. See Section
|
||||
9.2, "The Character Set Used for Data and Sorting."
|
||||
(Additional character sets might be available. Check the
|
||||
output from ./configure --help for the current list.)
|
||||
macroman, sjis, swe7, tis620, ucs2, ujis, utf8. (Additional
|
||||
character sets might be available. Check the output from
|
||||
./configure --help for the current list.)
|
||||
The default collation may also be specified. MySQL uses the
|
||||
latin1_swedish_ci collation by default. To change this, use
|
||||
the --with-collation option:
|
||||
|
@ -1602,7 +1529,7 @@ shell> ./configure --with-debug
|
|||
* When given with --enable-community-features, the
|
||||
--enable-profiling option enables the statement profiling
|
||||
capability exposed by the SHOW PROFILE and SHOW PROFILES
|
||||
statements. (See Section 12.5.5.33, "SHOW PROFILES Syntax.")
|
||||
statements. (See Section 12.4.5.33, "SHOW PROFILES Syntax.")
|
||||
This option was added in MySQL 5.1.24. It is enabled by
|
||||
default as of MySQL 5.1.28; to disable it, use
|
||||
--disable-profiling.
|
||||
|
@ -1610,7 +1537,7 @@ shell> ./configure --with-debug
|
|||
* See Section 2.1, "General Installation Guidance," for options
|
||||
that pertain to particular operating systems.
|
||||
|
||||
* See Section 5.5.7.2, "Using SSL Connections," for options that
|
||||
* See Section 5.5.6.2, "Using SSL Connections," for options that
|
||||
pertain to configuring MySQL to support secure (encrypted)
|
||||
connections.
|
||||
|
||||
|
@ -1664,12 +1591,12 @@ Caution
|
|||
(either a binary or source distribution).
|
||||
|
||||
To obtain the most recent development source tree, you must have
|
||||
Bazaar installed. You can obtain Bazaar from the Bazaar VCS
|
||||
Website (http://bazaar-vcs.org). Bazaar is supported by any
|
||||
platform that supports Python, and is therefore compatible with
|
||||
any Linux, Unix, Windows or Mac OS X host. Instructions for
|
||||
downloading and installing Bazaar on the different platforms are
|
||||
available on the Bazaar website.
|
||||
Bazaar installed. You can obtain Bazaar from the Bazaar VCS Web
|
||||
site (http://bazaar-vcs.org). Bazaar is supported by any platform
|
||||
that supports Python, and is therefore compatible with any Linux,
|
||||
Unix, Windows or Mac OS X host. Instructions for downloading and
|
||||
installing Bazaar on the different platforms are available on the
|
||||
Bazaar Web site.
|
||||
|
||||
All MySQL projects are hosted on Launchpad
|
||||
(http://launchpad.net/). MySQL projects, including MySQL server,
|
||||
|
@ -1752,7 +1679,7 @@ shell> bzr log
|
|||
page.
|
||||
If you see diffs (changes) or code that you have a question
|
||||
about, do not hesitate to send email to the MySQL internals
|
||||
mailing list. See Section 1.5.1, "MySQL Mailing Lists." Also,
|
||||
mailing list. See Section 1.6.1, "MySQL Mailing Lists." Also,
|
||||
if you think you have a better idea on how to do something,
|
||||
send an email message to the list with a patch.
|
||||
|
||||
|
@ -1816,7 +1743,7 @@ shell> make
|
|||
|
||||
6. If you have gotten to the make stage, but the distribution
|
||||
does not compile, please enter the problem into our bugs
|
||||
database using the instructions given in Section 1.6, "How to
|
||||
database using the instructions given in Section 1.7, "How to
|
||||
Report Bugs or Problems." If you have installed the latest
|
||||
versions of the required GNU tools, and they crash trying to
|
||||
process our configuration files, please report that also.
|
||||
|
@ -2092,7 +2019,7 @@ implicit declaration of function `int strtoul(...)'
|
|||
|
||||
* Before any upgrade, back up your databases, including the
|
||||
mysql database that contains the grant tables. See Section
|
||||
6.1, "Database Backup Methods."
|
||||
6.2, "Database Backup Methods."
|
||||
|
||||
* Read all the notes in Section 2.4.1.1, "Upgrading from MySQL
|
||||
5.0 to 5.1." These notes enable you to identify upgrade issues
|
||||
|
@ -2117,7 +2044,7 @@ implicit declaration of function `int strtoul(...)'
|
|||
* If you are running MySQL Server on Windows, see Section 2.5.7,
|
||||
"Upgrading MySQL on Windows."
|
||||
|
||||
* If you are using replication, see Section 16.3.3, "Upgrading a
|
||||
* If you are using replication, see Section 16.4.3, "Upgrading a
|
||||
Replication Setup," for information on upgrading your
|
||||
replication setup.
|
||||
|
||||
|
@ -2251,7 +2178,7 @@ Note
|
|||
done before upgrading. Use of this statement with a version of
|
||||
MySQL different from the one used to create the table (that
|
||||
is, using it after upgrading) may damage the table. See
|
||||
Section 12.5.2.6, "REPAIR TABLE Syntax."
|
||||
Section 12.4.2.6, "REPAIR TABLE Syntax."
|
||||
|
||||
* After you upgrade to a new version of MySQL, run mysql_upgrade
|
||||
(see Section 4.4.8, "mysql_upgrade --- Check Tables for MySQL
|
||||
|
@ -2274,7 +2201,7 @@ Note
|
|||
* If you are running MySQL Server on Windows, see Section 2.5.7,
|
||||
"Upgrading MySQL on Windows."
|
||||
|
||||
* If you are using replication, see Section 16.3.3, "Upgrading a
|
||||
* If you are using replication, see Section 16.4.3, "Upgrading a
|
||||
Replication Setup," for information on upgrading your
|
||||
replication setup.
|
||||
|
||||
|
@ -2322,13 +2249,13 @@ Note
|
|||
upgrading, and reload them into MySQL 5.1 after upgrading.
|
||||
|
||||
* Known issue: The fix for
|
||||
Bug#23491: http://bugs.mysql.com/23491 introduced a problem
|
||||
with SHOW CREATE VIEW, which is used by mysqldump. This causes
|
||||
an incompatibility when upgrading from versions affected by
|
||||
that bug fix (MySQL 5.0.40 through 5.0.43, MySQL 5.1.18
|
||||
through 5.1.19): If you use mysqldump before upgrading from an
|
||||
affected version and reload the data after upgrading to a
|
||||
higher version, you must drop and recreate your views.
|
||||
Bug#23491: http://bugs.mysql.com/bug.php?id=23491 introduced a
|
||||
problem with SHOW CREATE VIEW, which is used by mysqldump.
|
||||
This causes an incompatibility when upgrading from versions
|
||||
affected by that bug fix (MySQL 5.0.40 through 5.0.43, MySQL
|
||||
5.1.18 through 5.1.19): If you use mysqldump before upgrading
|
||||
from an affected version and reload the data after upgrading
|
||||
to a higher version, you must drop and recreate your views.
|
||||
|
||||
* Known issue: Dumps performed by using mysqldump to generate a
|
||||
dump file before the upgrade and reloading the file after
|
||||
|
@ -2456,11 +2383,11 @@ RENAME TABLE table_b TO `table b`;
|
|||
* Incompatible change: MySQL 5.1 implements support for a plugin
|
||||
API that allows the loading and unloading of components at
|
||||
runtime, without restarting the server. Section 22.2, "The
|
||||
MySQL Plugin Interface." The plugin API requires the
|
||||
mysql.plugin table. After upgrading from an older version of
|
||||
MySQL, you should run the mysql_upgrade command to create this
|
||||
table. See Section 4.4.8, "mysql_upgrade --- Check Tables for
|
||||
MySQL Upgrade."
|
||||
MySQL Plugin API." The plugin API requires the mysql.plugin
|
||||
table. After upgrading from an older version of MySQL, you
|
||||
should run the mysql_upgrade command to create this table. See
|
||||
Section 4.4.8, "mysql_upgrade --- Check Tables for MySQL
|
||||
Upgrade."
|
||||
Plugins are installed in the directory named by the plugin_dir
|
||||
system variable. This variable also controls the location from
|
||||
which the server loads user-defined functions (UDFs), which is
|
||||
|
@ -2718,7 +2645,7 @@ REPAIR TABLE tbl_name QUICK;
|
|||
specifies the locale that controls the language used to
|
||||
display day and month names and abbreviations. This variable
|
||||
affects the output from the DATE_FORMAT(), DAYNAME() and
|
||||
MONTHNAME() functions. See Section 9.8, "MySQL Server Locale
|
||||
MONTHNAME() functions. See Section 9.7, "MySQL Server Locale
|
||||
Support."
|
||||
|
||||
* As of MySQL 5.1.9, mysqld_safe no longer implicitly invokes
|
||||
|
@ -2749,7 +2676,7 @@ REPAIR TABLE tbl_name QUICK;
|
|||
to reload them into an upgraded server. Handlers that contain
|
||||
illegal label references will be rejected.
|
||||
For more information about condition handlers and writing them
|
||||
to avoid invalid jumps, see Section 12.8.4.2, "DECLARE for
|
||||
to avoid invalid jumps, see Section 12.7.4.2, "DECLARE for
|
||||
Handlers."
|
||||
|
||||
* Incompatible change: The parser accepted statements that
|
||||
|
@ -2758,13 +2685,13 @@ REPAIR TABLE tbl_name QUICK;
|
|||
contain unclosed /*-comments now are rejected with a syntax
|
||||
error.
|
||||
This fix has the potential to cause incompatibilities. Because
|
||||
of Bug#26302: http://bugs.mysql.com/26302, which caused the
|
||||
trailing */ to be truncated from comments in views, stored
|
||||
routines, triggers, and events, it is possible that objects of
|
||||
those types may have been stored with definitions that now
|
||||
will be rejected as syntactically invalid. Such objects should
|
||||
be dropped and re-created so that their definitions do not
|
||||
contain truncated comments.
|
||||
of Bug#26302: http://bugs.mysql.com/bug.php?id=26302, which
|
||||
caused the trailing */ to be truncated from comments in views,
|
||||
stored routines, triggers, and events, it is possible that
|
||||
objects of those types may have been stored with definitions
|
||||
that now will be rejected as syntactically invalid. Such
|
||||
objects should be dropped and re-created so that their
|
||||
definitions do not contain truncated comments.
|
||||
|
||||
* Incompatible change: Multiple-table DELETE statements
|
||||
containing ambiguous aliases could have unintended side
|
||||
|
@ -2851,21 +2778,20 @@ mysql> source /tmp/triggers.sql //
|
|||
mysqldump or mysqlhotcopy can be used as alternatives.
|
||||
|
||||
* The LOAD DATA FROM MASTER and LOAD TABLE FROM MASTER
|
||||
statements are deprecated. See Section 12.6.2.2, "LOAD DATA
|
||||
statements are deprecated. See Section 12.5.2.2, "LOAD DATA
|
||||
FROM MASTER Syntax," for recommended alternatives.
|
||||
|
||||
* The INSTALL PLUGIN and UNINSTALL PLUGIN statements that are
|
||||
used for the plugin API are new. So is the WITH PARSER clause
|
||||
for FULLTEXT index creation that associates a parser plugin
|
||||
with a full-text index. Section 22.2, "The MySQL Plugin
|
||||
Interface."
|
||||
with a full-text index. Section 22.2, "The MySQL Plugin API."
|
||||
|
||||
C API Changes:
|
||||
|
||||
* Incompatible change: As of MySQL 5.1.7, the
|
||||
mysql_stmt_attr_get() C API function returns a boolean rather
|
||||
than an unsigned int for STMT_ATTR_UPDATE_MAX_LENGTH.
|
||||
(Bug#16144: http://bugs.mysql.com/16144)
|
||||
(Bug#16144: http://bugs.mysql.com/bug.php?id=16144)
|
||||
|
||||
2.4.2. Downgrading MySQL
|
||||
|
||||
|
@ -2930,10 +2856,10 @@ mysql> source /tmp/triggers.sql //
|
|||
5. Reload the dump file into the older server. Your tables should
|
||||
be accessible.
|
||||
|
||||
It might also be the case that the structure of the system tables
|
||||
in the mysql database has changed and that downgrading introduces
|
||||
some loss of functionality or requires some adjustments. Here are
|
||||
some examples:
|
||||
It might also be the case that system tables in the mysql database
|
||||
have changed and that downgrading introduces some loss of
|
||||
functionality or requires some adjustments. Here are some
|
||||
examples:
|
||||
|
||||
* Trigger creation requires the TRIGGER privilege as of MySQL
|
||||
5.1. In MySQL 5.0, there is no TRIGGER privilege and SUPER is
|
||||
|
@ -2944,6 +2870,12 @@ mysql> source /tmp/triggers.sql //
|
|||
* Triggers were added in MySQL 5.0, so if you downgrade from 5.0
|
||||
to 4.1, you cannot use triggers at all.
|
||||
|
||||
* The mysql.proc.comment column definition changed between MySQL
|
||||
5.1 and 5.5. After a downgrade from 5.5 to 5.1, this table is
|
||||
seen as corrupt and in need of repair. To workaround this
|
||||
problem, execute mysql_upgrade from the version of MySQL to
|
||||
which you downgraded.
|
||||
|
||||
2.4.2.1. Downgrading to MySQL 5.0
|
||||
|
||||
When downgrading to MySQL 5.0 from MySQL 5.1, you should keep in
|
||||
|
@ -2979,9 +2911,10 @@ mysql> source /tmp/triggers.sql //
|
|||
--all-databases option). Instead, you should run mysqldump
|
||||
--routines prior to performing the downgrade and run the
|
||||
stored routines DDL statements following the downgrade.
|
||||
See Bug#11986: http://bugs.mysql.com/11986,
|
||||
Bug#30029: http://bugs.mysql.com/30029, and
|
||||
Bug#30660: http://bugs.mysql.com/30660, for more information.
|
||||
See Bug#11986: http://bugs.mysql.com/bug.php?id=11986,
|
||||
Bug#30029: http://bugs.mysql.com/bug.php?id=30029, and
|
||||
Bug#30660: http://bugs.mysql.com/bug.php?id=30660, for more
|
||||
information.
|
||||
|
||||
* Triggers. Trigger creation requires the TRIGGER privilege as
|
||||
of MySQL 5.1. In MySQL 5.0, there is no TRIGGER privilege and
|
||||
|
@ -3060,10 +2993,10 @@ mysql> source /tmp/triggers.sql //
|
|||
report, the bug number is given.
|
||||
|
||||
The list applies both for binary upgrades and downgrades. For
|
||||
example, Bug#27877: http://bugs.mysql.com/27877 was fixed in MySQL
|
||||
5.1.24 and 5.4.0, so it applies to upgrades from versions older
|
||||
than 5.1.24 to 5.1.24 or newer, and to downgrades from 5.1.24 or
|
||||
newer to versions older than 5.1.24.
|
||||
example, Bug#27877: http://bugs.mysql.com/bug.php?id=27877 was
|
||||
fixed in MySQL 5.1.24 and 5.4.0, so it applies to upgrades from
|
||||
versions older than 5.1.24 to 5.1.24 or newer, and to downgrades
|
||||
from 5.1.24 or newer to versions older than 5.1.24.
|
||||
|
||||
In many cases, you can use CHECK TABLE ... FOR UPGRADE to identify
|
||||
tables for which index rebuilding is required. (It will report:
|
||||
|
@ -3073,33 +3006,36 @@ mysql> source /tmp/triggers.sql //
|
|||
TABLE. However, the use of CHECK TABLE applies only after
|
||||
upgrades, not downgrades. Also, CHECK TABLE is not applicable to
|
||||
all storage engines. For details about which storage engines CHECK
|
||||
TABLE supports, see Section 12.5.2.3, "CHECK TABLE Syntax."
|
||||
TABLE supports, see Section 12.4.2.3, "CHECK TABLE Syntax."
|
||||
|
||||
Changes that cause index rebuilding to be necessary:
|
||||
|
||||
* MySQL 5.0.48, 5.1.21 (Bug#29461: http://bugs.mysql.com/29461)
|
||||
* MySQL 5.0.48, 5.1.21
|
||||
(Bug#29461: http://bugs.mysql.com/bug.php?id=29461)
|
||||
Affects indexes for columns that use any of these character
|
||||
sets: eucjpms, euc_kr, gb2312, latin7, macce, ujis
|
||||
Affected tables can be detected by CHECK TABLE ... FOR UPGRADE
|
||||
as of MySQL 5.1.29, 5.4.0 (see
|
||||
Bug#39585: http://bugs.mysql.com/39585).
|
||||
Bug#39585: http://bugs.mysql.com/bug.php?id=39585).
|
||||
|
||||
* MySQL 5.0.48, 5.1.23 (Bug#27562: http://bugs.mysql.com/27562)
|
||||
* MySQL 5.0.48, 5.1.23
|
||||
(Bug#27562: http://bugs.mysql.com/bug.php?id=27562)
|
||||
Affects indexes that use the ascii_general_ci collation for
|
||||
columns that contain any of these characters: '`' GRAVE
|
||||
ACCENT, '[' LEFT SQUARE BRACKET, '\' REVERSE SOLIDUS, ']'
|
||||
RIGHT SQUARE BRACKET, '~' TILDE
|
||||
Affected tables can be detected by CHECK TABLE ... FOR UPGRADE
|
||||
as of MySQL 5.1.29, 5.4.0 (see
|
||||
Bug#39585: http://bugs.mysql.com/39585).
|
||||
Bug#39585: http://bugs.mysql.com/bug.php?id=39585).
|
||||
|
||||
* MySQL 5.1.24, 5.4.0 (Bug#27877: http://bugs.mysql.com/27877)
|
||||
* MySQL 5.1.24, 5.4.0
|
||||
(Bug#27877: http://bugs.mysql.com/bug.php?id=27877)
|
||||
Affects indexes that use the utf8_general_ci or
|
||||
ucs2_general_ci collation for columns that contain 'ß' LATIN
|
||||
SMALL LETTER SHARP S (German).
|
||||
Affected tables can be detected by CHECK TABLE ... FOR UPGRADE
|
||||
as of MySQL 5.1.30, 5.4.0 (see
|
||||
Bug#40053: http://bugs.mysql.com/40053).
|
||||
Bug#40053: http://bugs.mysql.com/bug.php?id=40053).
|
||||
|
||||
2.4.4. Rebuilding or Repairing Tables or Indexes
|
||||
|
||||
|
@ -3107,10 +3043,12 @@ mysql> source /tmp/triggers.sql //
|
|||
necessitated by changes to MySQL such as how data types are
|
||||
handled or changes to character set handling. For example, an
|
||||
error in a collation might have been corrected, necessitating a
|
||||
table rebuild to rebuild the indexes for character columns that
|
||||
use the collation. It might also be that a table repair or upgrade
|
||||
should be done as indicated by a table check operation such as
|
||||
that performed by CHECK TABLE, mysqlcheck, or mysql_upgrade.
|
||||
table rebuild to update the indexes for character columns that use
|
||||
the collation. (For examples, see Section 2.4.3, "Checking Whether
|
||||
Tables or Indexes Must Be Rebuilt.") It might also be that a table
|
||||
repair or upgrade should be done as indicated by a table check
|
||||
operation such as that performed by CHECK TABLE, mysqlcheck, or
|
||||
mysql_upgrade.
|
||||
|
||||
Methods for rebuilding a table include dumping and reloading it,
|
||||
or using ALTER TABLE or REPAIR TABLE.
|
||||
|
@ -3120,26 +3058,25 @@ Note
|
|||
If you are rebuilding tables because a different version of MySQL
|
||||
will not handle them after a binary (in-place) upgrade or
|
||||
downgrade, you must use the dump-and-reload method. Dump the
|
||||
tables before upgrading or downgrading (using your original
|
||||
version of MySQL), and reload the tables after upgrading or
|
||||
downgrading (after installing the new version).
|
||||
tables before upgrading or downgrading using your original version
|
||||
of MySQL. Then reload the tables after upgrading or downgrading.
|
||||
|
||||
If you use the dump-and-reload method of rebuilding tables only
|
||||
for the purpose of rebuilding indexes, you can perform the dump
|
||||
either before or after upgrading or downgrading. Reloading still
|
||||
must be done afterward.
|
||||
|
||||
To re-create a table by dumping and reloading it, use mysqldump to
|
||||
To rebuild a table by dumping and reloading it, use mysqldump to
|
||||
create a dump file and mysql to reload the file:
|
||||
shell> mysqldump db_name t1 > dump.sql
|
||||
shell> mysql db_name < dump.sql
|
||||
|
||||
To recreate all the tables in a single database, specify the
|
||||
To rebuild all the tables in a single database, specify the
|
||||
database name without any following table name:
|
||||
shell> mysqldump db_name > dump.sql
|
||||
shell> mysql db_name < dump.sql
|
||||
|
||||
To recreate all tables in all databases, use the --all-databases
|
||||
To rebuild all tables in all databases, use the --all-databases
|
||||
option:
|
||||
shell> mysqldump --all-databases > dump.sql
|
||||
shell> mysql < dump.sql
|
||||
|
@ -3165,7 +3102,7 @@ mysql> REPAIR TABLE t1;
|
|||
the file, as described earlier.
|
||||
|
||||
For specifics about which storage engines REPAIR TABLE supports,
|
||||
see Section 12.5.2.6, "REPAIR TABLE Syntax."
|
||||
see Section 12.4.2.6, "REPAIR TABLE Syntax."
|
||||
|
||||
mysqlcheck --repair provides command-line access to the REPAIR
|
||||
TABLE statement. This can be a more convenient means of repairing
|
||||
|
@ -3447,7 +3384,7 @@ Note
|
|||
below for reference:
|
||||
|
||||
* Windows Essentials --- this package has a file name similar to
|
||||
mysql-essential-5.1.41-win32.msi and is supplied as a
|
||||
mysql-essential-5.1.46-win32.msi and is supplied as a
|
||||
Microsoft Installer (MSI) package. The package includes the
|
||||
minimum set of files needed to install MySQL on Windows,
|
||||
including the MySQL Server Instance Config Wizard. This
|
||||
|
@ -3458,7 +3395,7 @@ Note
|
|||
MySQL with the MSI Package."
|
||||
|
||||
* Windows MSI Installer (Complete) --- this package has a file
|
||||
name similar to mysql-5.1.41-win32.zip and contains all files
|
||||
name similar to mysql-5.1.46-win32.zip and contains all files
|
||||
needed for a complete Windows installation, including the
|
||||
MySQL Server Instance Config Wizard. This package includes
|
||||
optional components such as the embedded server and benchmark
|
||||
|
@ -3467,7 +3404,7 @@ Note
|
|||
MySQL with the MSI Package."
|
||||
|
||||
* Without installer --- this package has a file name similar to
|
||||
mysql-noinstall-5.1.41-win32.zip and contains all the files
|
||||
mysql-noinstall-5.1.46-win32.zip and contains all the files
|
||||
found in the Complete install package, with the exception of
|
||||
the MySQL Server Instance Config Wizard. This package does not
|
||||
include an automated installer, and must be manually installed
|
||||
|
@ -3618,7 +3555,7 @@ Note
|
|||
feedback of users like you. If you find that the MySQL
|
||||
Installation Wizard is lacking some feature important to you, or
|
||||
if you discover a bug, please report it in our bugs database using
|
||||
the instructions given in Section 1.6, "How to Report Bugs or
|
||||
the instructions given in Section 1.7, "How to Report Bugs or
|
||||
Problems."
|
||||
|
||||
2.5.3.1.1. Downloading and Starting the MySQL Installation Wizard
|
||||
|
@ -3720,7 +3657,7 @@ Note
|
|||
directory. In a default installation it contains C:\Program
|
||||
Files\MySQL\MySQL Server 5.1\. The Version string contains the
|
||||
release number. For example, for an installation of MySQL Server
|
||||
5.1.41, the key contains a value of 5.1.41.
|
||||
5.1.46, the key contains a value of 5.1.46.
|
||||
|
||||
These registry keys are used to help external tools identify the
|
||||
installed location of the MySQL server, preventing a complete scan
|
||||
|
@ -3963,8 +3900,8 @@ shell> msiexec /x /quiet mysql-5.1.39.msi
|
|||
Apart from making changes to the my.ini file by running the MySQL
|
||||
Server Instance Config Wizard again, you can modify it by opening
|
||||
it with a text editor and making any necessary changes. You can
|
||||
also modify the server configuration with the MySQL Administrator
|
||||
(http://www.mysql.com/products/administrator/) utility. For more
|
||||
also modify the server configuration with the
|
||||
http://www.mysql.com/products/administrator/ utility. For more
|
||||
information about server configuration, see Section 5.1.2, "Server
|
||||
Command Options."
|
||||
|
||||
|
@ -4262,17 +4199,31 @@ Warning
|
|||
|
||||
2.5.4.11. The Security Options Dialog
|
||||
|
||||
It is strongly recommended that you set a root password for your
|
||||
MySQL server, and the MySQL Server Instance Config Wizard requires
|
||||
by default that you do so. If you do not wish to set a root
|
||||
password, uncheck the box next to the Modify Security Settings
|
||||
option.
|
||||
MySQL Server Instance Config Wizard: Security
|
||||
The content of the security options portion of the MySQL Server
|
||||
Instance Configuration Wizard will depend on whether this is a new
|
||||
installation, or modifying an existing installation.
|
||||
|
||||
To set the root password, enter the desired password into both the
|
||||
New root password and Confirm boxes. If you are reconfiguring an
|
||||
existing server, you need to enter the existing root password into
|
||||
the Current root password box.
|
||||
* Setting the root password for a new installation
|
||||
It is strongly recommended that you set a root password for
|
||||
your MySQL server, and the MySQL Server Instance Config Wizard
|
||||
requires by default that you do so. If you do not wish to set
|
||||
a root password, uncheck the box next to the Modify Security
|
||||
Settings option.
|
||||
MySQL Server Instance Config Wizard: Security
|
||||
|
||||
* To set the root password, enter the desired password into both
|
||||
the New root password and Confirm boxes.
|
||||
Setting the root password for an existing installation
|
||||
If you are modifying the configuration of an existing
|
||||
configuration, or you are installing an upgrade and the MySQL
|
||||
Server Instance Configuration Wizard has detected an existing
|
||||
MySQL system, then you must enter the existing password for
|
||||
root before changing the configuration information.
|
||||
MySQL Server Instance Config Wizard: Security (Existing
|
||||
Installation)
|
||||
If you want to change the current root password, enter the
|
||||
desired new password into both the New root password and
|
||||
Confirm boxes.
|
||||
|
||||
To allow root logins from across the network, check the box next
|
||||
to the Enable root access from remote machines option. This
|
||||
|
@ -4718,7 +4669,7 @@ InnoDB: foreign key constraint system tables created
|
|||
something like this, which indicates that the server is ready to
|
||||
service client connections:
|
||||
mysqld: ready for connections
|
||||
Version: '5.1.41' socket: '' port: 3306
|
||||
Version: '5.1.46' socket: '' port: 3306
|
||||
|
||||
The server continues to write to the console any further
|
||||
diagnostic output it produces. You can open a new console window
|
||||
|
@ -5104,7 +5055,7 @@ C:\> sc delete mysql
|
|||
Windows.
|
||||
|
||||
2. You should always back up your current MySQL installation
|
||||
before performing an upgrade. See Section 6.1, "Database
|
||||
before performing an upgrade. See Section 6.2, "Database
|
||||
Backup Methods."
|
||||
|
||||
3. Download the latest Windows distribution of MySQL from
|
||||
|
@ -5389,7 +5340,7 @@ ROM db" mysql
|
|||
names that are compatible with the current ANSI code pages.
|
||||
For example, the following Japanese directory name will not
|
||||
work in the Western locale (code page 1252):
|
||||
datadir="C:/维基百科关于中文维基百科"
|
||||
datadir="C:/私たちのプロジェクトのデータ"
|
||||
The same limitation applies to directory and file names
|
||||
referred to in SQL statements, such as the data file path name
|
||||
in LOAD DATA INFILE.
|
||||
|
@ -5451,10 +5402,9 @@ Note
|
|||
from the Bazaar tree. For production use, we do not advise using a
|
||||
MySQL server built by yourself from source. Normally, it is best
|
||||
to use precompiled binary distributions of MySQL that are built
|
||||
specifically for optimal performance on Windows by Sun
|
||||
Microsystems, Inc. Instructions for installing binary
|
||||
distributions are available in Section 2.5, "Installing MySQL on
|
||||
Windows."
|
||||
specifically for optimal performance on Windows by Oracle
|
||||
Corporation. Instructions for installing binary distributions are
|
||||
available in Section 2.5, "Installing MySQL on Windows."
|
||||
|
||||
To build MySQL on Windows from source, you must satisfy the
|
||||
following system, compiler, and resource requirements:
|
||||
|
@ -5514,8 +5464,8 @@ Note
|
|||
You also need a MySQL source distribution for Windows, which can
|
||||
be obtained two ways:
|
||||
|
||||
* Obtain a source distribution packaged by Sun Microsystems,
|
||||
Inc. These are available from http://dev.mysql.com/downloads/.
|
||||
* Obtain a source distribution packaged by Oracle Corporation.
|
||||
These are available from http://dev.mysql.com/downloads/.
|
||||
|
||||
* Package a source distribution yourself from the latest Bazaar
|
||||
developer source tree. For instructions on pulling the latest
|
||||
|
@ -5525,19 +5475,20 @@ Note
|
|||
If you find something not working as expected, or you have
|
||||
suggestions about ways to improve the current build process on
|
||||
Windows, please send a message to the win32 mailing list. See
|
||||
Section 1.5.1, "MySQL Mailing Lists."
|
||||
Section 1.6.1, "MySQL Mailing Lists."
|
||||
|
||||
2.5.10.1. Building MySQL from Source Using CMake and Visual Studio
|
||||
|
||||
You can build MySQL on Windows by using a combination of cmake and
|
||||
Microsoft Visual Studio .NET 2003 (7.1), Microsoft Visual Studio
|
||||
2005 (8.0) or Microsoft Visual C++ 2005 Express Edition. You must
|
||||
have the appropriate Microsoft Platform SDK installed.
|
||||
2005 (8.0), Microsoft Visual Studio 2008 (9.0) or Microsoft Visual
|
||||
C++ 2005 Express Edition. You must have the appropriate Microsoft
|
||||
Platform SDK installed.
|
||||
|
||||
Note
|
||||
|
||||
To compile from the source code on Windows you must use the
|
||||
standard source distribution (for example, mysql-5.1.41.tar.gz).
|
||||
standard source distribution (for example, mysql-5.1.46.tar.gz).
|
||||
You build from the same distribution as used to build MySQL on
|
||||
Unix, Linux and other platforms. Do not use the Windows Source
|
||||
distributions as they do not contain the necessary configuration
|
||||
|
@ -5551,8 +5502,19 @@ Note
|
|||
tool that can read .zip files. This directory is the work
|
||||
directory in the following instructions.
|
||||
|
||||
2. Using a command shell, navigate to the work directory and run
|
||||
the following command:
|
||||
Note
|
||||
You must run the commands in the win directory from the
|
||||
top-level source directory. Do not change into the win
|
||||
directory, as the commands will not be executed correctly.
|
||||
|
||||
2. Start a command shell. If you have not configured the PATH and
|
||||
other environment variables for all command shells, you may be
|
||||
able to start a command shell from the Start Menu within the
|
||||
Windows Visual Studio menu that contains the necessary
|
||||
environment changes.
|
||||
|
||||
3. Within the command shell, navigate to the work directory and
|
||||
run the following command:
|
||||
C:\workdir>win\configure.js options
|
||||
If you have associated the .js file extension with an
|
||||
application such as a text editor, then you may need to use
|
||||
|
@ -5603,16 +5565,19 @@ C:\workdir>cscript win\configure.js options
|
|||
C:\workdir>win\configure.js WITH_INNOBASE_STORAGE_ENGINE
|
||||
WITH_PARTITION_STORAGE_ENGINE MYSQL_SERVER_SUFFIX=-pro
|
||||
|
||||
3. From the work directory, execute the win\build-vs8.bat or
|
||||
win\build-vs71.bat file, depending on the version of Visual
|
||||
4. From the work directory, execute the win\build-vs9.bat
|
||||
(Windows Visual Studio 2008), win\build-vs8.bat (Windows
|
||||
Visual Studio 2005), or win\build-vs71.bat (Windows Visual
|
||||
Stidion 2003) script, depending on the version of Visual
|
||||
Studio you have installed. The script invokes CMake, which
|
||||
generates the mysql.sln solution file.
|
||||
You can also use win\build-vs8_x64.bat to build the 64-bit
|
||||
version of MySQL. However, you cannot build the 64-bit version
|
||||
with Visual Studio Express Edition. You must use Visual Studio
|
||||
2005 (8.0) or higher.
|
||||
You can also use the corresponding 64-bit file (for example
|
||||
win\build-vs8_x64.bat or win\build-vs9_x64.bat) to build the
|
||||
64-bit version of MySQL. However, you cannot build the 64-bit
|
||||
version with Visual Studio Express Edition. You must use
|
||||
Visual Studio 2005 (8.0) or higher.
|
||||
|
||||
4. From the work directory, open the generated mysql.sln file
|
||||
5. From the work directory, open the generated mysql.sln file
|
||||
with Visual Studio and select the proper configuration using
|
||||
the Configuration menu. The menu provides Debug, Release,
|
||||
RelwithDebInfo, MinRelInfo options. Then select Solution >
|
||||
|
@ -5621,7 +5586,7 @@ C:\workdir>win\configure.js WITH_INNOBASE_STORAGE_ENGINE
|
|||
important later when you run the test script because that
|
||||
script needs to know which configuration you used.
|
||||
|
||||
5. Test the server. The server built using the preceding
|
||||
6. Test the server. The server built using the preceding
|
||||
instructions expects that the MySQL base directory and data
|
||||
directory are C:\mysql and C:\mysql\data by default. If you
|
||||
want to test your server using the source tree root directory
|
||||
|
@ -5681,29 +5646,36 @@ C:\> mkdir C:\mysql\sql-bench
|
|||
Installation Notes."
|
||||
|
||||
2. From the work directory, copy into the C:\mysql directory the
|
||||
following directories:
|
||||
following files and directories:
|
||||
C:\> cd \workdir
|
||||
C:\workdir> copy client_release\*.exe C:\mysql\bin
|
||||
C:\workdir> copy client_debug\mysqld.exe C:\mysql\bin\mysqld-debug.ex
|
||||
e
|
||||
C:\workdir> mkdir C:\mysql
|
||||
C:\workdir> mkdir C:\mysql\bin
|
||||
C:\workdir> copy client\Release\*.exe C:\mysql\bin
|
||||
C:\workdir> copy sql\Release\mysqld.exe C:\mysql\bin\mysqld.exe
|
||||
C:\workdir> xcopy scripts\*.* C:\mysql\scripts /E
|
||||
C:\workdir> xcopy share\*.* C:\mysql\share /E
|
||||
If you want to compile other clients and link them to MySQL,
|
||||
you should also copy several libraries and header files:
|
||||
C:\workdir> copy lib_debug\mysqlclient.lib C:\mysql\lib\debug
|
||||
C:\workdir> copy lib_debug\libmysql.* C:\mysql\lib\debug
|
||||
C:\workdir> copy lib_debug\zlib.* C:\mysql\lib\debug
|
||||
C:\workdir> copy lib_release\mysqlclient.lib C:\mysql\lib\opt
|
||||
C:\workdir> copy lib_release\libmysql.* C:\mysql\lib\opt
|
||||
C:\workdir> copy lib_release\zlib.* C:\mysql\lib\opt
|
||||
C:\workdir> copy lib\Release\mysqlclient.lib C:\mysql\lib\debug
|
||||
C:\workdir> copy lib\Release\libmysql.* C:\mysql\lib\debug
|
||||
C:\workdir> copy lib\Release\zlib.* C:\mysql\lib\debug
|
||||
C:\workdir> copy lib\Release\mysqlclient.lib C:\mysql\lib\opt
|
||||
C:\workdir> copy lib\Release\libmysql.* C:\mysql\lib\opt
|
||||
C:\workdir> copy lib\Release\zlib.* C:\mysql\lib\opt
|
||||
C:\workdir> copy include\*.h C:\mysql\include
|
||||
C:\workdir> copy libmysql\libmysql.def C:\mysql\include
|
||||
|
||||
Note
|
||||
If you have compiled a Debug, rather than Release solution,
|
||||
you can replace Release with Debug in the source file names
|
||||
shown above.
|
||||
If you want to benchmark MySQL, you should also do this:
|
||||
C:\workdir> xcopy sql-bench\*.* C:\mysql\bench /E
|
||||
|
||||
After installation, set up and start the server in the same way as
|
||||
for binary Windows distributions. See Section 2.5, "Installing
|
||||
MySQL on Windows."
|
||||
for binary Windows distributions. This includes creating the
|
||||
system tables by running mysql_install_db. For more information,
|
||||
see Section 2.5, "Installing MySQL on Windows."
|
||||
|
||||
2.5.11. Compiling MySQL Clients on Windows
|
||||
|
||||
|
@ -6626,14 +6598,23 @@ DLTLIB LIB(MYSQLINST)
|
|||
|
||||
Upgrading an existing MySQL instance
|
||||
|
||||
You need to execute the upgrade command, MYSQLINST/UPGMYSQL. You
|
||||
must specify 6 parameters to perform an upgrade:
|
||||
You need to execute the upgrade command, MYSQLINST/UPGMYSQL.
|
||||
|
||||
Note
|
||||
|
||||
You cannot use MYSQLINST/UPGMYSQL to upgrade between major
|
||||
versions of MySQL (for example from 5.0 to 5.1). For information
|
||||
and advice on migrating between major versions you can use the
|
||||
advice provided in Section 2.4.1.1, "Upgrading from MySQL 5.0 to
|
||||
5.1."
|
||||
|
||||
You must specify 6 parameters to perform an upgrade:
|
||||
|
||||
* DIR('/QOpenSys/usr/local/') --- sets the installation location
|
||||
for the MySQL files. The directory will be created if it does
|
||||
not already exist. This is the directory that the MySQL server
|
||||
will be installed into, inside a directory with a name
|
||||
matching the version and release. For example if installing
|
||||
matching the version and release. For example, if installing
|
||||
MySQL 5.1.39 with the DIR set to /QOpenSys/usr/local/ would
|
||||
result in /QOpenSys/usr/local/mysql-5.1.39-i5os-power64 and a
|
||||
symbolic link to this directory will be created in
|
||||
|
@ -7167,7 +7148,7 @@ shell> bin/mysqld_safe --user=mysql &
|
|||
logged in to the system as mysql, in which case you can omit
|
||||
the --user option from the command.
|
||||
Further instructions for running MySQL as an unprivileged user
|
||||
are given in Section 5.3.5, "How to Run MySQL as a Normal
|
||||
are given in Section 5.3.6, "How to Run MySQL as a Normal
|
||||
User."
|
||||
If you neglected to create the grant tables before proceeding
|
||||
to this step, the following message appears in the error log
|
||||
|
@ -7185,10 +7166,10 @@ shell> bin/mysqladmin variables
|
|||
on your platform and version of MySQL, but should be similar
|
||||
to that shown here:
|
||||
shell> bin/mysqladmin version
|
||||
mysqladmin Ver 14.12 Distrib 5.1.41, for pc-linux-gnu on i686
|
||||
mysqladmin Ver 14.12 Distrib 5.1.46, for pc-linux-gnu on i686
|
||||
...
|
||||
|
||||
Server version 5.1.41
|
||||
Server version 5.1.46
|
||||
Protocol version 10
|
||||
Connection Localhost via UNIX socket
|
||||
UNIX socket /var/lib/mysql/mysql.sock
|
||||
|
@ -7292,7 +7273,7 @@ shell> mysql -vvf test < ./tests/auto_increment.tst
|
|||
|
||||
The MySQL 5.1 installation procedure creates time zone tables in
|
||||
the mysql database. However, you must populate the tables manually
|
||||
using the instructions in Section 9.7, "MySQL Server Time Zone
|
||||
using the instructions in Section 9.6, "MySQL Server Time Zone
|
||||
Support."
|
||||
|
||||
2.13.1.1. Problems Running mysql_install_db
|
||||
|
@ -7323,7 +7304,7 @@ mysqld ended
|
|||
carefully. The log should be located in the directory XXXXXX
|
||||
named by the error message and should indicate why mysqld
|
||||
didn't start. If you do not understand what happened, include
|
||||
the log when you post a bug report. See Section 1.6, "How to
|
||||
the log when you post a bug report. See Section 1.7, "How to
|
||||
Report Bugs or Problems."
|
||||
|
||||
* There is a mysqld process running
|
||||
|
@ -7972,7 +7953,7 @@ Note
|
|||
MYSQL_PS1 The command prompt to use in the mysql command-line
|
||||
client.
|
||||
MYSQL_PWD The default password when connecting to mysqld. Note
|
||||
that using this is insecure. See Section 5.5.6.2, "End-User
|
||||
that using this is insecure. See Section 5.3.2.2, "End-User
|
||||
Guidelines for Password Security."
|
||||
MYSQL_TCP_PORT The default TCP/IP port number.
|
||||
MYSQL_UNIX_PORT The default Unix socket file name; used for
|
||||
|
|
|
@ -13,10 +13,9 @@ Note
|
|||
from the Bazaar tree. For production use, we do not advise using a
|
||||
MySQL server built by yourself from source. Normally, it is best
|
||||
to use precompiled binary distributions of MySQL that are built
|
||||
specifically for optimal performance on Windows by Sun
|
||||
Microsystems, Inc. Instructions for installing binary
|
||||
distributions are available in Section 2.5, "Installing MySQL on
|
||||
Windows."
|
||||
specifically for optimal performance on Windows by Oracle
|
||||
Corporation. Instructions for installing binary distributions are
|
||||
available in Section 2.5, "Installing MySQL on Windows."
|
||||
|
||||
To build MySQL on Windows from source, you must satisfy the
|
||||
following system, compiler, and resource requirements:
|
||||
|
@ -76,8 +75,8 @@ Note
|
|||
You also need a MySQL source distribution for Windows, which can
|
||||
be obtained two ways:
|
||||
|
||||
* Obtain a source distribution packaged by Sun Microsystems,
|
||||
Inc. These are available from http://dev.mysql.com/downloads/.
|
||||
* Obtain a source distribution packaged by Oracle Corporation.
|
||||
These are available from http://dev.mysql.com/downloads/.
|
||||
|
||||
* Package a source distribution yourself from the latest Bazaar
|
||||
developer source tree. For instructions on pulling the latest
|
||||
|
@ -87,19 +86,20 @@ Note
|
|||
If you find something not working as expected, or you have
|
||||
suggestions about ways to improve the current build process on
|
||||
Windows, please send a message to the win32 mailing list. See
|
||||
Section 1.5.1, "MySQL Mailing Lists."
|
||||
Section 1.6.1, "MySQL Mailing Lists."
|
||||
|
||||
2.5.10.1. Building MySQL from Source Using CMake and Visual Studio
|
||||
|
||||
You can build MySQL on Windows by using a combination of cmake and
|
||||
Microsoft Visual Studio .NET 2003 (7.1), Microsoft Visual Studio
|
||||
2005 (8.0) or Microsoft Visual C++ 2005 Express Edition. You must
|
||||
have the appropriate Microsoft Platform SDK installed.
|
||||
2005 (8.0), Microsoft Visual Studio 2008 (9.0) or Microsoft Visual
|
||||
C++ 2005 Express Edition. You must have the appropriate Microsoft
|
||||
Platform SDK installed.
|
||||
|
||||
Note
|
||||
|
||||
To compile from the source code on Windows you must use the
|
||||
standard source distribution (for example, mysql-5.1.41.tar.gz).
|
||||
standard source distribution (for example, mysql-5.1.46.tar.gz).
|
||||
You build from the same distribution as used to build MySQL on
|
||||
Unix, Linux and other platforms. Do not use the Windows Source
|
||||
distributions as they do not contain the necessary configuration
|
||||
|
@ -113,8 +113,19 @@ Note
|
|||
tool that can read .zip files. This directory is the work
|
||||
directory in the following instructions.
|
||||
|
||||
2. Using a command shell, navigate to the work directory and run
|
||||
the following command:
|
||||
Note
|
||||
You must run the commands in the win directory from the
|
||||
top-level source directory. Do not change into the win
|
||||
directory, as the commands will not be executed correctly.
|
||||
|
||||
2. Start a command shell. If you have not configured the PATH and
|
||||
other environment variables for all command shells, you may be
|
||||
able to start a command shell from the Start Menu within the
|
||||
Windows Visual Studio menu that contains the necessary
|
||||
environment changes.
|
||||
|
||||
3. Within the command shell, navigate to the work directory and
|
||||
run the following command:
|
||||
C:\workdir>win\configure.js options
|
||||
If you have associated the .js file extension with an
|
||||
application such as a text editor, then you may need to use
|
||||
|
@ -165,16 +176,19 @@ C:\workdir>cscript win\configure.js options
|
|||
C:\workdir>win\configure.js WITH_INNOBASE_STORAGE_ENGINE
|
||||
WITH_PARTITION_STORAGE_ENGINE MYSQL_SERVER_SUFFIX=-pro
|
||||
|
||||
3. From the work directory, execute the win\build-vs8.bat or
|
||||
win\build-vs71.bat file, depending on the version of Visual
|
||||
4. From the work directory, execute the win\build-vs9.bat
|
||||
(Windows Visual Studio 2008), win\build-vs8.bat (Windows
|
||||
Visual Studio 2005), or win\build-vs71.bat (Windows Visual
|
||||
Stidion 2003) script, depending on the version of Visual
|
||||
Studio you have installed. The script invokes CMake, which
|
||||
generates the mysql.sln solution file.
|
||||
You can also use win\build-vs8_x64.bat to build the 64-bit
|
||||
version of MySQL. However, you cannot build the 64-bit version
|
||||
with Visual Studio Express Edition. You must use Visual Studio
|
||||
2005 (8.0) or higher.
|
||||
You can also use the corresponding 64-bit file (for example
|
||||
win\build-vs8_x64.bat or win\build-vs9_x64.bat) to build the
|
||||
64-bit version of MySQL. However, you cannot build the 64-bit
|
||||
version with Visual Studio Express Edition. You must use
|
||||
Visual Studio 2005 (8.0) or higher.
|
||||
|
||||
4. From the work directory, open the generated mysql.sln file
|
||||
5. From the work directory, open the generated mysql.sln file
|
||||
with Visual Studio and select the proper configuration using
|
||||
the Configuration menu. The menu provides Debug, Release,
|
||||
RelwithDebInfo, MinRelInfo options. Then select Solution >
|
||||
|
@ -183,7 +197,7 @@ C:\workdir>win\configure.js WITH_INNOBASE_STORAGE_ENGINE
|
|||
important later when you run the test script because that
|
||||
script needs to know which configuration you used.
|
||||
|
||||
5. Test the server. The server built using the preceding
|
||||
6. Test the server. The server built using the preceding
|
||||
instructions expects that the MySQL base directory and data
|
||||
directory are C:\mysql and C:\mysql\data by default. If you
|
||||
want to test your server using the source tree root directory
|
||||
|
@ -243,26 +257,33 @@ C:\> mkdir C:\mysql\sql-bench
|
|||
Installation Notes."
|
||||
|
||||
2. From the work directory, copy into the C:\mysql directory the
|
||||
following directories:
|
||||
following files and directories:
|
||||
C:\> cd \workdir
|
||||
C:\workdir> copy client_release\*.exe C:\mysql\bin
|
||||
C:\workdir> copy client_debug\mysqld.exe C:\mysql\bin\mysqld-debug.ex
|
||||
e
|
||||
C:\workdir> mkdir C:\mysql
|
||||
C:\workdir> mkdir C:\mysql\bin
|
||||
C:\workdir> copy client\Release\*.exe C:\mysql\bin
|
||||
C:\workdir> copy sql\Release\mysqld.exe C:\mysql\bin\mysqld.exe
|
||||
C:\workdir> xcopy scripts\*.* C:\mysql\scripts /E
|
||||
C:\workdir> xcopy share\*.* C:\mysql\share /E
|
||||
If you want to compile other clients and link them to MySQL,
|
||||
you should also copy several libraries and header files:
|
||||
C:\workdir> copy lib_debug\mysqlclient.lib C:\mysql\lib\debug
|
||||
C:\workdir> copy lib_debug\libmysql.* C:\mysql\lib\debug
|
||||
C:\workdir> copy lib_debug\zlib.* C:\mysql\lib\debug
|
||||
C:\workdir> copy lib_release\mysqlclient.lib C:\mysql\lib\opt
|
||||
C:\workdir> copy lib_release\libmysql.* C:\mysql\lib\opt
|
||||
C:\workdir> copy lib_release\zlib.* C:\mysql\lib\opt
|
||||
C:\workdir> copy lib\Release\mysqlclient.lib C:\mysql\lib\debug
|
||||
C:\workdir> copy lib\Release\libmysql.* C:\mysql\lib\debug
|
||||
C:\workdir> copy lib\Release\zlib.* C:\mysql\lib\debug
|
||||
C:\workdir> copy lib\Release\mysqlclient.lib C:\mysql\lib\opt
|
||||
C:\workdir> copy lib\Release\libmysql.* C:\mysql\lib\opt
|
||||
C:\workdir> copy lib\Release\zlib.* C:\mysql\lib\opt
|
||||
C:\workdir> copy include\*.h C:\mysql\include
|
||||
C:\workdir> copy libmysql\libmysql.def C:\mysql\include
|
||||
|
||||
Note
|
||||
If you have compiled a Debug, rather than Release solution,
|
||||
you can replace Release with Debug in the source file names
|
||||
shown above.
|
||||
If you want to benchmark MySQL, you should also do this:
|
||||
C:\workdir> xcopy sql-bench\*.* C:\mysql\bench /E
|
||||
|
||||
After installation, set up and start the server in the same way as
|
||||
for binary Windows distributions. See Section 2.5, "Installing
|
||||
MySQL on Windows."
|
||||
for binary Windows distributions. This includes creating the
|
||||
system tables by running mysql_install_db. For more information,
|
||||
see Section 2.5, "Installing MySQL on Windows."
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBcomp_err\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBCOMP_ERR\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBCOMP_ERR\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -63,7 +63,7 @@ shell> \fBcomp_err [\fR\fB\fIoptions\fR\fR\fB]\fR
|
|||
.\}
|
||||
.PP
|
||||
\fBcomp_err\fR
|
||||
supports the options described in the following list\&.
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -254,7 +254,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBinnochecksum\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBINNOCHECKSUM\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBINNOCHECKSUM\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -59,7 +59,7 @@ shell> \fBinnochecksum [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR
|
|||
.\}
|
||||
.PP
|
||||
\fBinnochecksum\fR
|
||||
supports the options described in the following list\&. For options that refer to page numbers, the numbers are zero\-based\&.
|
||||
supports the following options\&. For options that refer to page numbers, the numbers are zero\-based\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -141,7 +141,7 @@ Verbose mode; print a progress indicator every five seconds\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmake_win_bin_dist\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMAKE_WIN_BIN_DIST" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMAKE_WIN_BIN_DIST" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -67,7 +67,7 @@ bin/mysqld\-max\&.exe=\&.\&./my\-max\-build/sql/release/mysqld\&.exe
|
|||
If you specify a directory, the entire directory will be copied\&.
|
||||
.PP
|
||||
\fBmake_win_bin_dist\fR
|
||||
supports the following options:
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -169,7 +169,7 @@ directories)\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmsql2mysql\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMSQL2MYSQL\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMSQL2MYSQL\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -60,7 +60,7 @@ utility to make the function name substitutions\&. See
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmy_print_defaults\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMY_PRINT_DEFAULTS" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMY_PRINT_DEFAULTS" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -53,7 +53,7 @@ shell> \fBmy_print_defaults mysqlcheck client\fR
|
|||
The output consists of options, one per line, in the form that they would be specified on the command line\&.
|
||||
.PP
|
||||
\fBmy_print_defaults\fR
|
||||
supports the following options:
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -195,7 +195,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmyisam_ftdump\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYISAM_FTDUMP\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYISAM_FTDUMP\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -33,7 +33,13 @@ indexes in
|
|||
MyISAM
|
||||
tables\&. It reads the
|
||||
MyISAM
|
||||
index file directly, so it must be run on the server host where the table is located
|
||||
index file directly, so it must be run on the server host where the table is located\&. Before using
|
||||
\fBmyisam_ftdump\fR, be sure to issue a
|
||||
FLUSH TABLES
|
||||
statement first if the server is running\&.
|
||||
.PP
|
||||
\fBmyisam_ftdump\fR
|
||||
scans and dumps the entire index, which is not particularly fast\&. On the other hand, the distribution of words changes infrequently, so it need not be run often\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmyisam_ftdump\fR
|
||||
|
@ -120,6 +126,20 @@ shell> \fBmyisam_ftdump /usr/local/mysql/data/test/mytexttable 1\fR
|
|||
.RE
|
||||
.\}
|
||||
.PP
|
||||
You can use
|
||||
\fBmyisam_ftdump\fR
|
||||
to generate a list of index entries in order of frequency of occurrence like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmyisam_ftdump \-c mytexttable 1 | sort \-r\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmyisam_ftdump\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
|
@ -222,7 +242,7 @@ Verbose mode\&. Print more output about what the program does\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmyisamchk\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYISAMCHK\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYISAMCHK\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -219,12 +219,16 @@ CHECK TABLE
|
|||
instead of
|
||||
\fBmyisamchk\fR
|
||||
to check tables\&. See
|
||||
Section\ \&12.5.2.3, \(lqCHECK TABLE Syntax\(rq\&.
|
||||
Section\ \&12.4.2.3, \(lqCHECK TABLE Syntax\(rq\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.PP
|
||||
\fBmyisamchk\fR
|
||||
supports the options in the following table\&. It also reads option files and supports the options for processing them described at
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[myisamchk]
|
||||
option file group\&.
|
||||
\fBmyisamchk\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.SH "MYISAMCHK GENERAL OPTIONS"
|
||||
.\" options: myisamchk
|
||||
|
@ -521,18 +525,7 @@ system variable\&. For more information, see the description of
|
|||
myisam_stats_method
|
||||
in
|
||||
Section\ \&5.1.4, \(lqServer System Variables\(rq, and
|
||||
Section\ \&7.4.7, \(lqMyISAM Index Statistics Collection\(rq\&. For MySQL 5\&.1,
|
||||
stats_method
|
||||
was added in MySQL 5\&.0\&.14\&. For older versions, the statistics collection method is equivalent to
|
||||
nulls_equal\&.
|
||||
.PP
|
||||
The
|
||||
ft_min_word_len
|
||||
and
|
||||
ft_max_word_len
|
||||
variables are available as of MySQL 4\&.0\&.0\&.
|
||||
ft_stopword_file
|
||||
is available as of MySQL 4\&.0\&.19\&.
|
||||
Section\ \&7.4.7, \(lqMyISAM Index Statistics Collection\(rq\&.
|
||||
.PP
|
||||
ft_min_word_len
|
||||
and
|
||||
|
@ -824,7 +817,7 @@ file as
|
|||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -981,7 +974,7 @@ and
|
|||
\fB\-\-quick\fR,
|
||||
\fB\-q\fR
|
||||
.sp
|
||||
Achieve a faster repair by not modifying the data file\&. You can specify this option twice to force
|
||||
Achieve a faster repair by modifying only the index file, not the data file\&. You can specify this option twice to force
|
||||
\fBmyisamchk\fR
|
||||
to modify the original data file in case of duplicate keys\&.
|
||||
.RE
|
||||
|
@ -1469,7 +1462,11 @@ The format used to store table rows\&. The preceding examples use
|
|||
Fixed length\&. Other possible values are
|
||||
Compressed
|
||||
and
|
||||
Packed\&.
|
||||
Packed\&. (Packed
|
||||
corresponds to what
|
||||
SHOW TABLE STATUS
|
||||
reports as
|
||||
Dynamic\&.)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1585,7 +1582,7 @@ The number of rows in the table\&.
|
|||
Deleted blocks
|
||||
.sp
|
||||
How many deleted blocks still have reserved space\&. You can optimize your table to minimize this space\&. See
|
||||
Section\ \&6.4.4, \(lqTable Optimization\(rq\&.
|
||||
Section\ \&6.6.4, \(lqMyISAM Table Optimization\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1613,7 +1610,7 @@ Data records\&.
|
|||
Deleted data
|
||||
.sp
|
||||
How many bytes of unreclaimed deleted data there are\&. You can optimize your table to minimize this space\&. See
|
||||
Section\ \&6.4.4, \(lqTable Optimization\(rq\&.
|
||||
Section\ \&6.6.4, \(lqMyISAM Table Optimization\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -2100,7 +2097,7 @@ The number of rows in the table\&.
|
|||
Deleted blocks
|
||||
.sp
|
||||
How many deleted blocks still have reserved space\&. You can optimize your table to minimize this space\&. See
|
||||
Section\ \&6.4.4, \(lqTable Optimization\(rq\&.
|
||||
Section\ \&6.6.4, \(lqMyISAM Table Optimization\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -2238,7 +2235,7 @@ What percentage of the data file is unused\&.
|
|||
Blocks/Record
|
||||
.sp
|
||||
Average number of blocks per row (that is, how many links a fragmented row is composed of)\&. This is always 1\&.0 for fixed\-format tables\&. This value should stay as close to 1\&.0 as possible\&. If it gets too large, you can reorganize the table\&. See
|
||||
Section\ \&6.4.4, \(lqTable Optimization\(rq\&.
|
||||
Section\ \&6.6.4, \(lqMyISAM Table Optimization\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -2447,7 +2444,7 @@ instead of
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmyisamlog\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYISAMLOG\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYISAMLOG\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -225,7 +225,7 @@ Display version information\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmyisampack\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYISAMPACK\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYISAMPACK\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -100,7 +100,7 @@ to rebuild its indexes\&.
|
|||
\fBmyisamchk\fR(1)\&.
|
||||
.PP
|
||||
\fBmyisampack\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
supports the following options\&. It also reads option files and supports the options for processing them described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -149,7 +149,7 @@ Make a backup of each table\'s data file using the name
|
|||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -832,7 +832,7 @@ option to
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql-stress-test.pl\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 10/29/2009
|
||||
.\" Date: 03/31/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL\-STRESS\-TE" "1" "10/29/2009" "MySQL" "MySQL Database System"
|
||||
.TH "\FBMYSQL\-STRESS\-TE" "1" "03/31/2010" "MySQL" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -75,9 +75,9 @@ Display a help message and exit\&.
|
|||
.\}
|
||||
.\" mysql-stress-test.pl: abort-on-error option
|
||||
.\" abort-on-error option: mysql-stress-test.pl
|
||||
\fB\-\-abort\-on\-error\fR
|
||||
\fB\-\-abort\-on\-error=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Unknown\&.
|
||||
Causes the program to abort if an error with severity less than or equal to N was encountered\&. Set to 1 to abort on any error\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -169,7 +169,8 @@ program\&.
|
|||
.\" server-database option: mysql-stress-test.pl
|
||||
\fB\-\-server\-database=\fR\fB\fIdb_name\fR\fR
|
||||
.sp
|
||||
The database to use for the tests\&.
|
||||
The database to use for the tests\&. The default is
|
||||
test\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -333,7 +334,7 @@ option\&.
|
|||
\fB\-\-stress\-init\-file[=\fR\fB\fIpath\fR\fR\fB]\fR
|
||||
.sp
|
||||
\fIfile_name\fR
|
||||
is the location of the file that contains the list of tests\&. If missing, the default file is
|
||||
is the location of the file that contains the list of tests to be run once to initialize the database for the testing\&. If missing, the default file is
|
||||
stress_init\&.txt
|
||||
in the test suite directory\&.
|
||||
.RE
|
||||
|
@ -464,21 +465,6 @@ The duration of stress testing in seconds\&.
|
|||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: test-suffix option
|
||||
.\" test-suffix option: mysql-stress-test.pl
|
||||
\fB\-\-test\-suffix=\fR\fB\fIstr\fR\fR
|
||||
.sp
|
||||
Unknown\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: threads option
|
||||
.\" threads option: mysql-stress-test.pl
|
||||
\fB\-\-threads=\fR\fB\fIN\fR\fR
|
||||
|
@ -503,7 +489,7 @@ Verbose mode\&. Print more information about what the program does\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright \(co 2007, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
File diff suppressed because it is too large
Load diff
60
man/mysql.1
60
man/mysql.1
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -103,7 +103,13 @@ shell> \fBmysql \fR\fB\fIdb_name\fR\fR\fB < \fR\fB\fIscript\&.sql\fR\fR\fB > \fR
|
|||
.\" startup parameters: mysql
|
||||
.PP
|
||||
\fBmysql\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysql]
|
||||
and
|
||||
[client]
|
||||
option file groups\&.
|
||||
\fBmysql\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -182,7 +188,7 @@ option\&.
|
|||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -345,7 +351,7 @@ latin1
|
|||
character set by default\&. You can usually fix such issues by using this option to force the client to use the system character set instead\&.
|
||||
.sp
|
||||
See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq, for more information\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq, for more information\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -550,10 +556,8 @@ the section called \(lqMYSQL COMMANDS\(rq\&.
|
|||
\fB\-\-no\-auto\-rehash\fR,
|
||||
\fB\-A\fR
|
||||
.sp
|
||||
Deprecated form of
|
||||
\fB\-skip\-auto\-rehash\fR\&. Use
|
||||
\fB\-\-disable\-auto\-rehash\fR
|
||||
instead\&. See the description for
|
||||
This has the same effect as
|
||||
\fB\-skip\-auto\-rehash\fR\&. See the description for
|
||||
\fB\-\-auto\-rehash\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
|
@ -589,6 +593,8 @@ Do not beep when errors occur\&.
|
|||
Deprecated, use
|
||||
\fB\-\-disable\-named\-commands\fR
|
||||
instead\&.
|
||||
\fB\-\-no\-named\-commands\fR
|
||||
is removed in MySQL 5\&.5\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -607,6 +613,8 @@ Deprecated form of
|
|||
\fB\-\-skip\-pager\fR\&. See the
|
||||
\fB\-\-pager\fR
|
||||
option\&.
|
||||
\fB\-\-no\-pager\fR
|
||||
is removed in MySQL 5\&.5\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -621,8 +629,12 @@ option\&.
|
|||
.\" no-tee option: mysql
|
||||
\fB\-\-no\-tee\fR
|
||||
.sp
|
||||
Do not copy output to a file\&.
|
||||
the section called \(lqMYSQL COMMANDS\(rq, discusses tee files further\&.
|
||||
Deprecated form of
|
||||
\fB\-\-skip\-tee\fR\&. See the
|
||||
\fB\-\-tee\fR
|
||||
option\&.
|
||||
\fB\-\-no\-tee\fR
|
||||
is removed in MySQL 5\&.5\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -684,10 +696,12 @@ value following the
|
|||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysql\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -703,7 +717,7 @@ Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
|||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only for connections to a local server, and only if the server supports named\-pipe connections\&.
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -950,9 +964,7 @@ option\&.
|
|||
\fB\-\-skip\-column\-names\fR,
|
||||
\fB\-N\fR
|
||||
.sp
|
||||
Do not write column names in results\&. The short format,
|
||||
\fB\-N\fR
|
||||
is deprecated, use the long format instead\&.
|
||||
Do not write column names in results\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -968,9 +980,7 @@ is deprecated, use the long format instead\&.
|
|||
\fB\-\-skip\-line\-numbers\fR,
|
||||
\fB\-L\fR
|
||||
.sp
|
||||
Do not write line numbers for errors\&. Useful when you want to compare result files that include error messages\&. The short format,
|
||||
\fB\-L\fR
|
||||
is deprecated, use the long format instead\&.
|
||||
Do not write line numbers for errors\&. Useful when you want to compare result files that include error messages\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1005,7 +1015,7 @@ localhost, the Unix socket file to use, or, on Windows, the name of the named pi
|
|||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server via SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&5.5.7.3, \(lqSSL Command Options\(rq\&.
|
||||
Section\ \&5.5.6.3, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1229,7 +1239,7 @@ shell> \fBmysql \-\-xml \-uroot \-e "SHOW VARIABLES LIKE \'version%\'"\fR
|
|||
You can also set the following variables by using
|
||||
\fB\-\-\fR\fB\fIvar_name\fR\fR\fB=\fR\fB\fIvalue\fR\fR\&. The
|
||||
\fB\-\-set\-variable\fR
|
||||
format is deprecated\&.
|
||||
format is deprecated and is removed in MySQL 5\&.5\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -1325,7 +1335,7 @@ environment variable\&.
|
|||
The
|
||||
\&.mysql_history
|
||||
should be protected with a restrictive access mode because sensitive information might be written to it, such as the text of SQL statements that contain passwords\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
.PP
|
||||
If you do not want to maintain a history file, first remove
|
||||
\&.mysql_history
|
||||
|
@ -2805,7 +2815,7 @@ Section\ \&21.9.11, \(lqControlling Automatic Reconnection Behavior\(rq\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
@ -2817,7 +2827,7 @@ You should have received a copy of the GNU General Public License along with the
|
|||
.IP " 1." 4
|
||||
Bug#25946
|
||||
.RS 4
|
||||
\%http://bugs.mysql.com/25946
|
||||
\%http://bugs.mysql.com/bug.php?id=25946
|
||||
.RE
|
||||
.SH "SEE ALSO"
|
||||
For more information, please refer to the MySQL Reference Manual,
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql.server\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL\&.SERVER\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL\&.SERVER\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -62,7 +62,7 @@ sections, although you should rename such sections to
|
|||
when using MySQL 5\&.1\&.
|
||||
.PP
|
||||
\fBmysql\&.server\fR
|
||||
supports the following options:
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -176,7 +176,7 @@ The login user name to use for running
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_client_test\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 10/29/2009
|
||||
.\" Date: 03/31/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_CLIENT_TEST" "1" "10/29/2009" "MySQL" "MySQL Database System"
|
||||
.TH "\FBMYSQL_CLIENT_TEST" "1" "03/31/2010" "MySQL" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -40,10 +40,15 @@ and its test language\&.
|
|||
is similar but used for testing the embedded server\&. Both programs are run as part of the test suite\&.
|
||||
.PP
|
||||
The source code for the programs can be found in in
|
||||
test/mysql_client_test\&.c
|
||||
tests/mysql_client_test\&.c
|
||||
in a source distribution\&. The program serves as a good source of examples illustrating how to use various features of the client API\&.
|
||||
.PP
|
||||
\fBmysql_client_test\fR
|
||||
is used in a test by the same name in the main tests suite of
|
||||
\fBmysql\-test\-run\&.pl\fR
|
||||
but may also be run directly\&. Unlike the other programs listed here, it does not read an external description of what tests to run\&. Instead, all tests are coded into the program, which is written to cover all aspects of the C language API\&.
|
||||
.PP
|
||||
\fBmysql_client_test\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -70,10 +75,10 @@ Display a help message and exit\&.
|
|||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-b \fR\fB\fIdir_name\fR\fR,
|
||||
\fB\-\-basedir=\fR\fB\fIdir_name\fR\fR,
|
||||
.\" mysql_client_test: basedir option
|
||||
.\" basedir option: mysql_client_test
|
||||
\fB\-\-basedir=\fR\fB\fIdir_name\fR\fR
|
||||
\fB\-b \fR\fB\fIdir_name\fR\fR
|
||||
.sp
|
||||
The base directory for the tests\&.
|
||||
.RE
|
||||
|
@ -86,10 +91,10 @@ The base directory for the tests\&.
|
|||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-t \fR\fB\fIcount\fR\fR,
|
||||
\fB\-\-count=\fR\fB\fIcount\fR\fR,
|
||||
.\" mysql_client_test: count option
|
||||
.\" count option: mysql_client_test
|
||||
\fB\-\-count=\fR\fB\fIcount\fR\fR
|
||||
\fB\-t \fR\fB\fIcount\fR\fR
|
||||
.sp
|
||||
The number of times to execute the tests\&.
|
||||
.RE
|
||||
|
@ -137,10 +142,10 @@ value is
|
|||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-g \fR\fB\fIoption\fR\fR,
|
||||
\fB\-\-getopt\-ll\-test=\fR\fB\fIoption\fR\fR,
|
||||
.\" mysql_client_test: getopt-ll-test option
|
||||
.\" getopt-ll-test option: mysql_client_test
|
||||
\fB\-\-getopt\-ll\-test=\fR\fB\fIoption\fR\fR
|
||||
\fB\-g \fR\fB\fIoption\fR\fR
|
||||
.sp
|
||||
Option to use for testing bugs in the
|
||||
getopt
|
||||
|
@ -213,10 +218,10 @@ The TCP/IP port number to use for the connection\&.
|
|||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-A \fR\fB\fIarg\fR\fR,
|
||||
\fB\-\-server\-arg=\fR\fB\fIarg\fR\fR,
|
||||
.\" mysql_client_test: server-arg option
|
||||
.\" server-arg option: mysql_client_test
|
||||
\fB\-\-server\-arg=\fR\fB\fIarg\fR\fR
|
||||
\fB\-A \fR\fB\fIarg\fR\fR
|
||||
.sp
|
||||
Argument to send to the embedded server\&.
|
||||
.RE
|
||||
|
@ -229,8 +234,8 @@ Argument to send to the embedded server\&.
|
|||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-T\fR,
|
||||
\fB\-\-show\-tests\fR
|
||||
\fB\-\-show\-tests\fR,
|
||||
\fB\-T\fR
|
||||
.sp
|
||||
Show all test names\&.
|
||||
.RE
|
||||
|
@ -277,12 +282,13 @@ localhost
|
|||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-c\fR,
|
||||
\fB\-\-testcase\fR
|
||||
\fB\-\-testcase\fR,
|
||||
\fB\-c\fR
|
||||
.sp
|
||||
The option may disable some code when run as a
|
||||
\fBmysql\-test\-run\&.pl\fR
|
||||
test case\&.
|
||||
The option is used when called from
|
||||
\fBmysql\-test\-run\&.pl\fR, so that
|
||||
\fBmysql_client_test\fR
|
||||
may optionally behave in a different way than if called manually, for example by skipping some tests\&. Currently, there is no difference in behavior but the option is included in order to make this possible\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -320,7 +326,7 @@ mysql\-test/var\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright \(co 2007, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_config\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_CONFIG\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_CONFIG\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -30,7 +30,7 @@ mysql_config \- get compile options for compiling clients
|
|||
provides you with useful information for compiling your MySQL client and connecting it to MySQL\&.
|
||||
.PP
|
||||
\fBmysql_config\fR
|
||||
supports the following options:
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -224,7 +224,7 @@ this way, be sure to invoke it within backtick (\(lq`\(rq) characters\&. That te
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_convert_table_format\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_CONVERT_TAB" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_CONVERT_TAB" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -115,10 +115,10 @@ Connect to the MySQL server on the given host\&.
|
|||
.\" password option: mysql_convert_table_format
|
||||
\fB\-\-password=\fR\fB\fIpassword\fR\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. Note that the password value is not optional for this option, unlike for other MySQL programs\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
The password to use when connecting to the server\&. Note that the password value is not optional for this option, unlike for other MySQL programs\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -216,7 +216,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_find_rows\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_FIND_ROWS\F" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_FIND_ROWS\F" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -151,7 +151,7 @@ Start output from this row\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_fix_extensions\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_FIX_EXTENSI" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_FIX_EXTENSI" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -61,7 +61,7 @@ shell> \fBmysql_fix_extensions \fR\fB\fIdata_dir\fR\fR
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_fix_privilege_tables\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_FIX_PRIVILE" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_FIX_PRIVILE" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -131,7 +131,9 @@ mysql> \fBSOURCE share/mysql_fix_privilege_tables\&.sql\fR
|
|||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
Prior to version 5\&.1\&.17, this script is found in the
|
||||
Prior to version 5\&.1\&.17, the
|
||||
mysql_fix_privilege_tables\&.sql
|
||||
script is found in the
|
||||
scripts
|
||||
directory\&.
|
||||
.sp .5v
|
||||
|
@ -157,7 +159,7 @@ After running the script, stop the server and restart it\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_install_db\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_INSTALL_DB\" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_INSTALL_DB\" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -94,8 +94,12 @@ environment variable to the full path name of a server that has all options enab
|
|||
will use that server\&.
|
||||
.PP
|
||||
\fBmysql_install_db\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysql_install_db]
|
||||
and (if they are common to
|
||||
\fBmysqld\fR)
|
||||
[mysqld]
|
||||
option file groups\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -248,7 +252,7 @@ For internal use\&. This option is used for creating Windows distributions\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_secure_installation\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_SECURE_INST" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_SECURE_INST" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -96,7 +96,7 @@ The script will prompt you to determine which actions to perform\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_setpermission\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_SETPERMISSI" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_SETPERMISSI" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -109,10 +109,10 @@ Connect to the MySQL server on the given host\&.
|
|||
.\" password option: mysql_setpermission
|
||||
\fB\-\-password=\fR\fB\fIpassword\fR\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. Note that the password value is not optional for this option, unlike for other MySQL programs\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
The password to use when connecting to the server\&. Note that the password value is not optional for this option, unlike for other MySQL programs\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -163,7 +163,7 @@ The MySQL user name to use when connecting to the server\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_tzinfo_to_sql\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_TZINFO_TO_S" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_TZINFO_TO_S" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -33,11 +33,11 @@ program loads the time zone tables in the
|
|||
mysql
|
||||
database\&. It is used on systems that have a
|
||||
zoneinfo
|
||||
database (the set of files describing time zones)\&. Examples of such systems are Linux, FreeBSD, Sun Solaris, and Mac OS X\&. One likely location for these files is the
|
||||
database (the set of files describing time zones)\&. Examples of such systems are Linux, FreeBSD, Solaris, and Mac OS X\&. One likely location for these files is the
|
||||
/usr/share/zoneinfo
|
||||
directory (/usr/share/lib/zoneinfo
|
||||
on Solaris)\&. If your system does not have a zoneinfo database, you can use the downloadable package described in
|
||||
Section\ \&9.7, \(lqMySQL Server Time Zone Support\(rq\&.
|
||||
Section\ \&9.6, \(lqMySQL Server Time Zone Support\(rq\&.
|
||||
.PP
|
||||
\fBmysql_tzinfo_to_sql\fR
|
||||
can be invoked several ways:
|
||||
|
@ -113,7 +113,7 @@ After running
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_upgrade\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_UPGRADE\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_UPGRADE\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -52,6 +52,24 @@ for manual table repair strategies\&.
|
|||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBNote\fR
|
||||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
On Windows Server 2008 and Windows Vista, you must run
|
||||
\fBmysql_upgrade\fR
|
||||
with administrator privileges\&. You can do this by running a Command Prompt as Administrator and running the command\&. Failure to do so may result in the upgrade failing to execute correctly\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBCaution\fR
|
||||
.ps -1
|
||||
.br
|
||||
|
@ -59,7 +77,7 @@ for manual table repair strategies\&.
|
|||
You should always back up your current MySQL installation
|
||||
\fIbefore\fR
|
||||
performing an upgrade\&. See
|
||||
Section\ \&6.1, \(lqDatabase Backup Methods\(rq\&.
|
||||
Section\ \&6.2, \(lqDatabase Backup Methods\(rq\&.
|
||||
.PP
|
||||
Some upgrade incompatibilities may require special handling before you upgrade your MySQL installation and run
|
||||
\fBmysql_upgrade\fR\&. See
|
||||
|
@ -132,7 +150,7 @@ FOR UPGRADE
|
|||
option of the
|
||||
CHECK TABLE
|
||||
statement (see
|
||||
Section\ \&12.5.2.3, \(lqCHECK TABLE Syntax\(rq)\&.
|
||||
Section\ \&12.4.2.3, \(lqCHECK TABLE Syntax\(rq)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -144,7 +162,7 @@ Section\ \&12.5.2.3, \(lqCHECK TABLE Syntax\(rq)\&.
|
|||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fIfix_priv_tables\fR
|
||||
represents a script generated interally by
|
||||
represents a script generated internally by
|
||||
\fBmysql_upgrade\fR
|
||||
that contains SQL statements to upgrade the tables in the
|
||||
mysql
|
||||
|
@ -198,15 +216,17 @@ was added as a shell script and worked only for Unix systems\&. As of MySQL 5\&.
|
|||
is an executable binary and is available on all systems\&.
|
||||
.PP
|
||||
\fBmysql_upgrade\fR
|
||||
supports the options in the following list\&. It also reads option files (the
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysql_upgrade]
|
||||
and
|
||||
[client]
|
||||
groups) and supports the options for processing them described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&. Other options are passed to
|
||||
option file groups\&. Other options are passed to
|
||||
\fBmysqlcheck\fR\&. For example, it might be necessary to specify the
|
||||
\fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR
|
||||
option\&.
|
||||
\fBmysql_upgrade\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -375,7 +395,7 @@ This option was introduced in MySQL 5\&.1\&.40\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_waitpid\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_WAITPID\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_WAITPID\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -120,7 +120,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysql_zap\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_ZAP\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQL_ZAP\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -116,7 +116,7 @@ Test mode\&. Display information about each process but do not kill it\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqlaccess\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLACCESS\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLACCESS\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -54,7 +54,7 @@ shell> \fBmysqlaccess [\fR\fB\fIhost_name\fR\fR\fB [\fR\fB\fIuser_name\fR\fR\fB
|
|||
.\}
|
||||
.PP
|
||||
\fBmysqlaccess\fR
|
||||
supports the following options:
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -221,10 +221,12 @@ value following the
|
|||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysqlaccess\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -319,13 +321,15 @@ Undo the most recent changes to the temporary grant tables\&.
|
|||
The password to use when connecting to the server as the superuser\&. If you omit the
|
||||
\fIpassword\fR
|
||||
value following the
|
||||
\fB\-\-password\fR
|
||||
\fB\-\-spassword\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysqlaccess\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -419,7 +423,7 @@ error will occur when you run
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqladmin\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLADMIN\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLADMIN\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -46,7 +46,7 @@ shell> \fBmysqladmin [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIcommand\fR\fR\fB [\fR\
|
|||
.\}
|
||||
.PP
|
||||
\fBmysqladmin\fR
|
||||
supports the commands described in the following list\&. Some of the commands take an argument following the command name\&.
|
||||
supports the following commands\&. Some of the commands take an argument following the command name\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -211,7 +211,7 @@ old\-password \fInew\-password\fR
|
|||
This is like the
|
||||
password
|
||||
command but stores the password using the old (pre\-4\&.1) password\-hashing format\&. (See
|
||||
Section\ \&5.5.6.3, \(lqPassword Hashing in MySQL\(rq\&.)
|
||||
Section\ \&5.3.2.3, \(lqPassword Hashing in MySQL\(rq\&.)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -304,7 +304,7 @@ statement\&. If the
|
|||
\fB\-\-verbose\fR
|
||||
option is given, the output is like that of
|
||||
SHOW FULL PROCESSLIST\&. (See
|
||||
Section\ \&12.5.5.31, \(lqSHOW PROCESSLIST Syntax\(rq\&.)
|
||||
Section\ \&12.4.5.31, \(lqSHOW PROCESSLIST Syntax\(rq\&.)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -586,7 +586,13 @@ waits until the server\'s process ID file has been removed, to ensure that the s
|
|||
.\" startup parameters: mysqladmin
|
||||
.PP
|
||||
\fBmysqladmin\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqladmin]
|
||||
and
|
||||
[client]
|
||||
option file groups\&.
|
||||
\fBmysqladmin\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -618,7 +624,7 @@ Display a help message and exit\&.
|
|||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -720,7 +726,7 @@ Print debugging information and memory and CPU usage statistics when the program
|
|||
Use
|
||||
\fIcharset_name\fR
|
||||
as the default character set\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -794,10 +800,12 @@ value following the
|
|||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysqladmin\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -813,7 +821,7 @@ Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
|||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only for connections to a local server, and only if the server supports named\-pipe connections\&.
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -940,7 +948,7 @@ localhost, the Unix socket file to use, or, on Windows, the name of the named pi
|
|||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server via SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&5.5.7.3, \(lqSSL Command Options\(rq\&.
|
||||
Section\ \&5.5.6.3, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1030,7 +1038,7 @@ You can also set the following variables by using
|
|||
\fB\-\-\fR\fB\fIvar_name\fR\fR\fB=\fR\fB\fIvalue\fR\fR
|
||||
The
|
||||
\fB\-\-set\-variable\fR
|
||||
format is deprecated\&. syntax:
|
||||
format is deprecated and is removed in MySQL 5\&.5\&. syntax:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -1064,7 +1072,7 @@ The maximum number of seconds to wait for server shutdown\&. The default value i
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqlbinlog\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLBINLOG\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLBINLOG\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -34,7 +34,7 @@ utility\&. You can also use
|
|||
\fBmysqlbinlog\fR
|
||||
to display the contents of relay log files written by a slave server in a replication setup because relay logs have the same format as binary logs\&. The binary log and relay log are discussed further in
|
||||
Section\ \&5.2.4, \(lqThe Binary Log\(rq, and
|
||||
Section\ \&16.4.2, \(lqReplication Relay and Status Files\(rq\&.
|
||||
Section\ \&16.2.2, \(lqReplication Relay and Status Files\(rq\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysqlbinlog\fR
|
||||
|
@ -64,18 +64,52 @@ shell> \fBmysqlbinlog binlog\&.0000003\fR
|
|||
.\}
|
||||
.PP
|
||||
The output includes events contained in
|
||||
binlog\&.000003\&. Event information includes the statement, the ID of the server on which it was executed, the timestamp when the statement was executed, how much time it took, and so forth\&.
|
||||
binlog\&.000003\&. For statement\-based logging, event information includes the SQL statement, the ID of the server on which it was executed, the timestamp when the statement was executed, how much time it took, and so forth\&. For row\-based logging, the event indicates a row change rather than an SQL statement\&. See
|
||||
Section\ \&16.1.2, \(lqReplication Formats\(rq, for information about logging modes\&.
|
||||
.PP
|
||||
Events are preceded by header comments that provide additional information\&. For example:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
# at 141
|
||||
#100309 9:28:36 server id 123 end_log_pos 245
|
||||
Query thread_id=3350 exec_time=11 error_code=0
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
In the first line, the number following
|
||||
at
|
||||
indicates the starting position of the event in the binary log file\&.
|
||||
.PP
|
||||
The second line starts with a date and time indicating when the statement started on the server where the event originated\&. For replication, this timestamp is propagated to slave servers\&.
|
||||
server id
|
||||
is the
|
||||
server_id
|
||||
value of the server where the event originated\&.
|
||||
end_log_pos
|
||||
indicates where the next event starts (that is, it is the end position of the current event + 1)\&.
|
||||
thread_id
|
||||
indicates which thread executed the event\&.
|
||||
exec_time
|
||||
is the time spent executing the event, on a master server\&. On a slave, it is the difference of the end execution time on the slave minus the beginning execution time on the master\&. The difference serves as an indicator of how much replication lags behind the master\&.
|
||||
error_code
|
||||
indicates the result from executing the event\&. Zero means that no error occurred\&.
|
||||
.PP
|
||||
The output from
|
||||
\fBmysqlbinlog\fR
|
||||
can be re\-executed (for example, by using it as input to
|
||||
\fBmysql\fR) to reapply the statements in the log\&. This is useful for recovery operations after a server crash\&. For other usage examples, see the discussion later in this section\&.
|
||||
\fBmysql\fR) to redo the statements in the log\&. This is useful for recovery operations after a server crash\&. For other usage examples, see the discussion later in this section and
|
||||
Section\ \&6.5, \(lqPoint-in-Time (Incremental) Recovery Using the Binary Log\(rq\&.
|
||||
.PP
|
||||
Normally, you use
|
||||
\fBmysqlbinlog\fR
|
||||
to read binary log files directly and apply them to the local MySQL server\&. It is also possible to read binary logs from a remote server by using the
|
||||
\fB\-\-read\-from\-remote\-server\fR
|
||||
option\&. When you read remote binary logs, the connection parameter options can be given to indicate how to connect to the server\&. These options are
|
||||
option\&. To read remote binary logs, the connection parameter options can be given to indicate how to connect to the server\&. These options are
|
||||
\fB\-\-host\fR,
|
||||
\fB\-\-password\fR,
|
||||
\fB\-\-port\fR,
|
||||
|
@ -86,7 +120,13 @@ option\&. When you read remote binary logs, the connection parameter options can
|
|||
option\&.
|
||||
.PP
|
||||
\fBmysqlbinlog\fR
|
||||
supports the following options\&. It also reads option files and supports the options for processing them described at
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqlbinlog]
|
||||
and
|
||||
[client]
|
||||
option file groups\&.
|
||||
\fBmysqlbinlog\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -248,7 +288,7 @@ the section called \(lqMYSQLBINLOG ROW EVENT DISPLAY\(rq\&.
|
|||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -264,15 +304,140 @@ Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
|||
\fB\-\-database=\fR\fB\fIdb_name\fR\fR,
|
||||
\fB\-d \fR\fB\fIdb_name\fR\fR
|
||||
.sp
|
||||
List entries for just this database (local log only)\&. You can only specify one database with this option \- if you specify multiple
|
||||
\fB\-\-database\fR
|
||||
options, only the last one is used\&. This option forces
|
||||
This option causes
|
||||
\fBmysqlbinlog\fR
|
||||
to output entries from the binary log where the default database (that is, the one selected by
|
||||
USE) is
|
||||
\fIdb_name\fR\&. Note that this does not replicate cross\-database statements such as
|
||||
UPDATE \fIsome_db\&.some_table\fR SET foo=\'bar\'
|
||||
while having selected a different database or no database\&.
|
||||
to output entries from the binary log (local log only) that occur while
|
||||
\fIdb_name\fR
|
||||
is been selected as the default database by
|
||||
USE\&.
|
||||
.sp
|
||||
The
|
||||
\fB\-\-database\fR
|
||||
option for
|
||||
\fBmysqlbinlog\fR
|
||||
is similar to the
|
||||
\fB\-\-binlog\-do\-db\fR
|
||||
option for
|
||||
\fBmysqld\fR, but can be used to specify only one database\&. If
|
||||
\fB\-\-database\fR
|
||||
is given multiple times, only the last instance is used\&.
|
||||
.sp
|
||||
The effects of this option depend on whether the statement\-based or row\-based logging format is in use, in the same way that the effects of
|
||||
\fB\-\-binlog\-do\-db\fR
|
||||
depend on whether statement\-based or row\-based logging is in use\&.
|
||||
.PP
|
||||
\fBStatement-based logging\fR. The
|
||||
\fB\-\-database\fR
|
||||
option works as follows:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
While
|
||||
\fIdb_name\fR
|
||||
is the default database, statements are output whether they modify tables in
|
||||
\fIdb_name\fR
|
||||
or a different database\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Unless
|
||||
\fIdb_name\fR
|
||||
is selected as the default database, statements are not output, even if they modify tables in
|
||||
\fIdb_name\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
There is an exception for
|
||||
CREATE DATABASE,
|
||||
ALTER DATABASE, and
|
||||
DROP DATABASE\&. The database being
|
||||
\fIcreated, altered, or dropped\fR
|
||||
is considered to be the default database when determining whether to output the statement\&.
|
||||
.RE
|
||||
.RS 4
|
||||
Suppose that the binary log was created by executing these statements using statement\-based\-logging:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
INSERT INTO test\&.t1 (i) VALUES(100);
|
||||
INSERT INTO db2\&.t2 (j) VALUES(200);
|
||||
USE test;
|
||||
INSERT INTO test\&.t1 (i) VALUES(101);
|
||||
INSERT INTO t1 (i) VALUES(102);
|
||||
INSERT INTO db2\&.t2 (j) VALUES(201);
|
||||
USE db2;
|
||||
INSERT INTO test\&.t1 (i) VALUES(103);
|
||||
INSERT INTO db2\&.t2 (j) VALUES(202);
|
||||
INSERT INTO t2 (j) VALUES(203);
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
\fBmysqlbinlog \-\-database=test\fR
|
||||
does not output the first two
|
||||
INSERT
|
||||
statements because there is no default database\&. It outputs the three
|
||||
INSERT
|
||||
statements following
|
||||
USE test, but not the three
|
||||
INSERT
|
||||
statements following
|
||||
USE db2\&.
|
||||
.sp
|
||||
\fBmysqlbinlog \-\-database=db2\fR
|
||||
does not output the first two
|
||||
INSERT
|
||||
statements because there is no default database\&. It does not output the three
|
||||
INSERT
|
||||
statements following
|
||||
USE test, but does output the three
|
||||
INSERT
|
||||
statements following
|
||||
USE db2\&.
|
||||
.PP
|
||||
\fBRow-based logging\fR.
|
||||
\fBmysqlbinlog\fR
|
||||
outputs only entries that change tables belonging to
|
||||
\fIdb_name\fR\&. The default database has no effect on this\&. Suppose that the binary log just described was created using row\-based logging rather than statement\-based logging\&.
|
||||
\fBmysqlbinlog \-\-database=test\fR
|
||||
outputs only those entries that modify
|
||||
t1
|
||||
in the test database, regardless of whether
|
||||
USE
|
||||
was issued or what the default database is\&.
|
||||
If a server is running with
|
||||
binlog_format
|
||||
set to
|
||||
MIXED
|
||||
and you want it to be possible to use
|
||||
\fBmysqlbinlog\fR
|
||||
with the
|
||||
\fB\-\-database\fR
|
||||
option, you must ensure that tables that are modified are in the database selected by
|
||||
USE\&. (In particular, no cross\-database updates should be used\&.)
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
|
@ -406,7 +571,7 @@ stops if it reads such an event\&.
|
|||
\fB\-H\fR
|
||||
.sp
|
||||
Display a hex dump of the log in comments, as described in
|
||||
the section called \(lqMYSQLBINLOG HEX DUMP FORMAT\(rq\&. This output can be helpful for replication debugging\&. This option was added in MySQL 5\&.1\&.2\&.
|
||||
the section called \(lqMYSQLBINLOG HEX DUMP FORMAT\(rq\&. The hex output can be helpful for replication debugging\&. This option was added in MySQL 5\&.1\&.2\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -482,10 +647,12 @@ value following the
|
|||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysqlbinlog\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -514,12 +681,13 @@ The TCP/IP port number to use for connecting to a remote server\&.
|
|||
.\}
|
||||
.\" mysqlbinlog: position option
|
||||
.\" position option: mysqlbinlog
|
||||
\fB\-\-position=\fR\fB\fIN\fR\fR,
|
||||
\fB\-j \fR\fB\fIN\fR\fR
|
||||
\fB\-\-position=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Deprecated\&. Use
|
||||
\fB\-\-start\-position\fR
|
||||
instead\&.
|
||||
\fB\-\-position\fR
|
||||
is removed in MySQL 5\&.5\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -590,7 +758,7 @@ Direct output to the given file\&.
|
|||
.\" server-id option: mysqlbinlog
|
||||
\fB\-\-server\-id=\fR\fB\fIid\fR\fR
|
||||
.sp
|
||||
Extract only those events created by the server having the given server ID\&. This option is available as of MySQL 5\&.1\&.4\&.
|
||||
Display only those events created by the server having the given server ID\&. This option is available as of MySQL 5\&.1\&.4\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -677,7 +845,7 @@ shell> \fBmysqlbinlog \-\-start\-datetime="2005\-12\-25 11:25:56" binlog\&.00000
|
|||
.\}
|
||||
.sp
|
||||
This option is useful for point\-in\-time recovery\&. See
|
||||
Section\ \&6.2, \(lqExample Backup and Recovery Strategy\(rq\&.
|
||||
Section\ \&6.3, \(lqExample Backup and Recovery Strategy\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -690,10 +858,14 @@ Section\ \&6.2, \(lqExample Backup and Recovery Strategy\(rq\&.
|
|||
.\}
|
||||
.\" mysqlbinlog: start-position option
|
||||
.\" start-position option: mysqlbinlog
|
||||
\fB\-\-start\-position=\fR\fB\fIN\fR\fR
|
||||
\fB\-\-start\-position=\fR\fB\fIN\fR\fR,
|
||||
\fB\-j \fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Start reading the binary log at the first event having a position equal to or greater than
|
||||
\fIN\fR\&. This option applies to the first log file named on the command line\&.
|
||||
.sp
|
||||
This option is useful for point\-in\-time recovery\&. See
|
||||
Section\ \&6.3, \(lqExample Backup and Recovery Strategy\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -715,6 +887,9 @@ argument\&. This option is useful for point\-in\-time recovery\&. See the descri
|
|||
option for information about the
|
||||
\fIdatetime\fR
|
||||
value\&.
|
||||
.sp
|
||||
This option is useful for point\-in\-time recovery\&. See
|
||||
Section\ \&6.3, \(lqExample Backup and Recovery Strategy\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -731,6 +906,9 @@ value\&.
|
|||
.sp
|
||||
Stop reading the binary log at the first event having a position equal to or greater than
|
||||
\fIN\fR\&. This option applies to the last log file named on the command line\&.
|
||||
.sp
|
||||
This option is useful for point\-in\-time recovery\&. See
|
||||
Section\ \&6.3, \(lqExample Backup and Recovery Strategy\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -779,7 +957,7 @@ The MySQL user name to use when connecting to a remote server\&.
|
|||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Reconstruct row events and display them as commented SQL statements\&. If given twice, the output includes comments to indicate column data types and some metadata\&. This option was added in MySQL 5\&.1\&.28\&.
|
||||
Reconstruct row events and display them as commented SQL statements\&. If this option is given twice, the output includes comments to indicate column data types and some metadata\&. This option was added in MySQL 5\&.1\&.28\&.
|
||||
.sp
|
||||
For examples that show the effect of
|
||||
\fB\-\-base64\-output\fR
|
||||
|
@ -804,33 +982,6 @@ the section called \(lqMYSQLBINLOG ROW EVENT DISPLAY\(rq\&.
|
|||
.sp
|
||||
Display version information and exit\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlbinlog: write-binlog option
|
||||
.\" write-binlog option: mysqlbinlog
|
||||
\fB\-\-write\-binlog\fR
|
||||
.sp
|
||||
This option is enabled by default, so that
|
||||
ANALYZE TABLE,
|
||||
OPTIMIZE TABLE, and
|
||||
REPAIR TABLE
|
||||
statements generated by
|
||||
\fBmysqlcheck\fR
|
||||
are written to the binary log\&. Use
|
||||
\fB\-\-skip\-write\-binlog\fR
|
||||
to cause
|
||||
NO_WRITE_TO_BINLOG
|
||||
to be added to the statements so that they are not logged\&. Use the
|
||||
\fB\-\-skip\-write\-binlog\fR
|
||||
when these statements should not be sent to replication slaves or run when using the binary logs for recovery from backup\&. This option was added in MySQL 5\&.1\&.18\&.
|
||||
.RE
|
||||
.PP
|
||||
You can also set the following variable by using
|
||||
\fB\-\-\fR\fB\fIvar_name\fR\fR\fB=\fR\fB\fIvalue\fR\fR
|
||||
|
@ -854,14 +1005,14 @@ You can pipe the output of
|
|||
\fBmysqlbinlog\fR
|
||||
into the
|
||||
\fBmysql\fR
|
||||
client to execute the statements contained in the binary log\&. This is used to recover from a crash when you have an old backup (see
|
||||
Section\ \&6.1, \(lqDatabase Backup Methods\(rq)\&. For example:
|
||||
client to execute the events contained in the binary log\&. This technique is used to recover from a crash when you have an old backup (see
|
||||
Section\ \&6.5, \(lqPoint-in-Time (Incremental) Recovery Using the Binary Log\(rq)\&. For example:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlbinlog binlog\&.000001 | mysql\fR
|
||||
shell> \fBmysqlbinlog binlog\&.000001 | mysql \-u root \-p\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
|
@ -873,7 +1024,7 @@ Or:
|
|||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlbinlog binlog\&.[0\-9]* | mysql\fR
|
||||
shell> \fBmysqlbinlog binlog\&.[0\-9]* | mysql \-u root \-p\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
|
@ -883,12 +1034,25 @@ You can also redirect the output of
|
|||
\fBmysqlbinlog\fR
|
||||
to a text file instead, if you need to modify the statement log first (for example, to remove statements that you do not want to execute for some reason)\&. After editing the file, execute the statements that it contains by using it as input to the
|
||||
\fBmysql\fR
|
||||
program\&.
|
||||
program:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlbinlog binlog\&.000001 > tmpfile\fR
|
||||
shell> \&.\&.\&. \fIedit tmpfile\fR \&.\&.\&.
|
||||
shell> \fBmysql \-u root \-p < tmpfile\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
When
|
||||
\fBmysqlbinlog\fR
|
||||
has the
|
||||
is invoked with the
|
||||
\fB\-\-start\-position\fR
|
||||
option, which prints only those statements with an offset in the binary log greater than or equal to a given position (the given position must match the start of one event)\&. It also has options to stop and start when it sees an event with a given date and time\&. This enables you to perform point\-in\-time recovery using the
|
||||
option, it displays only those events with an offset in the binary log greater than or equal to a given position (the given position must match the start of one event)\&. It also has options to stop and start when it sees an event with a given date and time\&. This enables you to perform point\-in\-time recovery using the
|
||||
\fB\-\-stop\-datetime\fR
|
||||
option (to be able to say, for example,
|
||||
\(lqroll forward my databases to how they were today at 10:30 a\&.m\&.\(rq)\&.
|
||||
|
@ -900,8 +1064,8 @@ If you have more than one binary log to execute on the MySQL server, the safe me
|
|||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlbinlog binlog\&.000001 | mysql # DANGER!!\fR
|
||||
shell> \fBmysqlbinlog binlog\&.000002 | mysql # DANGER!!\fR
|
||||
shell> \fBmysqlbinlog binlog\&.000001 | mysql \-u root \-p # DANGER!!\fR
|
||||
shell> \fBmysqlbinlog binlog\&.000002 | mysql \-u root \-p # DANGER!!\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
|
@ -918,13 +1082,14 @@ process attempts to use the table, the server reports
|
|||
.PP
|
||||
To avoid problems like this, use a
|
||||
\fIsingle\fR
|
||||
connection to execute the contents of all binary logs that you want to process\&. Here is one way to do so:
|
||||
\fBmysql\fR
|
||||
process to execute the contents of all binary logs that you want to process\&. Here is one way to do so:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlbinlog binlog\&.000001 binlog\&.000002 | mysql\fR
|
||||
shell> \fBmysqlbinlog binlog\&.000001 binlog\&.000002 | mysql \-u root \-p\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
|
@ -938,7 +1103,7 @@ Another approach is to write all the logs to a single file and then process the
|
|||
.nf
|
||||
shell> \fBmysqlbinlog binlog\&.000001 > /tmp/statements\&.sql\fR
|
||||
shell> \fBmysqlbinlog binlog\&.000002 >> /tmp/statements\&.sql\fR
|
||||
shell> \fBmysql \-e "source /tmp/statements\&.sql"\fR
|
||||
shell> \fBmysql \-u root \-p \-e "source /tmp/statements\&.sql"\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
|
@ -962,10 +1127,10 @@ LOAD DATA INFILE
|
|||
statements to
|
||||
LOAD DATA LOCAL INFILE
|
||||
statements (that is, it adds
|
||||
LOCAL), both the client and the server that you use to process the statements must be configured to allow
|
||||
LOCAL), both the client and the server that you use to process the statements must be configured with the
|
||||
LOCAL
|
||||
capability\&. See
|
||||
Section\ \&5.3.4, \(lqSecurity Issues with LOAD DATA LOCAL\(rq\&.
|
||||
capability enabled\&. See
|
||||
Section\ \&5.3.5, \(lqSecurity Issues with LOAD DATA LOCAL\(rq\&.
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
|
@ -991,7 +1156,9 @@ automatically deleted because they are needed until you actually execute those s
|
|||
.PP
|
||||
The
|
||||
\fB\-\-hexdump\fR
|
||||
option produces a hex dump of the log contents:
|
||||
option causes
|
||||
\fBmysqlbinlog\fR
|
||||
to produce a hex dump of the binary log contents:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
|
@ -1029,7 +1196,8 @@ ROLLBACK;
|
|||
.RE
|
||||
.\}
|
||||
.PP
|
||||
Hex dump output currently contains the following elements\&. This format is subject to change\&.
|
||||
Hex dump output currently contains the elements in the following list\&. This format is subject to change\&. (For more information about binary log format, see
|
||||
\m[blue]\fB\%http://forge.mysql.com/wiki/MySQL_Internals_Binary_Log\fR\m[]\&.)
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -1796,7 +1964,7 @@ option can be used to prevent this header from being written\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
@ -1808,7 +1976,7 @@ You should have received a copy of the GNU General Public License along with the
|
|||
.IP " 1." 4
|
||||
Bug#42941
|
||||
.RS 4
|
||||
\%http://bugs.mysql.com/42941
|
||||
\%http://bugs.mysql.com/bug.php?id=42941
|
||||
.RE
|
||||
.SH "SEE ALSO"
|
||||
For more information, please refer to the MySQL Reference Manual,
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqlbug\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLBUG\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLBUG\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -26,7 +26,7 @@ mysqlbug \- generate bug report
|
|||
\fBmysqlbug\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
This program enables you to generate a bug report and send it to Sun Microsystems, Inc\&. It is a shell script and runs on Unix\&.
|
||||
This program enables you to generate a bug report and send it to Oracle Corporation\&. It is a shell script and runs on Unix\&.
|
||||
.PP
|
||||
The normal way to report bugs is to visit
|
||||
\m[blue]\fB\%http://bugs.mysql.com/\fR\m[], which is the address for our bugs database\&. This database is public and can be browsed and searched by anyone\&. If you log in to the system, you can enter new reports\&. If you have no Web access, you can generate a bug report by using the
|
||||
|
@ -62,7 +62,7 @@ will send the report by email\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqlcheck\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLCHECK\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLCHECK\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -37,7 +37,7 @@ client performs table maintenance: It checks, repairs, optimizes, or analyzes ta
|
|||
Each table is locked and therefore unavailable to other sessions while it is being processed, although for check operations, the table is locked with a
|
||||
READ
|
||||
lock only (see
|
||||
Section\ \&12.4.5, \(lqLOCK TABLES and UNLOCK TABLES Syntax\(rq, for more information about
|
||||
Section\ \&12.3.5, \(lqLOCK TABLES and UNLOCK TABLES Syntax\(rq, for more information about
|
||||
READ
|
||||
and
|
||||
WRITE
|
||||
|
@ -72,7 +72,7 @@ REPAIR TABLE,
|
|||
ANALYZE TABLE, and
|
||||
OPTIMIZE TABLE
|
||||
in a convenient way for the user\&. It determines which statements to use for the operation you want to perform, and then sends the statements to the server to be executed\&. For details about which storage engines each statement works with, see the descriptions for those statements in
|
||||
Section\ \&12.5.2, \(lqTable Maintenance Statements\(rq\&.
|
||||
Section\ \&12.4.2, \(lqTable Maintenance Statements\(rq\&.
|
||||
.PP
|
||||
The
|
||||
MyISAM
|
||||
|
@ -135,8 +135,8 @@ There are three general ways to invoke
|
|||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlcheck [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItables\fR\fR\fB]\fR
|
||||
shell> \fBmysqlcheck [\fR\fB\fIoptions\fR\fR\fB] \-\-databases \fR\fB\fIdb_name1\fR\fR\fB [\fR\fB\fIdb_name2\fR\fR\fB \fR\fB\fIdb_name3\fR\fR\fB\&.\&.\&.]\fR
|
||||
shell> \fBmysqlcheck [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB \&.\&.\&.]\fR
|
||||
shell> \fBmysqlcheck [\fR\fB\fIoptions\fR\fR\fB] \-\-databases \fR\fB\fIdb_name\fR\fR\fB \&.\&.\&.\fR
|
||||
shell> \fBmysqlcheck [\fR\fB\fIoptions\fR\fR\fB] \-\-all\-databases\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
|
@ -188,7 +188,13 @@ T}
|
|||
.sp 1
|
||||
.PP
|
||||
\fBmysqlcheck\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqlcheck]
|
||||
and
|
||||
[client]
|
||||
option file groups\&.
|
||||
\fBmysqlcheck\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -285,7 +291,7 @@ If a checked table is corrupted, automatically fix it\&. Any necessary repairs a
|
|||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -444,7 +450,7 @@ Print debugging information and memory and CPU usage statistics when the program
|
|||
Use
|
||||
\fIcharset_name\fR
|
||||
as the default character set\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -598,10 +604,12 @@ value following the
|
|||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysqlcheck\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -617,7 +625,7 @@ Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
|||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only for connections to a local server, and only if the server supports named\-pipe connections\&.
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -734,7 +742,7 @@ localhost, the Unix socket file to use, or, on Windows, the name of the named pi
|
|||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server via SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&5.5.7.3, \(lqSSL Command Options\(rq\&.
|
||||
Section\ \&5.5.6.3, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -824,10 +832,37 @@ Verbose mode\&. Print information about the various stages of program operation\
|
|||
.sp
|
||||
Display version information and exit\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: write-binlog option
|
||||
.\" write-binlog option: mysqlcheck
|
||||
\fB\-\-write\-binlog\fR
|
||||
.sp
|
||||
This option is enabled by default, so that
|
||||
ANALYZE TABLE,
|
||||
OPTIMIZE TABLE, and
|
||||
REPAIR TABLE
|
||||
statements generated by
|
||||
\fBmysqlcheck\fR
|
||||
are written to the binary log\&. Use
|
||||
\fB\-\-skip\-write\-binlog\fR
|
||||
to cause
|
||||
NO_WRITE_TO_BINLOG
|
||||
to be added to the statements so that they are not logged\&. Use the
|
||||
\fB\-\-skip\-write\-binlog\fR
|
||||
when these statements should not be sent to replication slaves or run when using the binary logs for recovery from backup\&. This option was added in MySQL 5\&.1\&.18\&.
|
||||
.RE
|
||||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqld\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLD\FR" "8" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLD\FR" "8" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -53,7 +53,7 @@ Chapter\ \&2, Installing and Upgrading MySQL\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqld_multi\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLD_MULTI\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLD_MULTI\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -227,7 +227,7 @@ pass the
|
|||
options to instances, so these techniques are inapplicable\&.
|
||||
.PP
|
||||
\fBmysqld_multi\fR
|
||||
supports the following options:
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -258,6 +258,8 @@ Display a help message and exit\&.
|
|||
.sp
|
||||
As of MySQL 5\&.1\&.18, this option is deprecated\&. If given, it is treated the same way as
|
||||
\fB\-\-defaults\-extra\-file\fR, described earlier\&.
|
||||
\fB\-\-config\-file\fR
|
||||
is removed in MySQL 5\&.5\&.
|
||||
.sp
|
||||
Before MySQL 5\&.1\&.18, this option specifies the name of an extra option file\&. It affects where
|
||||
\fBmysqld_multi\fR
|
||||
|
@ -534,7 +536,7 @@ use the Unix
|
|||
account for this, unless you
|
||||
\fIknow\fR
|
||||
what you are doing\&. See
|
||||
Section\ \&5.3.5, \(lqHow to Run MySQL as a Normal User\(rq\&.
|
||||
Section\ \&5.3.6, \(lqHow to Run MySQL as a Normal User\(rq\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.RE
|
||||
|
@ -726,7 +728,7 @@ Section\ \&4.2.3.3, \(lqUsing Option Files\(rq\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqld_safe\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLD_SAFE\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLD_SAFE\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -842,7 +842,7 @@ file in the data directory\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
355
man/mysqldump.1
355
man/mysqldump.1
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqldump\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLDUMP\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLDUMP\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -50,8 +50,8 @@ There are three general ways to invoke
|
|||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqldump [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItables\fR\fR\fB]\fR
|
||||
shell> \fBmysqldump [\fR\fB\fIoptions\fR\fR\fB] \-\-databases \fR\fB\fIdb_name1\fR\fR\fB [\fR\fB\fIdb_name2\fR\fR\fB \fR\fB\fIdb_name3\fR\fR\fB\&.\&.\&.]\fR
|
||||
shell> \fBmysqldump [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB \&.\&.\&.]\fR
|
||||
shell> \fBmysqldump [\fR\fB\fIoptions\fR\fR\fB] \-\-databases \fR\fB\fIdb_name\fR\fR\fB \&.\&.\&.\fR
|
||||
shell> \fBmysqldump [\fR\fB\fIoptions\fR\fR\fB] \-\-all\-databases\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
|
@ -69,36 +69,70 @@ option, entire databases are dumped\&.
|
|||
\fBmysqldump\fR
|
||||
does not dump the
|
||||
INFORMATION_SCHEMA
|
||||
database\&. If you name that database explicitly on the command line,
|
||||
database by default\&. As of MySQL 5\&.1\&.38,
|
||||
\fBmysqldump\fR
|
||||
silently ignores it\&.
|
||||
dumps
|
||||
INFORMATION_SCHEMA
|
||||
if you name it explicitly on the command line, although currently you must also use the
|
||||
\fB\-\-skip\-lock\-tables\fR
|
||||
option\&. Before 5\&.1\&.38,
|
||||
\fBmysqldump\fR
|
||||
silently ignores
|
||||
INFORMATION_SCHEMA
|
||||
even if you name it explicitly on the command line\&.
|
||||
.PP
|
||||
To get a list of the options your version of
|
||||
To see a list of the options your version of
|
||||
\fBmysqldump\fR
|
||||
supports, execute
|
||||
\fBmysqldump \-\-help\fR\&.
|
||||
.PP
|
||||
Some
|
||||
\fBmysqldump\fR
|
||||
options are shorthand for groups of other options\&.
|
||||
\fB\-\-opt\fR
|
||||
and
|
||||
\fB\-\-compact\fR
|
||||
fall into this category\&. For example, use of
|
||||
options are shorthand for groups of other options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Use of
|
||||
\fB\-\-opt\fR
|
||||
is the same as specifying
|
||||
\fB\-\-add\-drop\-table\fR
|
||||
\fB\-\-add\-locks\fR
|
||||
\fB\-\-create\-options\fR
|
||||
\fB\-\-disable\-keys\fR
|
||||
\fB\-\-extended\-insert\fR
|
||||
\fB\-\-lock\-tables\fR
|
||||
\fB\-\-quick\fR
|
||||
\fB\-\-set\-charset\fR\&. Note that all of the options that
|
||||
\fB\-\-add\-drop\-table\fR,
|
||||
\fB\-\-add\-locks\fR,
|
||||
\fB\-\-create\-options\fR,
|
||||
\fB\-\-disable\-keys\fR,
|
||||
\fB\-\-extended\-insert\fR,
|
||||
\fB\-\-lock\-tables\fR,
|
||||
\fB\-\-quick\fR, and
|
||||
\fB\-\-set\-charset\fR\&. All of the options that
|
||||
\fB\-\-opt\fR
|
||||
stands for also are on by default because
|
||||
\fB\-\-opt\fR
|
||||
is on by default\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Use of
|
||||
\fB\-\-compact\fR
|
||||
is the same as specifying
|
||||
\fB\-\-skip\-add\-drop\-table\fR,
|
||||
\fB\-\-skip\-add\-locks\fR,
|
||||
\fB\-\-skip\-comments\fR,
|
||||
\fB\-\-skip\-disable\-keys\fR, and
|
||||
\fB\-\-skip\-set\-charset\fR
|
||||
options\&.
|
||||
.RE
|
||||
.PP
|
||||
To reverse the effect of a group option, uses its
|
||||
\fB\-\-skip\-\fR\fB\fIxxx\fR\fR
|
||||
|
@ -118,10 +152,10 @@ To select the effect of
|
|||
\fB\-\-opt\fR
|
||||
except for some features, use the
|
||||
\fB\-\-skip\fR
|
||||
option for each feature\&. For example, to disable extended inserts and memory buffering, use
|
||||
option for each feature\&. To disable extended inserts and memory buffering, use
|
||||
\fB\-\-opt\fR
|
||||
\fB\-\-skip\-extended\-insert\fR
|
||||
\fB\-\-skip\-quick\fR\&. (As of MySQL 5\&.1,
|
||||
\fB\-\-skip\-quick\fR\&. (Actually,
|
||||
\fB\-\-skip\-extended\-insert\fR
|
||||
\fB\-\-skip\-quick\fR
|
||||
is sufficient because
|
||||
|
@ -161,7 +195,7 @@ option (or
|
|||
\fB\-\-quick\fR)\&. The
|
||||
\fB\-\-opt\fR
|
||||
option (and hence
|
||||
\fB\-\-quick\fR) is enabled by default in MySQL 5\&.1; to enable memory buffering, use
|
||||
\fB\-\-quick\fR) is enabled by default, so to enable memory buffering, use
|
||||
\fB\-\-skip\-quick\fR\&.
|
||||
.PP
|
||||
If you are using a recent version of
|
||||
|
@ -187,12 +221,18 @@ instead\&.
|
|||
.br
|
||||
.PP
|
||||
\fBmysqldump\fR
|
||||
from the MySQL 5\&.1\&.21 distribution cannot be used to create dumps from MySQL server versions 5\&.1\&.20 and older\&. This issue is fixed in MySQL 5\&.1\&.22\&. (\m[blue]\fBBug#30123\fR\m[]\&\s-2\u[1]\d\s+2)
|
||||
from MySQL 5\&.1\&.21 cannot be used to create dumps from MySQL server 5\&.1\&.20 and older\&. This issue is fixed in MySQL 5\&.1\&.22\&. (\m[blue]\fBBug#30123\fR\m[]\&\s-2\u[1]\d\s+2)
|
||||
.sp .5v
|
||||
.RE
|
||||
.PP
|
||||
\fBmysqldump\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqldump]
|
||||
and
|
||||
[client]
|
||||
option file groups\&.
|
||||
\fBmysqldump\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -227,7 +267,13 @@ Add a
|
|||
DROP DATABASE
|
||||
statement before each
|
||||
CREATE DATABASE
|
||||
statement\&.
|
||||
statement\&. This option is typically used in conjunction with the
|
||||
\fB\-\-all\-databases\fR
|
||||
or
|
||||
\fB\-\-databases\fR
|
||||
option because no
|
||||
CREATE DATABASE
|
||||
statements are written unless one of those options is specified\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -336,7 +382,7 @@ Allow creation of column names that are keywords\&. This works by prefixing each
|
|||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -368,7 +414,7 @@ Write additional information in the dump file such as program version, server ve
|
|||
.\" compact option: mysqldump
|
||||
\fB\-\-compact\fR
|
||||
.sp
|
||||
Produce less verbose output\&. This option enables the
|
||||
Produce more compact output\&. This option enables the
|
||||
\fB\-\-skip\-add\-drop\-table\fR,
|
||||
\fB\-\-skip\-add\-locks\fR,
|
||||
\fB\-\-skip\-comments\fR,
|
||||
|
@ -387,7 +433,7 @@ options\&.
|
|||
\fBNote\fR
|
||||
.ps -1
|
||||
.br
|
||||
Prior to release 5\&.1\&.21, this option did not create valid SQL if the database dump contained views\&. The recreation of views requires the creation and removal of temporary tables and this option suppressed the removal of those temporary tables\&. As a workaround, use
|
||||
Prior to MySQL 5\&.1\&.21, this option did not create valid SQL if the database dump contained views\&. The recreation of views requires the creation and removal of temporary tables and this option suppressed the removal of those temporary tables\&. As a workaround, use
|
||||
\fB\-\-compact\fR
|
||||
with the
|
||||
\fB\-\-add\-drop\-table\fR
|
||||
|
@ -409,7 +455,7 @@ option and then manually adjust the dump file\&.
|
|||
\fB\-\-compatible=\fR\fB\fIname\fR\fR
|
||||
.sp
|
||||
Produce output that is more compatible with other database systems or with older MySQL servers\&. The value of
|
||||
name
|
||||
\fIname\fR
|
||||
can be
|
||||
ansi,
|
||||
mysql323,
|
||||
|
@ -569,7 +615,7 @@ Print debugging information and memory and CPU usage statistics when the program
|
|||
Use
|
||||
\fIcharset_name\fR
|
||||
as the default character set\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&. If no character set is specified,
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&. If no character set is specified,
|
||||
\fBmysqldump\fR
|
||||
uses
|
||||
utf8, and earlier versions use
|
||||
|
@ -611,7 +657,9 @@ statements\&.
|
|||
.\" delete-master-logs option: mysqldump
|
||||
\fB\-\-delete\-master\-logs\fR
|
||||
.sp
|
||||
On a master replication server, delete the binary logs after performing the dump operation\&. This option automatically enables
|
||||
On a master replication server, delete the binary logs by sending a
|
||||
PURGE BINARY LOGS
|
||||
statement to the server after performing the dump operation\&. This option automatically enables
|
||||
\fB\-\-master\-data\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
|
@ -651,12 +699,23 @@ tables\&.
|
|||
.\" dump-date option: mysqldump
|
||||
\fB\-\-dump\-date\fR
|
||||
.sp
|
||||
\fBmysqldump\fR
|
||||
produces a
|
||||
\-\- Dump completed on \fIDATE\fR
|
||||
comment at the end of the dump if the
|
||||
If the
|
||||
\fB\-\-comments\fR
|
||||
option is given\&. However, the date causes dump files for identical data take at different times to appear to be different\&.
|
||||
option is given,
|
||||
\fBmysqldump\fR
|
||||
produces a comment at the end of the dump of the following form:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
\-\- Dump completed on \fIDATE\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
However, the date causes dump files taken at different times to appear to be different, even if the data are otherwise identical\&.
|
||||
\fB\-\-dump\-date\fR
|
||||
and
|
||||
\fB\-\-skip\-dump\-date\fR
|
||||
|
@ -680,7 +739,7 @@ suppresses date printing\&. This option was added in MySQL 5\&.1\&.23\&.
|
|||
\fB\-\-events\fR,
|
||||
\fB\-E\fR
|
||||
.sp
|
||||
Dump events from the dumped databases\&. This option was added in MySQL 5\&.1\&.8\&.
|
||||
Include Event Scheduler events for the dumped databases in the output\&. This option was added in MySQL 5\&.1\&.8\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -725,8 +784,10 @@ lists\&. This results in a smaller dump file and speeds up inserts when the file
|
|||
\fB\-\-fields\-escaped\-by=\&.\&.\&.\fR
|
||||
.sp
|
||||
These options are used with the
|
||||
\fB\-T\fR
|
||||
option and have the same meaning as the corresponding clauses for
|
||||
\fB\-\-tab\fR
|
||||
option and have the same meaning as the corresponding
|
||||
FIELDS
|
||||
clauses for
|
||||
LOAD DATA INFILE\&. See
|
||||
Section\ \&12.2.6, \(lqLOAD DATA INFILE Syntax\(rq\&.
|
||||
.RE
|
||||
|
@ -741,11 +802,13 @@ Section\ \&12.2.6, \(lqLOAD DATA INFILE Syntax\(rq\&.
|
|||
.\}
|
||||
.\" mysqldump: first-slave option
|
||||
.\" first-slave option: mysqldump
|
||||
\fB\-\-first\-slave\fR,
|
||||
\fB\-x\fR
|
||||
\fB\-\-first\-slave\fR
|
||||
.sp
|
||||
Deprecated\&. Now renamed to
|
||||
\fB\-\-lock\-all\-tables\fR\&.
|
||||
Deprecated\&. Use
|
||||
\fB\-\-lock\-all\-tables\fR
|
||||
instead\&.
|
||||
\fB\-\-first\-slave\fR
|
||||
is removed in MySQL 5\&.5\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -763,10 +826,9 @@ Deprecated\&. Now renamed to
|
|||
.sp
|
||||
Flush the MySQL server log files before starting the dump\&. This option requires the
|
||||
RELOAD
|
||||
privilege\&. Note that if you use this option in combination with the
|
||||
privilege\&. If you use this option in combination with the
|
||||
\fB\-\-all\-databases\fR
|
||||
(or
|
||||
\fB\-A\fR) option, the logs are flushed
|
||||
option, the logs are flushed
|
||||
\fIfor each database dumped\fR\&. The exception is when using
|
||||
\fB\-\-lock\-all\-tables\fR
|
||||
or
|
||||
|
@ -790,9 +852,9 @@ or
|
|||
.\" flush-privileges option: mysqldump
|
||||
\fB\-\-flush\-privileges\fR
|
||||
.sp
|
||||
Emit a
|
||||
Send a
|
||||
FLUSH PRIVILEGES
|
||||
statement after dumping the
|
||||
statement to the server after dumping the
|
||||
mysql
|
||||
database\&. This option should be used any time the dump contains the
|
||||
mysql
|
||||
|
@ -861,8 +923,9 @@ Dump binary columns using hexadecimal notation (for example,
|
|||
becomes
|
||||
0x616263)\&. The affected data types are
|
||||
BINARY,
|
||||
VARBINARY,
|
||||
BLOB, and
|
||||
VARBINARY, the
|
||||
BLOB
|
||||
types, and
|
||||
BIT\&.
|
||||
.RE
|
||||
.sp
|
||||
|
@ -894,10 +957,10 @@ Do not dump the given table, which must be specified using both the database and
|
|||
\fB\-\-insert\-ignore\fR
|
||||
.sp
|
||||
Write
|
||||
INSERT IGNORE
|
||||
statements rather than
|
||||
INSERT
|
||||
statements with the
|
||||
IGNORE
|
||||
option\&.
|
||||
statements\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -913,8 +976,10 @@ option\&.
|
|||
\fB\-\-lines\-terminated\-by=\&.\&.\&.\fR
|
||||
.sp
|
||||
This option is used with the
|
||||
\fB\-T\fR
|
||||
option and has the same meaning as the corresponding clause for
|
||||
\fB\-\-tab\fR
|
||||
option and has the same meaning as the corresponding
|
||||
LINES
|
||||
clause for
|
||||
LOAD DATA INFILE\&. See
|
||||
Section\ \&12.2.6, \(lqLOAD DATA INFILE Syntax\(rq\&.
|
||||
.RE
|
||||
|
@ -951,18 +1016,20 @@ and
|
|||
\fB\-\-lock\-tables\fR,
|
||||
\fB\-l\fR
|
||||
.sp
|
||||
Lock all tables before dumping them\&. The tables are locked with
|
||||
For each dumped database, lock all tables to be dumped before dumping them\&. The tables are locked with
|
||||
READ LOCAL
|
||||
to allow concurrent inserts in the case of
|
||||
MyISAM
|
||||
tables\&. For transactional tables such as
|
||||
InnoDB,
|
||||
\fB\-\-single\-transaction\fR
|
||||
is a much better option, because it does not need to lock the tables at all\&.
|
||||
.sp
|
||||
Please note that when dumping multiple databases,
|
||||
is a much better option than
|
||||
\fB\-\-lock\-tables\fR
|
||||
locks tables for each database separately\&. Therefore, this option does not guarantee that the tables in the dump file are logically consistent between databases\&. Tables in different databases may be dumped in completely different states\&.
|
||||
because it does not need to lock the tables at all\&.
|
||||
.sp
|
||||
Because
|
||||
\fB\-\-lock\-tables\fR
|
||||
locks tables for each database separately, this option does not guarantee that the tables in the dump file are logically consistent between databases\&. Tables in different databases may be dumped in completely different states\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -977,7 +1044,7 @@ locks tables for each database separately\&. Therefore, this option does not gua
|
|||
.\" log-error option: mysqldump
|
||||
\fB\-\-log\-error=\fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Append warnings and errors to the named file\&. This option was added in MySQL 5\&.1\&.18\&.
|
||||
Log warnings and errors by appending them to the named file\&. The default is to do no logging\&. This option was added in MySQL 5\&.1\&.18\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -994,11 +1061,11 @@ Append warnings and errors to the named file\&. This option was added in MySQL 5
|
|||
.sp
|
||||
Use this option to dump a master replication server to produce a dump file that can be used to set up another server as a slave of the master\&. It causes the dump output to include a
|
||||
CHANGE MASTER TO
|
||||
statement that indicates the binary log coordinates (file name and position) of the dumped server\&. These are the master server coordinates from which the slave should start replicating\&.
|
||||
statement that indicates the binary log coordinates (file name and position) of the dumped server\&. These are the master server coordinates from which the slave should start replicating after you load the dump file into the slave\&.
|
||||
.sp
|
||||
If the option value is 2, the
|
||||
CHANGE MASTER TO
|
||||
statement is written as an SQL comment, and thus is informative only; it has no effect when the dump file is reloaded\&. If the option value is 1, the statement takes effect when the dump file is reloaded\&. If the option value is not specified, the default value is 1\&.
|
||||
statement is written as an SQL comment, and thus is informative only; it has no effect when the dump file is reloaded\&. If the option value is 1, the statement is not written as a comment and takes effect when the dump file is reloaded\&. If no option value is specified, the default value is 1\&.
|
||||
.sp
|
||||
This option requires the
|
||||
RELOAD
|
||||
|
@ -1045,7 +1112,16 @@ mysql> \fBSHOW SLAVE STATUS;\fR
|
|||
.sp -1
|
||||
.IP " 2." 4.2
|
||||
.\}
|
||||
From the output of the SHOW SLAVE STATUS statement, get the binary log coordinates of the master server from which the new slave should start replicating\&. These coordinates are the values of the Relay_Master_Log_File and Exec_Master_Log_Pos values\&. Denote those values as file_name and file_pos\&.
|
||||
From the output of the
|
||||
SHOW SLAVE STATUS
|
||||
statement, the binary log coordinates of the master server from which the new slave should start replicating are the values of the
|
||||
Relay_Master_Log_File
|
||||
and
|
||||
Exec_Master_Log_Pos
|
||||
fields\&. Denote those values as
|
||||
\fIfile_name\fR
|
||||
and
|
||||
\fIfile_pos\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1098,7 +1174,7 @@ mysql> \fBSTART SLAVE;\fR
|
|||
.sp -1
|
||||
.IP " 5." 4.2
|
||||
.\}
|
||||
On the new slave, reload the dump file:
|
||||
On the new slave, load the dump file:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
|
@ -1126,7 +1202,7 @@ On the new slave, set the replication coordinates to those of the master server
|
|||
.\}
|
||||
.nf
|
||||
mysql> \fBCHANGE MASTER TO\fR
|
||||
\-> \fBMASTER_LOG_FILE = \'file_name\', MASTER_LOG_POS = file_pos;\fR
|
||||
\-> \fBMASTER_LOG_FILE = \'\fR\fB\fIfile_name\fR\fR\fB\', MASTER_LOG_POS = \fR\fB\fIfile_pos\fR\fR\fB;\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
|
@ -1214,9 +1290,9 @@ statements that re\-create each dumped table\&.
|
|||
\fB\-\-no\-data\fR,
|
||||
\fB\-d\fR
|
||||
.sp
|
||||
Do not write any table row information (that is, do not dump table contents)\&. This is very useful if you want to dump only the
|
||||
Do not write any table row information (that is, do not dump table contents)\&. This is useful if you want to dump only the
|
||||
CREATE TABLE
|
||||
statement for the table\&.
|
||||
statement for the table (for example, to create an empty copy of the table by loading the dump file)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1229,11 +1305,11 @@ statement for the table\&.
|
|||
.\}
|
||||
.\" mysqldump: no-set-names option
|
||||
.\" no-set-names option: mysqldump
|
||||
\fB\-\-no\-set\-names\fR
|
||||
\fB\-\-no\-set\-names\fR,
|
||||
\fB\-N\fR
|
||||
.sp
|
||||
This option is deprecated\&. Use
|
||||
\fB\-\-skip\-set\-charset\fR
|
||||
instead\&.
|
||||
This has the same effect as
|
||||
\fB\-\-skip\-set\-charset\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1248,7 +1324,7 @@ instead\&.
|
|||
.\" opt option: mysqldump
|
||||
\fB\-\-opt\fR
|
||||
.sp
|
||||
This option is shorthand; it is the same as specifying
|
||||
This option is shorthand\&. It is the same as specifying
|
||||
\fB\-\-add\-drop\-table\fR
|
||||
\fB\-\-add\-locks\fR
|
||||
\fB\-\-create\-options\fR
|
||||
|
@ -1259,7 +1335,7 @@ This option is shorthand; it is the same as specifying
|
|||
\fB\-\-set\-charset\fR\&. It should give you a fast dump operation and produce a dump file that can be reloaded into a MySQL server quickly\&.
|
||||
.sp
|
||||
\fIThe \fR\fI\fB\-\-opt\fR\fR\fI option is enabled by default\&. Use \fR\fI\fB\-\-skip\-opt\fR\fR\fI to disable it\&.\fR
|
||||
See the discussion at the beginning of this section for information about selectively enabling or disabling certain of the options affected by
|
||||
See the discussion at the beginning of this section for information about selectively enabling or disabling a subset of the options affected by
|
||||
\fB\-\-opt\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
|
@ -1275,11 +1351,11 @@ See the discussion at the beginning of this section for information about select
|
|||
.\" order-by-primary option: mysqldump
|
||||
\fB\-\-order\-by\-primary\fR
|
||||
.sp
|
||||
Sort each table\'s rows by its primary key, or by its first unique index, if such an index exists\&. This is useful when dumping a
|
||||
Dump each table\'s rows sorted by its primary key, or by its first unique index, if such an index exists\&. This is useful when dumping a
|
||||
MyISAM
|
||||
table to be loaded into an
|
||||
InnoDB
|
||||
table, but will make the dump itself take considerably longer\&.
|
||||
table, but will make the dump operation take considerably longer\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1303,10 +1379,12 @@ value following the
|
|||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysqldump\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1322,7 +1400,7 @@ Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
|||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only for connections to a local server, and only if the server supports named\-pipe connections\&.
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1388,11 +1466,11 @@ to retrieve rows for a table from the server a row at a time rather than retriev
|
|||
\fB\-\-quote\-names\fR,
|
||||
\fB\-Q\fR
|
||||
.sp
|
||||
Quote database, table, and column names within
|
||||
Quote identifiers (such as database, table, and column names) within
|
||||
\(lq`\(rq
|
||||
characters\&. If the
|
||||
ANSI_QUOTES
|
||||
SQL mode is enabled, names are quoted within
|
||||
SQL mode is enabled, identifiers are quoted within
|
||||
\(lq"\(rq
|
||||
characters\&. This option is enabled by default\&. It can be disabled with
|
||||
\fB\-\-skip\-quote\-names\fR, but this option should be given after any option such as
|
||||
|
@ -1417,7 +1495,7 @@ Write
|
|||
REPLACE
|
||||
statements rather than
|
||||
INSERT
|
||||
statements\&. Available as of MySQL 5\&.1\&.3\&.
|
||||
statements\&. This option was added in MySQL 5\&.1\&.3\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1437,7 +1515,7 @@ Direct output to a given file\&. This option should be used on Windows to preven
|
|||
\(lq\en\(rq
|
||||
characters from being converted to
|
||||
\(lq\er\en\(rq
|
||||
carriage return/newline sequences\&. The result file is created and its contents overwritten, even if an error occurs while generating the dump\&. The previous contents are lost\&.
|
||||
carriage return/newline sequences\&. The result file is created and its previous contents overwritten, even if an error occurs while generating the dump\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1453,7 +1531,7 @@ carriage return/newline sequences\&. The result file is created and its contents
|
|||
\fB\-\-routines\fR,
|
||||
\fB\-R\fR
|
||||
.sp
|
||||
Dump stored routines (procedures and functions) from the dumped databases\&. Use of this option requires the
|
||||
Included stored routines (procedures and functions) for the dumped databases in the output\&. Use of this option requires the
|
||||
SELECT
|
||||
privilege for the
|
||||
mysql\&.proc
|
||||
|
@ -1511,9 +1589,9 @@ statement, use
|
|||
.\" single-transaction option: mysqldump
|
||||
\fB\-\-single\-transaction\fR
|
||||
.sp
|
||||
This option issues a
|
||||
BEGIN
|
||||
SQL statement before dumping data from the server\&. It is useful only with transactional tables such as
|
||||
This option sends a
|
||||
START TRANSACTION
|
||||
SQL statement to the server before dumping data\&. It is useful only with transactional tables such as
|
||||
InnoDB, because then it dumps the consistent state of the database at the time when
|
||||
BEGIN
|
||||
was issued without blocking any applications\&.
|
||||
|
@ -1528,16 +1606,25 @@ tables dumped while using this option may still change state\&.
|
|||
.sp
|
||||
While a
|
||||
\fB\-\-single\-transaction\fR
|
||||
dump is in process, to ensure a valid dump file (correct table contents and binary log position), no other connection should use the following statements:
|
||||
dump is in process, to ensure a valid dump file (correct table contents and binary log coordinates), no other connection should use the following statements:
|
||||
ALTER TABLE,
|
||||
CREATE TABLE,
|
||||
DROP TABLE,
|
||||
RENAME TABLE,
|
||||
TRUNCATE TABLE\&. A consistent read is not isolated from those statements, so use of them on a table to be dumped can cause the
|
||||
SELECT
|
||||
performed by
|
||||
that is performed by
|
||||
\fBmysqldump\fR
|
||||
to retrieve the table contents to obtain incorrect contents or fail\&.
|
||||
.sp
|
||||
The
|
||||
\fB\-\-single\-transaction\fR
|
||||
option and the
|
||||
\fB\-\-lock\-tables\fR
|
||||
option are mutually exclusive because
|
||||
LOCK TABLES
|
||||
causes any pending transactions to be committed implicitly\&.
|
||||
.sp
|
||||
This option is not supported for MySQL Cluster tables; the results cannot be guaranteed to be consistent due to the fact that the
|
||||
NDBCLUSTER
|
||||
storage engine supports only the
|
||||
|
@ -1546,15 +1633,9 @@ transaction isolation level\&. You should always use
|
|||
NDB
|
||||
backup and restore instead\&.
|
||||
.sp
|
||||
The
|
||||
To dump large tables, you should combine the
|
||||
\fB\-\-single\-transaction\fR
|
||||
option and the
|
||||
\fB\-\-lock\-tables\fR
|
||||
option are mutually exclusive, because
|
||||
LOCK TABLES
|
||||
causes any pending transactions to be committed implicitly\&.
|
||||
.sp
|
||||
To dump large tables, you should combine this option with
|
||||
option with
|
||||
\fB\-\-quick\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
|
@ -1624,7 +1705,7 @@ localhost, the Unix socket file to use, or, on Windows, the name of the named pi
|
|||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server via SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&5.5.7.3, \(lqSSL Command Options\(rq\&.
|
||||
Section\ \&5.5.6.3, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1640,29 +1721,15 @@ Section\ \&5.5.7.3, \(lqSSL Command Options\(rq\&.
|
|||
\fB\-\-tab=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-T \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
Produce tab\-separated data files\&. For each dumped table,
|
||||
Produce tab\-separated text\-format data files\&. For each dumped table,
|
||||
\fBmysqldump\fR
|
||||
creates a
|
||||
\fItbl_name\fR\&.sql
|
||||
file that contains the
|
||||
CREATE TABLE
|
||||
statement that creates the table, and a
|
||||
statement that creates the table, and the server writes a
|
||||
\fItbl_name\fR\&.txt
|
||||
file that contains its data\&. The option value is the directory in which to write the files\&.
|
||||
.sp
|
||||
By default, the
|
||||
\&.txt
|
||||
data files are formatted using tab characters between column values and a newline at the end of each line\&. The format can be specified explicitly using the
|
||||
\fB\-\-fields\-\fR\fB\fIxxx\fR\fR
|
||||
and
|
||||
\fB\-\-lines\-terminated\-by\fR
|
||||
options\&.
|
||||
.sp
|
||||
As of MySQL 5\&.1\&.38, column values are written converted to the character set specified by the
|
||||
\fB\-\-default\-character\-set\fR
|
||||
option\&. Prior to 5\&.1\&.38 or if no such option is present, values are dumped using the
|
||||
binary
|
||||
character set\&. In effect, there is no character set conversion\&. If a table contains columns in several character sets, the output data file will as well and you may not be able to reload the file correctly\&.
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
|
@ -1684,6 +1751,19 @@ FILE
|
|||
privilege, and the server must have permission to write files in the directory that you specify\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
By default, the
|
||||
\&.txt
|
||||
data files are formatted using tab characters between column values and a newline at the end of each line\&. The format can be specified explicitly using the
|
||||
\fB\-\-fields\-\fR\fB\fIxxx\fR\fR
|
||||
and
|
||||
\fB\-\-lines\-terminated\-by\fR
|
||||
options\&.
|
||||
.sp
|
||||
As of MySQL 5\&.1\&.38, column values are converted to the character set specified by the
|
||||
\fB\-\-default\-character\-set\fR
|
||||
option\&. Prior to 5\&.1\&.38 or if no such option is present, values are dumped using the
|
||||
binary
|
||||
character set\&. In effect, there is no character set conversion\&. If a table contains columns in several character sets, the output data file will as well and you may not be able to reload the file correctly\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -1719,7 +1799,7 @@ regards all name arguments following the option as table names\&.
|
|||
.\" triggers option: mysqldump
|
||||
\fB\-\-triggers\fR
|
||||
.sp
|
||||
Dump triggers for each dumped table\&. This option is enabled by default; disable it with
|
||||
Include triggers for each dumped table in the output\&. This option is enabled by default; disable it with
|
||||
\fB\-\-skip\-triggers\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
|
@ -1743,7 +1823,7 @@ sets its connection time zone to UTC and adds
|
|||
SET TIME_ZONE=\'+00:00\'
|
||||
to the dump file\&. Without this option,
|
||||
TIMESTAMP
|
||||
columns are dumped and reloaded in the time zones local to the source and destination servers, which can cause the values to change\&.
|
||||
columns are dumped and reloaded in the time zones local to the source and destination servers, which can cause the values to change if the servers are in different time zones\&.
|
||||
\fB\-\-tz\-utc\fR
|
||||
also protects against changes due to daylight saving time\&.
|
||||
\fB\-\-tz\-utc\fR
|
||||
|
@ -1846,7 +1926,7 @@ Examples:
|
|||
.sp
|
||||
Write dump output as well\-formed XML\&.
|
||||
.sp
|
||||
\fBNULL\fR\fB, \fR\fB\'NULL\'\fR\fB, and Empty Values\fR: For some column named
|
||||
\fBNULL\fR\fB, \fR\fB\'NULL\'\fR\fB, and Empty Values\fR: For a column named
|
||||
\fIcolumn_name\fR, the
|
||||
NULL
|
||||
value, an empty string, and the string value
|
||||
|
@ -1884,7 +1964,7 @@ Beginning with MySQL 5\&.1\&.12, the output from the
|
|||
\fBmysql\fR
|
||||
client when run using the
|
||||
\fB\-\-xml\fR
|
||||
option also follows these rules\&. (See
|
||||
option also follows the preceding rules\&. (See
|
||||
the section called \(lqMYSQL OPTIONS\(rq\&.)
|
||||
.sp
|
||||
Beginning with MySQL 5\&.1\&.18, XML output from
|
||||
|
@ -1905,11 +1985,13 @@ shell> \fBmysqldump \-\-xml \-u root world City\fR
|
|||
<field Field="CountryCode" Type="char(3)" Null="NO" Key="" Default="" Extra="" />
|
||||
<field Field="District" Type="char(20)" Null="NO" Key="" Default="" Extra="" />
|
||||
<field Field="Population" Type="int(11)" Null="NO" Key="" Default="0" Extra="" />
|
||||
<key Table="City" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="ID" Collation="A" Cardinality="4079"
|
||||
Null="" Index_type="BTREE" Comment="" />
|
||||
<options Name="City" Engine="MyISAM" Version="10" Row_format="Fixed" Rows="4079" Avg_row_length="67" Data_length="27329
|
||||
3" Max_data_length="18858823439613951" Index_length="43008" Data_free="0" Auto_increment="4080" Create_time="2007\-03\-31 01:47:01" Updat
|
||||
e_time="2007\-03\-31 01:47:02" Collation="latin1_swedish_ci" Create_options="" Comment="" />
|
||||
<key Table="City" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="ID"
|
||||
Collation="A" Cardinality="4079" Null="" Index_type="BTREE" Comment="" />
|
||||
<options Name="City" Engine="MyISAM" Version="10" Row_format="Fixed" Rows="4079"
|
||||
Avg_row_length="67" Data_length="273293" Max_data_length="18858823439613951"
|
||||
Index_length="43008" Data_free="0" Auto_increment="4080"
|
||||
Create_time="2007\-03\-31 01:47:01" Update_time="2007\-03\-31 01:47:02"
|
||||
Collation="latin1_swedish_ci" Create_options="" Comment="" />
|
||||
</table_structure>
|
||||
<table_data name="City">
|
||||
<row>
|
||||
|
@ -1964,10 +2046,13 @@ The maximum size of the buffer for client/server communication\&. The maximum is
|
|||
.\}
|
||||
net_buffer_length
|
||||
.sp
|
||||
The initial size of the buffer for client/server communication\&. When creating multiple\-row\-insert statements (as with option
|
||||
The initial size of the buffer for client/server communication\&. When creating multiple\-row
|
||||
INSERT
|
||||
statements (as with the
|
||||
\fB\-\-extended\-insert\fR
|
||||
or
|
||||
\fB\-\-opt\fR),
|
||||
\fB\-\-opt\fR
|
||||
option),
|
||||
\fBmysqldump\fR
|
||||
creates rows up to
|
||||
net_buffer_length
|
||||
|
@ -1976,9 +2061,9 @@ net_buffer_length
|
|||
variable in the MySQL server is at least this large\&.
|
||||
.RE
|
||||
.PP
|
||||
The most common use of
|
||||
A common use of
|
||||
\fBmysqldump\fR
|
||||
is probably for making a backup of an entire database:
|
||||
is for making a backup of an entire database:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
|
@ -1990,7 +2075,7 @@ shell> \fBmysqldump \fR\fB\fIdb_name\fR\fR\fB > \fR\fB\fIbackup\-file\&.sql\fR\f
|
|||
.RE
|
||||
.\}
|
||||
.PP
|
||||
You can read the dump file back into the server like this:
|
||||
You can load the dump file back into the server like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
|
@ -2072,7 +2157,7 @@ shell> \fBmysqldump \-\-all\-databases \-\-single\-transaction > all_databases\&
|
|||
This backup acquires a global read lock on all tables (using
|
||||
FLUSH TABLES WITH READ LOCK) at the beginning of the dump\&. As soon as this lock has been acquired, the binary log coordinates are read and the lock is released\&. If long updating statements are running when the
|
||||
FLUSH
|
||||
statement is issued, the MySQL server may get stalled until those statements finish\&. After that, the dump becomes lock\-free and does not disturb reads and writes on the tables\&. If the update statements that the MySQL server receives are short (in terms of execution time), the initial lock period should not be noticeable, even with many updates\&.
|
||||
statement is issued, the MySQL server may get stalled until those statements finish\&. After that, the dump becomes lock free and does not disturb reads and writes on the tables\&. If the update statements that the MySQL server receives are short (in terms of execution time), the initial lock period should not be noticeable, even with many updates\&.
|
||||
.PP
|
||||
For point\-in\-time recovery (also known as
|
||||
\(lqroll\-forward,\(rq
|
||||
|
@ -2106,13 +2191,13 @@ The
|
|||
\fB\-\-master\-data\fR
|
||||
and
|
||||
\fB\-\-single\-transaction\fR
|
||||
options can be used simultaneously, which provides a convenient way to make an online backup suitable for point\-in\-time recovery if tables are stored using the
|
||||
options can be used simultaneously, which provides a convenient way to make an online backup suitable for use prior to point\-in\-time recovery if tables are stored using the
|
||||
InnoDB
|
||||
storage engine\&.
|
||||
.PP
|
||||
For more information on making backups, see
|
||||
Section\ \&6.1, \(lqDatabase Backup Methods\(rq, and
|
||||
Section\ \&6.2, \(lqExample Backup and Recovery Strategy\(rq\&.
|
||||
Section\ \&6.2, \(lqDatabase Backup Methods\(rq, and
|
||||
Section\ \&6.3, \(lqExample Backup and Recovery Strategy\(rq\&.
|
||||
.\" mysqldump: views
|
||||
.\" mysqldump: problems
|
||||
.\" mysqldump: workarounds
|
||||
|
@ -2122,7 +2207,7 @@ Section\ \&D.4, \(lqRestrictions on Views\(rq\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
@ -2134,7 +2219,7 @@ You should have received a copy of the GNU General Public License along with the
|
|||
.IP " 1." 4
|
||||
Bug#30123
|
||||
.RS 4
|
||||
\%http://bugs.mysql.com/30123
|
||||
\%http://bugs.mysql.com/bug.php?id=30123
|
||||
.RE
|
||||
.SH "SEE ALSO"
|
||||
For more information, please refer to the MySQL Reference Manual,
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqldumpslow\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLDUMPSLOW\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLDUMPSLOW\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -60,7 +60,7 @@ shell> \fBmysqldumpslow [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIlog_file\fR\fR\fB
|
|||
.\}
|
||||
.PP
|
||||
\fBmysqldumpslow\fR
|
||||
supports the following options:
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -309,7 +309,7 @@ Count: 3 Time=2\&.13s (6s) Lock=0\&.00s (0s) Rows=0\&.0 (0), root[root]@local
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqlhotcopy\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLHOTCOPY\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLHOTCOPY\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -32,18 +32,28 @@ mysqlhotcopy \- a database backup program
|
|||
.PP
|
||||
\fBmysqlhotcopy\fR
|
||||
is a Perl script that was originally written and contributed by Tim Bunce\&. It uses
|
||||
LOCK TABLES,
|
||||
FLUSH TABLES, and
|
||||
FLUSH TABLES,
|
||||
LOCK TABLES, and
|
||||
cp
|
||||
or
|
||||
scp
|
||||
to make a database backup quickly\&. It is the fastest way to make a backup of the database or single tables, but it can be run only on the same machine where the database directories are located\&.
|
||||
to make a database backup\&. It is a fast way to make a backup of the database or single tables, but it can be run only on the same machine where the database directories are located\&.
|
||||
\fBmysqlhotcopy\fR
|
||||
works only for backing up
|
||||
MyISAM
|
||||
and
|
||||
ARCHIVE
|
||||
tables\&. It runs on Unix and NetWare\&.
|
||||
.PP
|
||||
To use
|
||||
\fBmysqlhotcopy\fR, you must have read access to the files for the tables that you are backing up, the
|
||||
SELECT
|
||||
privilege for those tables, the
|
||||
RELOAD
|
||||
privilege (to be able to execute
|
||||
FLUSH TABLES), and the
|
||||
LOCK TABLES
|
||||
privilege (to be able to lock the tables)\&.
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
|
@ -90,7 +100,11 @@ shell> \fBmysqlhotcopy \fR\fB\fIdb_name\fR\fR\fB\&./~\fR\fB\fIregex\fR\fR\fB/\fR
|
|||
.\}
|
||||
.PP
|
||||
\fBmysqlhotcopy\fR
|
||||
supports the following options:
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqlhotcopy]
|
||||
and
|
||||
[client]
|
||||
option file groups\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -275,7 +289,8 @@ Do not delete previous (renamed) target when done\&.
|
|||
.sp
|
||||
The method for copying files (cp
|
||||
or
|
||||
scp)\&.
|
||||
scp)\&. The default is
|
||||
cp\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -290,7 +305,9 @@ scp)\&.
|
|||
.\" noindices option: mysqlhotcopy
|
||||
\fB\-\-noindices\fR
|
||||
.sp
|
||||
Do not include full index files in the backup\&. This makes the backup smaller and faster\&. The indexes for reloaded tables can be reconstructed later with
|
||||
Do not include full index files for
|
||||
MyISAM
|
||||
tables in the backup\&. This makes the backup smaller and faster\&. The indexes for reloaded tables can be reconstructed later with
|
||||
\fBmyisamchk \-rq\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
|
@ -307,10 +324,10 @@ Do not include full index files in the backup\&. This makes the backup smaller a
|
|||
\fB\-\-password=\fR\fB\fIpassword\fR\fR,
|
||||
\fB\-p\fR\fB\fIpassword\fR\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. Note that the password value is not optional for this option, unlike for other MySQL programs\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
The password to use when connecting to the server\&. The password value is not optional for this option, unlike for other MySQL programs\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -423,7 +440,8 @@ file after locking all the tables\&.
|
|||
\fB\-\-socket=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-S \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The Unix socket file to use for the connection\&.
|
||||
The Unix socket file to use for connections to
|
||||
localhost\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -438,7 +456,7 @@ The Unix socket file to use for the connection\&.
|
|||
.\" suffix option: mysqlhotcopy
|
||||
\fB\-\-suffix=\fR\fB\fIstr\fR\fR
|
||||
.sp
|
||||
The suffix for names of copied databases\&.
|
||||
The suffix to use for names of copied databases\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -473,23 +491,6 @@ The temporary directory\&. The default is
|
|||
The MySQL user name to use when connecting to the server\&.
|
||||
.RE
|
||||
.PP
|
||||
\fBmysqlhotcopy\fR
|
||||
reads the
|
||||
[client]
|
||||
and
|
||||
[mysqlhotcopy]
|
||||
option groups from option files\&.
|
||||
.PP
|
||||
To execute
|
||||
\fBmysqlhotcopy\fR, you must have access to the files for the tables that you are backing up, the
|
||||
SELECT
|
||||
privilege for those tables, the
|
||||
RELOAD
|
||||
privilege (to be able to execute
|
||||
FLUSH TABLES), and the
|
||||
LOCK TABLES
|
||||
privilege (to be able to lock the tables)\&.
|
||||
.PP
|
||||
Use
|
||||
perldoc
|
||||
for additional
|
||||
|
@ -512,7 +513,7 @@ shell> \fBperldoc mysqlhotcopy\fR
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqlimport\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLIMPORT\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLIMPORT\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -64,8 +64,18 @@ patient
|
|||
all would be imported into a table named
|
||||
patient\&.
|
||||
.PP
|
||||
\fBmysqlimport\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
For additional information about
|
||||
\fBmysqldump\fR, see
|
||||
Section\ \&6.4, \(lqUsing mysqldump for Backups\(rq\&.
|
||||
.PP
|
||||
\fBmysqldump\fR
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqldump]
|
||||
and
|
||||
[client]
|
||||
option file groups\&.
|
||||
\fBmysqldump\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -97,7 +107,7 @@ Display a help message and exit\&.
|
|||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -197,7 +207,7 @@ Print debugging information and memory and CPU usage statistics when the program
|
|||
Use
|
||||
\fIcharset_name\fR
|
||||
as the default character set\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -379,8 +389,9 @@ tables for writing before processing any text files\&. This ensures that all tab
|
|||
.sp
|
||||
Use
|
||||
LOW_PRIORITY
|
||||
when loading the table\&. This affects only storage engines that use only table\-level locking (MyISAM,
|
||||
MEMORY,
|
||||
when loading the table\&. This affects only storage engines that use only table\-level locking (such as
|
||||
MyISAM,
|
||||
MEMORY, and
|
||||
MERGE)\&.
|
||||
.RE
|
||||
.sp
|
||||
|
@ -405,10 +416,12 @@ value following the
|
|||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysqlimport\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -424,7 +437,7 @@ Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
|||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only for connections to a local server, and only if the server supports named\-pipe connections\&.
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -529,7 +542,7 @@ localhost, the Unix socket file to use, or, on Windows, the name of the named pi
|
|||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server via SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&5.5.7.3, \(lqSSL Command Options\(rq\&.
|
||||
Section\ \&5.5.6.3, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -633,7 +646,7 @@ shell> \fBmysql \-e \'SELECT * FROM imptest\' test\fR
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqlmanager\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLMANAGER\FR" "8" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLMANAGER\FR" "8" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -153,7 +153,7 @@ in the directory where Instance Manager is installed\&. On Unix, the standard fi
|
|||
option\&.
|
||||
.PP
|
||||
\fBmysqlmanager\fR
|
||||
supports the options described in the following list\&. The options for managing entries in the password file are described further in
|
||||
supports the following options\&. The options for managing entries in the password file are described further in
|
||||
the section called \(lqINSTANCE MANAGER USER AND PASSWORD MANAGEMENT\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -2062,7 +2062,7 @@ Query OK, 0 rows affected (0\&.04 sec)
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqlshow\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLSHOW\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLSHOW\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -39,7 +39,7 @@ client can be used to quickly see which databases exist, their tables, or a tabl
|
|||
provides a command\-line interface to several SQL
|
||||
SHOW
|
||||
statements\&. See
|
||||
Section\ \&12.5.5, \(lqSHOW Syntax\(rq\&. The same information can be obtained by using those statements directly\&. For example, you can issue them from the
|
||||
Section\ \&12.4.5, \(lqSHOW Syntax\(rq\&. The same information can be obtained by using those statements directly\&. For example, you can issue them from the
|
||||
\fBmysql\fR
|
||||
client program\&.
|
||||
.PP
|
||||
|
@ -112,7 +112,13 @@ shows you only the table names that match the pattern\&. This is easily fixed by
|
|||
last on the command line as a separate argument\&.
|
||||
.PP
|
||||
\fBmysqlshow\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqlshow]
|
||||
and
|
||||
[client]
|
||||
option file groups\&.
|
||||
\fBmysqlshow\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -144,7 +150,7 @@ Display a help message and exit\&.
|
|||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -244,7 +250,7 @@ Print debugging information and memory and CPU usage statistics when the program
|
|||
Use
|
||||
\fIcharset_name\fR
|
||||
as the default character set\&. See
|
||||
Section\ \&9.2, \(lqThe Character Set Used for Data and Sorting\(rq\&.
|
||||
Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -300,10 +306,12 @@ value following the
|
|||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysqlshow\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -319,7 +327,7 @@ Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
|||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only for connections to a local server, and only if the server supports named\-pipe connections\&.
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -406,7 +414,7 @@ localhost, the Unix socket file to use, or, on Windows, the name of the named pi
|
|||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server via SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&5.5.7.3, \(lqSSL Command Options\(rq\&.
|
||||
Section\ \&5.5.6.3, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -475,7 +483,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqlslap\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLSLAP\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBMYSQLSLAP\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -151,7 +151,13 @@ mysqlslap \-\-concurrency=5 \e
|
|||
.\}
|
||||
.PP
|
||||
\fBmysqlslap\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqlslap]
|
||||
and
|
||||
[client]
|
||||
option file groups\&.
|
||||
\fBmysqlslap\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -615,7 +621,24 @@ is specified\&.
|
|||
.\" number-of-queries option: mysqlslap
|
||||
\fB\-\-number\-of\-queries=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Limit each client to approximately this number of queries\&. This option was added in MySQL 5\&.1\&.5\&.
|
||||
Limit each client to approximately this many queries\&. Query counting takes into account the statement delimiter\&. For example, if you invoke
|
||||
\fBmysqlslap\fR
|
||||
as follows, the
|
||||
;
|
||||
delimiter is recognized so that each instance of the query string counts as two queries\&. As a result, 5 rows (not 10) are inserted\&.
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlslap \-\-delimiter=";" \-\-number\-of\-queries=10\fR
|
||||
\fB\-\-query="use test;insert into t values(null)"\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
This option was added in MySQL 5\&.1\&.5\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -653,15 +676,15 @@ The password to use when connecting to the server\&. If you use the short option
|
|||
have a space between the option and the password\&. If you omit the
|
||||
\fIpassword\fR
|
||||
value following the
|
||||
.\" mysqlslap: password option
|
||||
.\" password option: mysqlslap
|
||||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
option on the command line,
|
||||
\fBmysqlslap\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -677,7 +700,7 @@ Section\ \&5.5.6.2, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
|||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only for connections to a local server, and only if the server supports named\-pipe connections\&.
|
||||
On Windows, connect to the server via a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -897,7 +920,7 @@ localhost, the Unix socket file to use, or, on Windows, the name of the named pi
|
|||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server via SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&5.5.7.3, \(lqSSL Command Options\(rq\&.
|
||||
Section\ \&5.5.6.3, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -971,7 +994,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBmysqltest\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 10/29/2009
|
||||
.\" Date: 03/31/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLTEST\FR" "1" "10/29/2009" "MySQL" "MySQL Database System"
|
||||
.TH "\FBMYSQLTEST\FR" "1" "03/31/2010" "MySQL" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -175,31 +175,11 @@ The base directory for tests\&.
|
|||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: big-test option
|
||||
.\" big-test option: mysqltest
|
||||
\fB\-\-big\-test\fR,
|
||||
\fB\-B\fR
|
||||
.sp
|
||||
Define the
|
||||
\fBmysqltest\fR
|
||||
variable
|
||||
$BIG_TEST
|
||||
as 1\&. This option was removed in MySQL 4\&.1\&.23, 5\&.0\&.30, and 5\&.1\&.13\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: character-sets-dir option
|
||||
.\" character-sets-dir option: mysqltest
|
||||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. This option was added in MySQL 4\&.1\&.23, 5\&.0\&.32, and 5\&.1\&.13\&.
|
||||
The directory where character sets are installed\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -226,12 +206,11 @@ Compress all information sent between the client and the server if both support
|
|||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: cursor-protocol option
|
||||
.\" mysqltest: currsor-protocol option
|
||||
.\" cursor-protocol option: mysqltest
|
||||
\fB\-\-cursor\-protocol\fR
|
||||
.sp
|
||||
Use cursors for prepared statements (implies
|
||||
\fB\-\-ps\-protocol\fR)\&. This option was added in MySQL 5\&.0\&.19\&.
|
||||
Use cursors for prepared statements\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -281,7 +260,7 @@ value is
|
|||
.\" debug-check option: mysqltest
|
||||
\fB\-\-debug\-check\fR
|
||||
.sp
|
||||
Print some debugging information when the program exits\&. This option was added in MySQL 5\&.1\&.21\&.
|
||||
Print some debugging information when the program exits\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -296,7 +275,7 @@ Print some debugging information when the program exits\&. This option was added
|
|||
.\" debug-info option: mysqltest
|
||||
\fB\-\-debug\-info\fR
|
||||
.sp
|
||||
Print debugging information and memory and CPU usage statistics when the program exits\&. This option was added in MySQL 5\&.1\&.14\&.
|
||||
Print debugging information and memory and CPU usage statistics when the program exits\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -332,7 +311,7 @@ Include the contents of the given file before processing the contents of the tes
|
|||
\fBmysqltest\fR
|
||||
test files\&. This option has the same effect as putting a
|
||||
\-\-source \fIfile_name\fR
|
||||
command as the first line of the test file\&. This option was added in MySQL 4\&.1\&.23, 5\&.0\&.30, and 5\&.1\&.7\&.
|
||||
command as the first line of the test file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -347,7 +326,7 @@ command as the first line of the test file\&. This option was added in MySQL 4\&
|
|||
.\" logdir option: mysqltest
|
||||
\fB\-\-logdir=\fR\fB\fIdir_name\fR\fR
|
||||
.sp
|
||||
The directory to use for log files\&. This option was added in MySQL 5\&.1\&.14\&.
|
||||
The directory to use for log files\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -363,7 +342,7 @@ The directory to use for log files\&. This option was added in MySQL 5\&.1\&.14\
|
|||
\fB\-\-mark\-progress\fR
|
||||
.sp
|
||||
Write the line number and elapsed time to
|
||||
\fItest_file\fR\&.progress\&. This option was added in MySQL 4\&.1\&.23, 5\&.0\&.30, and 5\&.1\&.12\&.
|
||||
\fItest_file\fR\&.progress\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -378,7 +357,24 @@ Write the line number and elapsed time to
|
|||
.\" max-connect-retries option: mysqltest
|
||||
\fB\-\-max\-connect\-retries=\fR\fB\fInum\fR\fR
|
||||
.sp
|
||||
The maximum number of connection attempts when connecting to server\&. This option was added in MySQL 4\&.1\&.23, 5\&.0\&.23, and 5\&.1\&.11\&.
|
||||
The maximum number of connection attempts when connecting to server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: max-connections option
|
||||
.\" max-connections option: mysqltest
|
||||
\fB\-\-max\-connections=\fR\fB\fInum\fR\fR
|
||||
.sp
|
||||
The maximum number of simultaneous server connections per client (that is, per test)\&. If not set, the maximum is 128\&. Minimum allowed limit is 8, maximum is 5120\&.
|
||||
.sp
|
||||
This option is available from MySQL 5\&.1\&.45\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -393,7 +389,7 @@ The maximum number of connection attempts when connecting to server\&. This opti
|
|||
.\" no-defaults option: mysqltest
|
||||
\fB\-\-no\-defaults\fR
|
||||
.sp
|
||||
Do not read default options from any option files\&.
|
||||
Do not read default options from any option files\&. If used, this must be the first option\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -484,7 +480,8 @@ Suppress all normal output\&. This is a synonym for
|
|||
.sp
|
||||
Record the output that results from running the test file into the file named by the
|
||||
\fB\-\-result\-file\fR
|
||||
option, if that option is given\&.
|
||||
option, if that option is given\&. It is an error to use this option without also using
|
||||
\fB\-\-result\-file\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -516,7 +513,9 @@ treats the test actual and expected results for a test case:
|
|||
.\}
|
||||
If the test produces no results,
|
||||
\fBmysqltest\fR
|
||||
exits with an error message to that effect\&.
|
||||
exits with an error message to that effect, unless
|
||||
\fB\-\-result\-file\fR
|
||||
is given and the named file is an empty file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -551,7 +550,7 @@ reads the expected results from the given file and compares them with the actual
|
|||
\fBmysqltest\fR
|
||||
writes a
|
||||
\&.reject
|
||||
file in the same directory as the result file and exits with an error\&.
|
||||
file in the same directory as the result file, outputs a diff of the two files, and exits with an error\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -695,7 +694,22 @@ localhost
|
|||
.sp
|
||||
Execute DML statements within a stored procedure\&. For every DML statement,
|
||||
\fBmysqltest\fR
|
||||
creates and invokes a stored procedure that executes the statement rather than executing the statement directly\&. This option was added in MySQL 5\&.0\&.19\&.
|
||||
creates and invokes a stored procedure that executes the statement rather than executing the statement directly\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: tail-lines option
|
||||
.\" tail-lines option: mysqltest
|
||||
\fB\-\-tail\-lines=\fR\fB\fInn\fR\fR
|
||||
.sp
|
||||
Specify how many lines of the result to include in the output if the test fails because an SQL statement fails\&. The default is 0, meaning no lines of result printed\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -727,7 +741,9 @@ Read test input from this file\&. The default is to read from the standard input
|
|||
\fB\-\-timer\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-m \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
The file where the timing in microseconds is written\&.
|
||||
If given, the number of millisecond spent running the test will be written to this file\&. This is used by
|
||||
\fBmysql\-test\-run\&.pl\fR
|
||||
for its reporting\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -743,7 +759,7 @@ The file where the timing in microseconds is written\&.
|
|||
\fB\-\-tmpdir=\fR\fB\fIdir_name\fR\fR,
|
||||
\fB\-t \fR\fB\fIdir_name\fR\fR
|
||||
.sp
|
||||
The temporary directory where socket files are put\&.
|
||||
The temporary directory where socket files are created\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -775,7 +791,7 @@ The MySQL user name to use when connecting to the server\&.
|
|||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print out more information what the program does\&.
|
||||
Verbose mode\&. Print out more information about what the program does\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
|
@ -813,7 +829,7 @@ statement is wrapped inside a view\&. This option was added in MySQL 5\&.0\&.19\
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright \(co 2007, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
68
man/ndbd.8
68
man/ndbd.8
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBndbd\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBNDBD\FR" "8" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBNDBD\FR" "8" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -93,7 +93,7 @@ T}:T{
|
|||
5\&.1\&.12
|
||||
T}
|
||||
T{
|
||||
\fBCommand Line Format\fR
|
||||
\fBCommand\-Line Format\fR
|
||||
T}:T{
|
||||
\-\-bind\-address=name
|
||||
T}
|
||||
|
@ -137,7 +137,7 @@ l l s
|
|||
^ l l
|
||||
^ l l.
|
||||
T{
|
||||
\fBCommand Line Format\fR
|
||||
\fBCommand\-Line Format\fR
|
||||
T}:T{
|
||||
\-\-daemon
|
||||
T}
|
||||
|
@ -189,7 +189,7 @@ l l s
|
|||
^ l l
|
||||
^ l l.
|
||||
T{
|
||||
\fBCommand Line Format\fR
|
||||
\fBCommand\-Line Format\fR
|
||||
T}:T{
|
||||
\-\-initial
|
||||
T}
|
||||
|
@ -298,7 +298,7 @@ Backup files that have already been created by the affected node
|
|||
.IP \(bu 2.3
|
||||
.\}
|
||||
MySQL Cluster Disk Data files (see
|
||||
Section\ \&17.5.9, \(lqMySQL Cluster Disk Data Tables\(rq)\&.
|
||||
Section\ \&17.5.10, \(lqMySQL Cluster Disk Data Tables\(rq)\&.
|
||||
.RE
|
||||
.RS 4
|
||||
.sp
|
||||
|
@ -334,7 +334,7 @@ T}:T{
|
|||
5\&.1\&.11
|
||||
T}
|
||||
T{
|
||||
\fBCommand Line Format\fR
|
||||
\fBCommand\-Line Format\fR
|
||||
T}:T{
|
||||
\-\-initial\-start
|
||||
T}
|
||||
|
@ -358,20 +358,27 @@ T}
|
|||
This option is used when performing a partial initial start of the cluster\&. Each node should be started with this option, as well as
|
||||
\fB\-\-nowait\-nodes\fR\&.
|
||||
.sp
|
||||
For example, suppose you have a 4\-node cluster whose data nodes have the IDs 2, 3, 4, and 5, and you wish to perform a partial initial start using only nodes 2, 4, and 5 \(em that is, omitting node 3:
|
||||
Suppose that you have a 4\-node cluster whose data nodes have the IDs 2, 3, 4, and 5, and you wish to perform a partial initial start using only nodes 2, 4, and 5 \(em that is, omitting node 3:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
ndbd \-\-ndbd\-nodeid=2 \-\-nowait\-nodes=3 \-\-initial\-start
|
||||
ndbd \-\-ndbd\-nodeid=4 \-\-nowait\-nodes=3 \-\-initial\-start
|
||||
ndbd \-\-ndbd\-nodeid=5 \-\-nowait\-nodes=3 \-\-initial\-start
|
||||
shell> \fBndbd \-\-ndb\-nodeid=2 \-\-nowait\-nodes=3 \-\-initial\-start\fR
|
||||
shell> \fBndbd \-\-ndb\-nodeid=4 \-\-nowait\-nodes=3 \-\-initial\-start\fR
|
||||
shell> \fBndbd \-\-ndb\-nodeid=5 \-\-nowait\-nodes=3 \-\-initial\-start\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
Prior to MySQL 5\&.1\&.19, it was not possible to perform DDL operations involving Disk Data tables on a partially started cluster\&. (See
|
||||
\m[blue]\fBBug#24631\fR\m[]\&\s-2\u[1]\d\s+2\&.)
|
||||
.sp
|
||||
When using this option, you must also specify the node ID for the data node being started with the
|
||||
\fB\-\-ndb\-nodeid\fR
|
||||
option\&.
|
||||
.sp
|
||||
This option was added in MySQL 5\&.1\&.11\&.
|
||||
.if n \{\
|
||||
.sp
|
||||
|
@ -385,8 +392,11 @@ This option was added in MySQL 5\&.1\&.11\&.
|
|||
\fBImportant\fR
|
||||
.ps -1
|
||||
.br
|
||||
Prior to MySQL 5\&.1\&.19, it was not possible to perform DDL operations involving Disk Data tables on a partially started cluster\&. (See
|
||||
\m[blue]\fBBug#24631\fR\m[]\&\s-2\u[1]\d\s+2\&.)
|
||||
Do not confuse this option with the
|
||||
\fB\-\-nowait\-nodes\fR
|
||||
option added for
|
||||
\fBndb_mgmd\fR
|
||||
in MySQL Cluster NDB 7\&.0\&.10, which can be used to allow a cluster configured with multiple management servers to be started without all management servers being online\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.RE
|
||||
|
@ -412,10 +422,10 @@ l l s
|
|||
T{
|
||||
\fBVersion Introduced\fR
|
||||
T}:T{
|
||||
5\&.1\&.11
|
||||
5\&.1\&.9
|
||||
T}
|
||||
T{
|
||||
\fBCommand Line Format\fR
|
||||
\fBCommand\-Line Format\fR
|
||||
T}:T{
|
||||
\-\-nowait\-nodes=list
|
||||
T}
|
||||
|
@ -470,9 +480,12 @@ allbox tab(:);
|
|||
l l s
|
||||
l l s
|
||||
^ l l
|
||||
^ l l
|
||||
l l s
|
||||
^ l l
|
||||
^ l l.
|
||||
T{
|
||||
\fBCommand Line Format\fR
|
||||
\fBCommand\-Line Format\fR
|
||||
T}:T{
|
||||
\-\-nodaemon
|
||||
T}
|
||||
|
@ -491,6 +504,21 @@ T}
|
|||
T}:T{
|
||||
FALSE
|
||||
T}
|
||||
T{
|
||||
\ \&
|
||||
T}:T{
|
||||
\fBPermitted Values \fR
|
||||
T}
|
||||
:T{
|
||||
\fBType\fR (windows)
|
||||
T}:T{
|
||||
boolean
|
||||
T}
|
||||
:T{
|
||||
\fBDefault\fR
|
||||
T}:T{
|
||||
TRUE
|
||||
T}
|
||||
.TE
|
||||
.sp 1
|
||||
Instructs
|
||||
|
@ -527,7 +555,7 @@ l l s
|
|||
^ l l
|
||||
^ l l.
|
||||
T{
|
||||
\fBCommand Line Format\fR
|
||||
\fBCommand\-Line Format\fR
|
||||
T}:T{
|
||||
\-\-nostart
|
||||
T}
|
||||
|
@ -759,7 +787,7 @@ Section\ \&17.1.5, \(lqKnown Limitations of MySQL Cluster\(rq\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
@ -771,12 +799,12 @@ You should have received a copy of the GNU General Public License along with the
|
|||
.IP " 1." 4
|
||||
Bug#24631
|
||||
.RS 4
|
||||
\%http://bugs.mysql.com/24631
|
||||
\%http://bugs.mysql.com/bug.php?id=24631
|
||||
.RE
|
||||
.IP " 2." 4
|
||||
Bug#45588
|
||||
.RS 4
|
||||
\%http://bugs.mysql.com/45588
|
||||
\%http://bugs.mysql.com/bug.php?id=45588
|
||||
.RE
|
||||
.IP " 3." 4
|
||||
ndbd Error Messages
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBndbd_redo_log_reader\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBNDBD_REDO_LOG_REA" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBNDBD_REDO_LOG_REA" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -77,7 +77,7 @@ l l s
|
|||
^ l l
|
||||
^ l l.
|
||||
T{
|
||||
\fBCommand Line Format\fR
|
||||
\fBCommand\-Line Format\fR
|
||||
T}:T{
|
||||
\-noprint
|
||||
T}
|
||||
|
@ -116,7 +116,7 @@ l l s
|
|||
^ l l
|
||||
^ l l.
|
||||
T{
|
||||
\fBCommand Line Format\fR
|
||||
\fBCommand\-Line Format\fR
|
||||
T}:T{
|
||||
\-nocheck
|
||||
T}
|
||||
|
@ -154,7 +154,7 @@ must be run on a cluster data node, since it accesses the data node file system
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
12
man/ndbmtd.8
12
man/ndbmtd.8
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBndbmtd\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBNDBMTD\FR" "8" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBNDBMTD\FR" "8" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -74,7 +74,7 @@ Prior to MySQL Cluster NDB 7\&.0\&.6, there were known issues when using
|
|||
\fBndbmtd\fR
|
||||
with MySQL Cluster Disk Data tables\&. If you wish to use multi\-threaded data nodes with disk\-based
|
||||
NDB
|
||||
tables, you should insure that you are running MySQL Cluster NDB 7\&.0\&.6 or later\&. (\m[blue]\fBBug#41915\fR\m[]\&\s-2\u[1]\d\s+2,
|
||||
tables, you should ensure that you are running MySQL Cluster NDB 7\&.0\&.6 or later\&. (\m[blue]\fBBug#41915\fR\m[]\&\s-2\u[1]\d\s+2,
|
||||
\m[blue]\fBBug#44915\fR\m[]\&\s-2\u[2]\d\s+2)
|
||||
.PP
|
||||
Using
|
||||
|
@ -356,7 +356,7 @@ concurrently on different data nodes in the same MySQL Cluster\&. However, such
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
@ -368,12 +368,12 @@ You should have received a copy of the GNU General Public License along with the
|
|||
.IP " 1." 4
|
||||
Bug#41915
|
||||
.RS 4
|
||||
\%http://bugs.mysql.com/41915
|
||||
\%http://bugs.mysql.com/bug.php?id=41915
|
||||
.RE
|
||||
.IP " 2." 4
|
||||
Bug#44915
|
||||
.RS 4
|
||||
\%http://bugs.mysql.com/44915
|
||||
\%http://bugs.mysql.com/bug.php?id=44915
|
||||
.RE
|
||||
.IP " 3." 4
|
||||
ndbd Error Messages
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBperror\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBPERROR\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBPERROR\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -96,7 +96,7 @@ shell> \fBperror \-\-ndb \fR\fB\fIerrorcode\fR\fR
|
|||
Note that the meaning of system error messages may be dependent on your operating system\&. A given error code may mean different things on different operating systems\&.
|
||||
.PP
|
||||
\fBperror\fR
|
||||
supports the following options:
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -181,7 +181,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBreplace\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBREPLACE\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBREPLACE\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -90,7 +90,7 @@ program is used by
|
|||
\fBmsql2mysql\fR(1)\&.
|
||||
.PP
|
||||
\fBreplace\fR
|
||||
supports the following options:
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -160,7 +160,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBresolve_stack_dump\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBRESOLVE_STACK_DUM" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBRESOLVE_STACK_DUM" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -49,7 +49,7 @@ command\&. The numeric dump file should contain a numeric stack track from
|
|||
\fBmysqld\fR\&. If no numeric dump file is named on the command line, the stack trace is read from the standard input\&.
|
||||
.PP
|
||||
\fBresolve_stack_dump\fR
|
||||
supports the options described in the following list\&.
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -117,7 +117,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: \fBresolveip\fR
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 11/04/2009
|
||||
.\" Date: 04/06/2010
|
||||
.\" Manual: MySQL Database System
|
||||
.\" Source: MySQL 5.1
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBRESOLVEIP\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
|
||||
.TH "\FBRESOLVEIP\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
|
@ -45,7 +45,7 @@ shell> \fBresolveip [\fR\fB\fIoptions\fR\fR\fB] {\fR\fB\fIhost_name\fR\fR\fB|\fR
|
|||
.\}
|
||||
.PP
|
||||
\fBresolveip\fR
|
||||
supports the options described in the following list\&.
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
|
@ -99,7 +99,7 @@ Display version information and exit\&.
|
|||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
|
||||
.PP
|
||||
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
|
||||
.PP
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue