Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dcea55e0
Commit
dcea55e0
authored
Aug 09, 2001
by
jcole@tetra.spaceapes.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some spacing and tag nesting problems in manual.texi
parent
589bb2c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
181 additions
and
6 deletions
+181
-6
Docs/manual.texi
Docs/manual.texi
+181
-6
No files found.
Docs/manual.texi
View file @
dcea55e0
...
@@ -92,6 +92,7 @@ END-INFO-DIR-ENTRY
...
@@ -92,6 +92,7 @@ END-INFO-DIR-ENTRY
@end iftex
@end iftex
@node Top, Introduction, (dir), (dir)
@node Top, Introduction, (dir), (dir)
@c @ifhtml
@c @ifhtml
...
@@ -141,14 +142,17 @@ distribution for that version.
...
@@ -141,14 +142,17 @@ distribution for that version.
@end menu
@end menu
@node Introduction, Installing, Top, Top
@chapter General Information About MySQL
@cindex overview
@cindex overview
@cindex general information
@cindex general information
@cindex online location of manual
@cindex online location of manual
@cindex manual, online location
@cindex manual, online location
@node Introduction, Installing, Top, Top
@chapter General Information About MySQL
This is the @strong{MySQL} reference manual; it documents @strong{MySQL}
This is the @strong{MySQL} reference manual; it documents @strong{MySQL}
Version @value{mysql_version}. As @strong{MySQL} is work in progress,
Version @value{mysql_version}. As @strong{MySQL} is work in progress,
the manual gets updated frequently. There is a very good chance that
the manual gets updated frequently. There is a very good chance that
...
@@ -245,6 +249,7 @@ see @ref{General-SQL}. For books that focus more specifically on
...
@@ -245,6 +249,7 @@ see @ref{General-SQL}. For books that focus more specifically on
* TODO::
* TODO::
@end menu
@end menu
@node MySQL and MySQL AB, MySQL Information Sources, Introduction, Introduction
@node MySQL and MySQL AB, MySQL Information Sources, Introduction, Introduction
@section MySQL, MySQL AB, and Open Source
@section MySQL, MySQL AB, and Open Source
...
@@ -260,6 +265,7 @@ see @ref{General-SQL}. For books that focus more specifically on
...
@@ -260,6 +265,7 @@ see @ref{General-SQL}. For books that focus more specifically on
* Year 2000 compliance:: Year 2000 compliance
* Year 2000 compliance:: Year 2000 compliance
@end menu
@end menu
@node What-is, What is MySQL AB, MySQL and MySQL AB, MySQL and MySQL AB
@node What-is, What is MySQL AB, MySQL and MySQL AB, MySQL and MySQL AB
@subsection What Is MySQL
@subsection What Is MySQL
...
@@ -351,6 +357,7 @@ language already supports @strong{MySQL}.
...
@@ -351,6 +357,7 @@ language already supports @strong{MySQL}.
The official way to pronounce @strong{MySQL} is ``My Ess Que Ell'' (not
The official way to pronounce @strong{MySQL} is ``My Ess Que Ell'' (not
MY-SEQUEL). But we try to avoid correcting people who say MY-SEQUEL.
MY-SEQUEL). But we try to avoid correcting people who say MY-SEQUEL.
@node What is MySQL AB, Manual-info, What-is, MySQL and MySQL AB
@node What is MySQL AB, Manual-info, What-is, MySQL and MySQL AB
@subsection What Is MySQL AB
@subsection What Is MySQL AB
...
@@ -463,6 +470,7 @@ Are a virtual company, networking with others.
...
@@ -463,6 +470,7 @@ Are a virtual company, networking with others.
Work against software patents.
Work against software patents.
@end itemize
@end itemize
@node Manual-info, Manual conventions, What is MySQL AB, MySQL and MySQL AB
@node Manual-info, Manual conventions, What is MySQL AB, MySQL and MySQL AB
@subsection About This Manual
@subsection About This Manual
...
@@ -480,6 +488,7 @@ This manual is written and maintained by David Axmark, Michael (Monty)
...
@@ -480,6 +488,7 @@ This manual is written and maintained by David Axmark, Michael (Monty)
Widenius, Jeremy Cole, and Paul DuBois. For other contributors,
Widenius, Jeremy Cole, and Paul DuBois. For other contributors,
see @ref{Credits}.
see @ref{Credits}.
@node Manual conventions, History, Manual-info, MySQL and MySQL AB
@node Manual conventions, History, Manual-info, MySQL and MySQL AB
@subsection Conventions Used in This Manual
@subsection Conventions Used in This Manual
...
@@ -604,6 +613,7 @@ alternatives are listed within braces (@samp{@{} and @samp{@}}):
...
@@ -604,6 +613,7 @@ alternatives are listed within braces (@samp{@{} and @samp{@}}):
@{DESCRIBE | DESC@} tbl_name @{col_name | wild@}
@{DESCRIBE | DESC@} tbl_name @{col_name | wild@}
@end example
@end example
@node History, Features, Manual conventions, MySQL and MySQL AB
@node History, Features, Manual conventions, MySQL and MySQL AB
@subsection History of MySQL
@subsection History of MySQL
...
@@ -789,10 +799,12 @@ information about databases, tables, and indexes. The @code{EXPLAIN} command
...
@@ -789,10 +799,12 @@ information about databases, tables, and indexes. The @code{EXPLAIN} command
can be used to determine how the optimizer resolves a query.
can be used to determine how the optimizer resolves a query.
@end itemize
@end itemize
@cindex stability
@node Stability, Table size, Features, MySQL and MySQL AB
@node Stability, Table size, Features, MySQL and MySQL AB
@subsection How Stable Is MySQL?
@subsection How Stable Is MySQL?
@cindex stability
This section addresses the questions ``How stable is @strong{MySQL}?'' and
This section addresses the questions ``How stable is @strong{MySQL}?'' and
``Can I depend on @strong{MySQL} in this project?'' We will try to clarify
``Can I depend on @strong{MySQL} in this project?'' We will try to clarify
some issues and to answer some of the more important questions that seem to
some issues and to answer some of the more important questions that seem to
...
@@ -948,6 +960,7 @@ Text search seems to work, but is still not widely used.
...
@@ -948,6 +960,7 @@ Text search seems to work, but is still not widely used.
Bugs are usually fixed right away with a patch; for serious bugs, there is
Bugs are usually fixed right away with a patch; for serious bugs, there is
almost always a new release.
almost always a new release.
@node Table size, Year 2000 compliance, Stability, MySQL and MySQL AB
@node Table size, Year 2000 compliance, Stability, MySQL and MySQL AB
@subsection How Big Can MySQL Tables Be?
@subsection How Big Can MySQL Tables Be?
...
@@ -1004,6 +1017,7 @@ Another solution can be the included MERGE library, which allows you to
...
@@ -1004,6 +1017,7 @@ Another solution can be the included MERGE library, which allows you to
handle a collection of identical tables as one. @xref{MERGE, MERGE
handle a collection of identical tables as one. @xref{MERGE, MERGE
tables}.
tables}.
@node Year 2000 compliance, , Table size, MySQL and MySQL AB
@node Year 2000 compliance, , Table size, MySQL and MySQL AB
@subsection Year 2000 Compliance
@subsection Year 2000 Compliance
...
@@ -1103,6 +1117,7 @@ provide unambiguous input. See @ref{Y2K issues} for @strong{MySQL}'s rules
...
@@ -1103,6 +1117,7 @@ provide unambiguous input. See @ref{Y2K issues} for @strong{MySQL}'s rules
for dealing with ambiguous date input data (data containing 2-digit year
for dealing with ambiguous date input data (data containing 2-digit year
values).
values).
@node MySQL Information Sources, Licensing and Support, MySQL and MySQL AB, Introduction
@node MySQL Information Sources, Licensing and Support, MySQL and MySQL AB, Introduction
@section MySQL Information Sources
@section MySQL Information Sources
...
@@ -1116,6 +1131,7 @@ values).
...
@@ -1116,6 +1131,7 @@ values).
* Questions::
* Questions::
@end menu
@end menu
@node MySQL-Books, General-SQL, MySQL Information Sources, MySQL Information Sources
@node MySQL-Books, General-SQL, MySQL Information Sources, MySQL Information Sources
@subsection Books About MySQL
@subsection Books About MySQL
...
@@ -1468,6 +1484,7 @@ A complete reference to DBI.
...
@@ -1468,6 +1484,7 @@ A complete reference to DBI.
@end itemize
@end itemize
@*
@*
@node General-SQL, Useful Links, MySQL-Books, MySQL Information Sources
@node General-SQL, Useful Links, MySQL-Books, MySQL Information Sources
@subsection General SQL Information and Tutorials
@subsection General SQL Information and Tutorials
...
@@ -1497,6 +1514,7 @@ Alameda, CA USA
...
@@ -1497,6 +1514,7 @@ Alameda, CA USA
A SQL tutorial is available on the net at
A SQL tutorial is available on the net at
http://w3.one.net/~jhoffman/sqltut.htm
http://w3.one.net/~jhoffman/sqltut.htm
@node Useful Links, Questions, General-SQL, MySQL Information Sources
@node Useful Links, Questions, General-SQL, MySQL Information Sources
@subsection Useful MySQL-related Links
@subsection Useful MySQL-related Links
...
@@ -2085,6 +2103,7 @@ require that you show a @strong{MySQL} logo somewhere if you wish your
...
@@ -2085,6 +2103,7 @@ require that you show a @strong{MySQL} logo somewhere if you wish your
site to be added. It is okay to have it on a ``used tools'' page or
site to be added. It is okay to have it on a ``used tools'' page or
something similar.
something similar.
@node Questions, , Useful Links, MySQL Information Sources
@node Questions, , Useful Links, MySQL Information Sources
@subsection MySQL Mailing Lists
@subsection MySQL Mailing Lists
...
@@ -2101,6 +2120,7 @@ something similar.
...
@@ -2101,6 +2120,7 @@ something similar.
This section introduces you to the @strong{MySQL} mailing lists, and gives
This section introduces you to the @strong{MySQL} mailing lists, and gives
some guidelines as to how to use them.
some guidelines as to how to use them.
@node Mailing-list, Asking questions, Questions, Questions
@node Mailing-list, Asking questions, Questions, Questions
@subsubsection The MySQL Mailing Lists
@subsubsection The MySQL Mailing Lists
...
@@ -2246,6 +2266,7 @@ Email @code{subscribe mysql-br your@@email.address} to this list.
...
@@ -2246,6 +2266,7 @@ Email @code{subscribe mysql-br your@@email.address} to this list.
Email @code{subscribe mysql your@@email.address} to this list.
Email @code{subscribe mysql your@@email.address} to this list.
@end table
@end table
@node Asking questions, Bug reports, Mailing-list, Questions
@node Asking questions, Bug reports, Mailing-list, Questions
@subsubsection Asking Questions or Reporting Bugs
@subsubsection Asking Questions or Reporting Bugs
...
@@ -2280,6 +2301,7 @@ local @strong{MySQL} expert. If you still can't find an answer to your
...
@@ -2280,6 +2301,7 @@ local @strong{MySQL} expert. If you still can't find an answer to your
question, go ahead and read the next section about how to send mail to
question, go ahead and read the next section about how to send mail to
@email{mysql@@lists.mysql.com}.
@email{mysql@@lists.mysql.com}.
@node Bug reports, Answering questions, Asking questions, Questions
@node Bug reports, Answering questions, Asking questions, Questions
@subsubsection How to Report Bugs or Problems
@subsubsection How to Report Bugs or Problems
...
@@ -2587,6 +2609,7 @@ it is considered good etiquette to summarize the answers and send the
...
@@ -2587,6 +2609,7 @@ it is considered good etiquette to summarize the answers and send the
summary to the mailing list so that others may have the benefit of
summary to the mailing list so that others may have the benefit of
responses you received that helped you solve your problem!
responses you received that helped you solve your problem!
@node Answering questions, , Bug reports, Questions
@node Answering questions, , Bug reports, Questions
@subsubsection Guidelines for Answering Question on the Mailing List
@subsubsection Guidelines for Answering Question on the Mailing List
...
@@ -2607,6 +2630,7 @@ obliged to quote the entire original message.
...
@@ -2607,6 +2630,7 @@ obliged to quote the entire original message.
Please don't post mail messages from your browser with HTML mode turned on!
Please don't post mail messages from your browser with HTML mode turned on!
Many users don't read mail with a browser!
Many users don't read mail with a browser!
@node Licensing and Support, Compatibility, MySQL Information Sources, Introduction
@node Licensing and Support, Compatibility, MySQL Information Sources, Introduction
@section MySQL Licensing and Support
@section MySQL Licensing and Support
...
@@ -2638,6 +2662,7 @@ arrangements:
...
@@ -2638,6 +2662,7 @@ arrangements:
@item Commercial licensing costs
@item Commercial licensing costs
@end itemize
@end itemize
@node Licensing policy, Copyright, Licensing and Support, Licensing and Support
@node Licensing policy, Copyright, Licensing and Support, Licensing and Support
@subsection MySQL Licensing Policy
@subsection MySQL Licensing Policy
...
@@ -2724,6 +2749,7 @@ is to use the license form on @strong{MySQL}'s secure server at
...
@@ -2724,6 +2749,7 @@ is to use the license form on @strong{MySQL}'s secure server at
@uref{https://order.mysql.com/}. Other forms of payment are
@uref{https://order.mysql.com/}. Other forms of payment are
discussed in @ref{Payment information}.
discussed in @ref{Payment information}.
@node Copyright, Licensing examples, Licensing policy, Licensing and Support
@node Copyright, Licensing examples, Licensing policy, Licensing and Support
@subsection Copyrights Used by MySQL
@subsection Copyrights Used by MySQL
...
@@ -2770,12 +2796,14 @@ However, if you use @strong{MySQL} for something important to you, you may
...
@@ -2770,12 +2796,14 @@ However, if you use @strong{MySQL} for something important to you, you may
want to help secure its development by purchasing licenses or a support
want to help secure its development by purchasing licenses or a support
contract. @xref{Support}.
contract. @xref{Support}.
@node Copyright changes, , Copyright, Copyright
@node Copyright changes, , Copyright, Copyright
@subsubsection Copyright Changes
@subsubsection Copyright Changes
Version 3.22 of @strong{MySQL} is still using a more strict license.
Version 3.22 of @strong{MySQL} is still using a more strict license.
See the documentation for that version for more information.
See the documentation for that version for more information.
@node Licensing examples, Cost, Copyright, Licensing and Support
@node Licensing examples, Cost, Copyright, Licensing and Support
@subsection Example Licensing Situations
@subsection Example Licensing Situations
...
@@ -2797,6 +2825,7 @@ Note that a single @strong{MySQL} license covers any number of CPUs and
...
@@ -2797,6 +2825,7 @@ Note that a single @strong{MySQL} license covers any number of CPUs and
@code{mysqld} servers on a machine! There is no artificial limit on the
@code{mysqld} servers on a machine! There is no artificial limit on the
number of clients that connect to the server in any way.
number of clients that connect to the server in any way.
@node Products that use MySQL, ISP, Licensing examples, Licensing examples
@node Products that use MySQL, ISP, Licensing examples, Licensing examples
@subsubsection Selling Products that use MySQL
@subsubsection Selling Products that use MySQL
...
@@ -2841,6 +2870,7 @@ don't need a license.
...
@@ -2841,6 +2870,7 @@ don't need a license.
@end itemize
@end itemize
@node ISP, Web server, Products that use MySQL, Licensing examples
@node ISP, Web server, Products that use MySQL, Licensing examples
@subsubsection ISP MySQL Services
@subsubsection ISP MySQL Services
...
@@ -2867,6 +2897,7 @@ it should give its customers at least read access to the source of
...
@@ -2867,6 +2897,7 @@ it should give its customers at least read access to the source of
the @strong{MySQL} installation so that its customer can verify that
the @strong{MySQL} installation so that its customer can verify that
it is patched correctly.
it is patched correctly.
@node Web server, , ISP, Licensing examples
@node Web server, , ISP, Licensing examples
@subsubsection Running a Web Server Using MySQL
@subsubsection Running a Web Server Using MySQL
...
@@ -2881,6 +2912,7 @@ This is true even if you run a commercial Web server that uses
...
@@ -2881,6 +2912,7 @@ This is true even if you run a commercial Web server that uses
version yourself. However, in this case we would like you to purchase
version yourself. However, in this case we would like you to purchase
@strong{MySQL} support, because @strong{MySQL} is helping your enterprise.
@strong{MySQL} support, because @strong{MySQL} is helping your enterprise.
@node Cost, Support, Licensing examples, Licensing and Support
@node Cost, Support, Licensing examples, Licensing and Support
@subsection MySQL Licensing and Support Costs
@subsection MySQL Licensing and Support Costs
...
@@ -2963,6 +2995,7 @@ Note that as our sales staff is very busy, it may take some time until
...
@@ -2963,6 +2995,7 @@ Note that as our sales staff is very busy, it may take some time until
your request is handled. Our support staff does however always answer
your request is handled. Our support staff does however always answer
promptly to support questions!
promptly to support questions!
@node Payment information, Contact information, Cost, Cost
@node Payment information, Contact information, Cost, Cost
@subsubsection Payment information
@subsubsection Payment information
...
@@ -3011,6 +3044,7 @@ us'' in the comment field. You can also mail a message to
...
@@ -3011,6 +3044,7 @@ us'' in the comment field. You can also mail a message to
@email{sales@@mysql.com} (@strong{not} @code{mysql@@lists.mysql.com}!)
@email{sales@@mysql.com} (@strong{not} @code{mysql@@lists.mysql.com}!)
with your company information and ask us to bill you.
with your company information and ask us to bill you.
@node Contact information, , Payment information, Cost
@node Contact information, , Payment information, Cost
@subsubsection Contact Information
@subsubsection Contact Information
...
@@ -3053,6 +3087,7 @@ For general information inquires, please send e-mail to
...
@@ -3053,6 +3087,7 @@ For general information inquires, please send e-mail to
For questions or comments about the workings or content of the Web site,
For questions or comments about the workings or content of the Web site,
please send e-mail to @email{webmaster@@mysql.com}.
please send e-mail to @email{webmaster@@mysql.com}.
@node Support, , Cost, Licensing and Support
@node Support, , Cost, Licensing and Support
@subsection Types of Commercial Support
@subsection Types of Commercial Support
...
@@ -3091,6 +3126,7 @@ if you have login support (2000 EURO), you can expect us to work up to
...
@@ -3091,6 +3126,7 @@ if you have login support (2000 EURO), you can expect us to work up to
10 hours to help you with things like this.
10 hours to help you with things like this.
@end itemize
@end itemize
@node Basic email support, Extended email support, Support, Support
@node Basic email support, Extended email support, Support, Support
@subsubsection Basic E-mail Support
@subsubsection Basic E-mail Support
...
@@ -3164,6 +3200,7 @@ If you want us to help optimize your system, you must upgrade to a
...
@@ -3164,6 +3200,7 @@ If you want us to help optimize your system, you must upgrade to a
higher level of support.
higher level of support.
@end itemize
@end itemize
@node Extended email support, Login support, Basic email support, Support
@node Extended email support, Login support, Basic email support, Support
@subsubsection Extended E-mail Support
@subsubsection Extended E-mail Support
...
@@ -3211,6 +3248,7 @@ TODO List. @xref{TODO}. This will ensure that the features you really need
...
@@ -3211,6 +3248,7 @@ TODO List. @xref{TODO}. This will ensure that the features you really need
will be implemented sooner than they might be otherwise.
will be implemented sooner than they might be otherwise.
@end itemize
@end itemize
@node Login support, Extended login support, Extended email support, Support
@node Login support, Extended login support, Extended email support, Support
@subsubsection Login Support
@subsubsection Login Support
...
@@ -3254,6 +3292,7 @@ before talking on phone, to be able to work as efficiently as possible on
...
@@ -3254,6 +3292,7 @@ before talking on phone, to be able to work as efficiently as possible on
solving the problem.
solving the problem.
@end itemize
@end itemize
@node Extended login support, Telephone support, Login support, Support
@node Extended login support, Telephone support, Login support, Support
@subsubsection Extended Login Support
@subsubsection Extended Login Support
...
@@ -3291,6 +3330,7 @@ without charge. For the hours above 8 hours, you will be charged with a
...
@@ -3291,6 +3330,7 @@ without charge. For the hours above 8 hours, you will be charged with a
rate that is at least 20 % less than our standard rates.
rate that is at least 20 % less than our standard rates.
@end itemize
@end itemize
@node Telephone support, Table handler support, Extended login support, Support
@node Telephone support, Table handler support, Extended login support, Support
@subsubsection Telephone Support
@subsubsection Telephone Support
...
@@ -3307,6 +3347,7 @@ For non critical problem, you can request a @strong{MySQL} developer to
...
@@ -3307,6 +3347,7 @@ For non critical problem, you can request a @strong{MySQL} developer to
phone back within 48 hours to discuss @code{MySQL} related issues.
phone back within 48 hours to discuss @code{MySQL} related issues.
@end itemize
@end itemize
@node Table handler support, , Telephone support, Support
@node Table handler support, , Telephone support, Support
@subsubsection Support for other table handlers
@subsubsection Support for other table handlers
...
@@ -3327,6 +3368,7 @@ timely manner, we can't guarantee a quick solution for any problems you
...
@@ -3327,6 +3368,7 @@ timely manner, we can't guarantee a quick solution for any problems you
can get with the different table handlers. We will however do our best
can get with the different table handlers. We will however do our best
to help you get the problem solved.
to help you get the problem solved.
@node Compatibility, Comparisons, Licensing and Support, Introduction
@node Compatibility, Comparisons, Licensing and Support, Introduction
@section How Standards-compatible Is MySQL?
@section How Standards-compatible Is MySQL?
...
@@ -3351,6 +3393,7 @@ will find out what they are, and how to use them. You will also find
...
@@ -3351,6 +3393,7 @@ will find out what they are, and how to use them. You will also find
information about functionality missing from @strong{MySQL}, and how to work
information about functionality missing from @strong{MySQL}, and how to work
around some differences.
around some differences.
@node Extensions to ANSI, Differences from ANSI, Compatibility, Compatibility
@node Extensions to ANSI, Differences from ANSI, Compatibility, Compatibility
@subsection MySQL Extensions to ANSI SQL92
@subsection MySQL Extensions to ANSI SQL92
...
@@ -3596,6 +3639,7 @@ SELECT @@t1:=(@@t2:=1)+@@t3:=4,@@t1,@@t2,@@t3;
...
@@ -3596,6 +3639,7 @@ SELECT @@t1:=(@@t2:=1)+@@t3:=4,@@t1,@@t2,@@t3;
@end itemize
@end itemize
@node Differences from ANSI, ANSI mode, Extensions to ANSI, Compatibility
@node Differences from ANSI, ANSI mode, Extensions to ANSI, Compatibility
@subsection MySQL Differences Compared to ANSI SQL92
@subsection MySQL Differences Compared to ANSI SQL92
...
@@ -3623,6 +3667,7 @@ This is because we don't think it's good to have to evaluate a lot of
...
@@ -3623,6 +3667,7 @@ This is because we don't think it's good to have to evaluate a lot of
extra conditions in this case.
extra conditions in this case.
@end itemize
@end itemize
@node ANSI mode, Missing functions, Differences from ANSI, Compatibility
@node ANSI mode, Missing functions, Differences from ANSI, Compatibility
@subsection Running MySQL in ANSI Mode
@subsection Running MySQL in ANSI Mode
...
@@ -3649,6 +3694,7 @@ The default transaction isolation level is @code{SERIALIZABLE}.
...
@@ -3649,6 +3694,7 @@ The default transaction isolation level is @code{SERIALIZABLE}.
@xref{SET TRANSACTION}.
@xref{SET TRANSACTION}.
@end itemize
@end itemize
@node Missing functions, Standards, ANSI mode, Compatibility
@node Missing functions, Standards, ANSI mode, Compatibility
@subsection Functionality Missing from MySQL
@subsection Functionality Missing from MySQL
...
@@ -3673,6 +3719,7 @@ list in this manual. @xref{TODO}.
...
@@ -3673,6 +3719,7 @@ list in this manual. @xref{TODO}.
* Missing comments:: @samp{--} as the start of a comment
* Missing comments:: @samp{--} as the start of a comment
@end menu
@end menu
@node Missing Sub-selects, Missing SELECT INTO TABLE, Missing functions, Missing functions
@node Missing Sub-selects, Missing SELECT INTO TABLE, Missing functions, Missing functions
@subsubsection Sub-selects
@subsubsection Sub-selects
...
@@ -3730,6 +3777,7 @@ prompt> mysql --skip-column-names mydb < myscript.sql | mysql mydb
...
@@ -3730,6 +3777,7 @@ prompt> mysql --skip-column-names mydb < myscript.sql | mysql mydb
be available in Version 4.0. You can now use the function @code{IN()} in
be available in Version 4.0. You can now use the function @code{IN()} in
other contexts, however.
other contexts, however.
@node Missing SELECT INTO TABLE, Missing Transactions, Missing Sub-selects, Missing functions
@node Missing SELECT INTO TABLE, Missing Transactions, Missing Sub-selects, Missing functions
@subsubsection @code{SELECT INTO TABLE}
@subsubsection @code{SELECT INTO TABLE}
...
@@ -3748,6 +3796,7 @@ tblTemp1.fldOrder_ID > 100;
...
@@ -3748,6 +3796,7 @@ tblTemp1.fldOrder_ID > 100;
Alternatively, you can use @code{SELECT INTO OUTFILE...} or @code{CREATE
Alternatively, you can use @code{SELECT INTO OUTFILE...} or @code{CREATE
TABLE ... SELECT} to solve your problem.
TABLE ... SELECT} to solve your problem.
@node Missing Transactions, Missing Triggers, Missing SELECT INTO TABLE, Missing functions
@node Missing Transactions, Missing Triggers, Missing SELECT INTO TABLE, Missing functions
@subsubsection Transactions
@subsubsection Transactions
...
@@ -3863,6 +3912,7 @@ that we believe to be better than any commercial replication system we
...
@@ -3863,6 +3912,7 @@ that we believe to be better than any commercial replication system we
know of. This system will work most reliably under the atomic
know of. This system will work most reliably under the atomic
operations, non-transactional, paradigm. Stay tuned.
operations, non-transactional, paradigm. Stay tuned.
@node Missing Triggers, Missing Foreign Keys, Missing Transactions, Missing functions
@node Missing Triggers, Missing Foreign Keys, Missing Transactions, Missing functions
@subsubsection Stored Procedures and Triggers
@subsubsection Stored Procedures and Triggers
...
@@ -3870,7 +3920,6 @@ operations, non-transactional, paradigm. Stay tuned.
...
@@ -3870,7 +3920,6 @@ operations, non-transactional, paradigm. Stay tuned.
@cindex procedures, stored
@cindex procedures, stored
@cindex triggers, stored
@cindex triggers, stored
A stored procedure is a set of SQL commands that can be compiled and stored
A stored procedure is a set of SQL commands that can be compiled and stored
in the server. Once this has been done, clients don't need to keep reissuing
in the server. Once this has been done, clients don't need to keep reissuing
the entire query but can refer to the stored procedure. This provides better
the entire query but can refer to the stored procedure. This provides better
...
@@ -3890,6 +3939,7 @@ down everything, even queries for which they are not needed.
...
@@ -3890,6 +3939,7 @@ down everything, even queries for which they are not needed.
To see when @strong{MySQL} might get stored procedures, see @ref{TODO}.
To see when @strong{MySQL} might get stored procedures, see @ref{TODO}.
@node Missing Foreign Keys, Broken Foreign KEY, Missing Triggers, Missing functions
@node Missing Foreign Keys, Broken Foreign KEY, Missing Triggers, Missing functions
@subsubsection Foreign Keys
@subsubsection Foreign Keys
...
@@ -3934,6 +3984,7 @@ coded to avoid them.
...
@@ -3934,6 +3984,7 @@ coded to avoid them.
* Broken Foreign KEY:: Reasons NOT to use foreign keys constraints
* Broken Foreign KEY:: Reasons NOT to use foreign keys constraints
@end menu
@end menu
@node Broken Foreign KEY, Missing Views, Missing Foreign Keys, Missing functions
@node Broken Foreign KEY, Missing Views, Missing Foreign Keys, Missing functions
@subsubsection Reasons NOT to Use Foreign Keys constraints
@subsubsection Reasons NOT to Use Foreign Keys constraints
...
@@ -3990,6 +4041,7 @@ connection was made. The current @file{.frm} file format does not have
...
@@ -3990,6 +4041,7 @@ connection was made. The current @file{.frm} file format does not have
any place for it. At a later stage we will implement the foreign key
any place for it. At a later stage we will implement the foreign key
constraints for application that can't easily be coded to avoid them.
constraints for application that can't easily be coded to avoid them.
@node Missing Views, Missing comments, Broken Foreign KEY, Missing functions
@node Missing Views, Missing comments, Broken Foreign KEY, Missing functions
@subsubsection Views
@subsubsection Views
...
@@ -4012,6 +4064,7 @@ One doesn't need views in @strong{MySQL} to restrict access to columns
...
@@ -4012,6 +4064,7 @@ One doesn't need views in @strong{MySQL} to restrict access to columns
as @strong{MySQL} has a very sophisticated privilege
as @strong{MySQL} has a very sophisticated privilege
system. @xref{Privilege system}.
system. @xref{Privilege system}.
@node Missing comments, , Missing Views, Missing functions
@node Missing comments, , Missing Views, Missing functions
@subsubsection @samp{--} as the Start of a Comment
@subsubsection @samp{--} as the Start of a Comment
...
@@ -4074,11 +4127,13 @@ Change them back with this command:
...
@@ -4074,11 +4127,13 @@ Change them back with this command:
shell> replace " #" " --" -- text-file-with-funny-comments.sql
shell> replace " #" " --" -- text-file-with-funny-comments.sql
@end example
@end example
@node Standards, Commit-rollback, Missing functions, Compatibility
@node Standards, Commit-rollback, Missing functions, Compatibility
@subsection What Standards Does MySQL Follow?
@subsection What Standards Does MySQL Follow?
Entry level SQL92. ODBC levels 0-2.
Entry level SQL92. ODBC levels 0-2.
@node Commit-rollback, Bugs, Standards, Compatibility
@node Commit-rollback, Bugs, Standards, Compatibility
@subsection How to Cope Without @code{COMMIT}/@code{ROLLBACK}
@subsection How to Cope Without @code{COMMIT}/@code{ROLLBACK}
...
@@ -4213,6 +4268,7 @@ You can think of it as @strong{MySQL} changed the above query to:
...
@@ -4213,6 +4268,7 @@ You can think of it as @strong{MySQL} changed the above query to:
UPDATE tbl_name SET row_flag=1 WHERE id=ID and row_flag <> 1;
UPDATE tbl_name SET row_flag=1 WHERE id=ID and row_flag <> 1;
@end example
@end example
@node Bugs, , Commit-rollback, Compatibility
@node Bugs, , Commit-rollback, Compatibility
@subsection Known errors and design deficiencies in MySQL
@subsection Known errors and design deficiencies in MySQL
...
@@ -4455,6 +4511,7 @@ decimals.
...
@@ -4455,6 +4511,7 @@ decimals.
For platform-specific bugs, see the sections about compiling and porting.
For platform-specific bugs, see the sections about compiling and porting.
@node Comparisons, TODO, Compatibility, Introduction
@node Comparisons, TODO, Compatibility, Introduction
@section How MySQL Compares to Other Databases
@section How MySQL Compares to Other Databases
...
@@ -4477,6 +4534,7 @@ For a list of all supported limits, functions, and types, see the
...
@@ -4477,6 +4534,7 @@ For a list of all supported limits, functions, and types, see the
@code{crash-me} Web page at
@code{crash-me} Web page at
@uref{http://www.mysql.com/information/crash-me.php}.
@uref{http://www.mysql.com/information/crash-me.php}.
@node Compare mSQL, Compare PostgreSQL, Comparisons, Comparisons
@node Compare mSQL, Compare PostgreSQL, Comparisons, Comparisons
@subsection How MySQL Compares to @code{mSQL}
@subsection How MySQL Compares to @code{mSQL}
...
@@ -4669,6 +4727,7 @@ For example, it changes instances of @code{msqlConnect()} to
...
@@ -4669,6 +4727,7 @@ For example, it changes instances of @code{msqlConnect()} to
* Syntax differences::
* Syntax differences::
@end menu
@end menu
@node Using mSQL tools, Protocol differences, Compare mSQL, Compare mSQL
@node Using mSQL tools, Protocol differences, Compare mSQL, Compare mSQL
@subsubsection How to Convert @code{mSQL} Tools for MySQL
@subsubsection How to Convert @code{mSQL} Tools for MySQL
...
@@ -4714,6 +4773,7 @@ Some incompatibilities exist as a result of @strong{MySQL} supporting
...
@@ -4714,6 +4773,7 @@ Some incompatibilities exist as a result of @strong{MySQL} supporting
multiple connections to the server from the same process.
multiple connections to the server from the same process.
@end itemize
@end itemize
@node Protocol differences, Syntax differences, Using mSQL tools, Compare mSQL
@node Protocol differences, Syntax differences, Using mSQL tools, Compare mSQL
@subsubsection How @code{mSQL} and MySQL Client/Server Communications Protocols Differ
@subsubsection How @code{mSQL} and MySQL Client/Server Communications Protocols Differ
...
@@ -4752,6 +4812,7 @@ If a connection is idle for 8 hours, the server closes the connection.
...
@@ -4752,6 +4812,7 @@ If a connection is idle for 8 hours, the server closes the connection.
* Syntax differences::
* Syntax differences::
@end menu
@end menu
@node Syntax differences, , Protocol differences, Compare mSQL
@node Syntax differences, , Protocol differences, Compare mSQL
@subsubsection How @code{mSQL} 2.0 SQL Syntax Differs from MySQL
@subsubsection How @code{mSQL} 2.0 SQL Syntax Differs from MySQL
...
@@ -4974,6 +5035,7 @@ can offer, you should use @code{PostgreSQL}.
...
@@ -4974,6 +5035,7 @@ can offer, you should use @code{PostgreSQL}.
* MySQL-PostgreSQL benchmarks::
* MySQL-PostgreSQL benchmarks::
@end menu
@end menu
@node MySQL-PostgreSQL goals, MySQL-PostgreSQL features, Compare PostgreSQL, Compare PostgreSQL
@node MySQL-PostgreSQL goals, MySQL-PostgreSQL features, Compare PostgreSQL, Compare PostgreSQL
@subsubsection MySQL and PostgreSQL development strategies
@subsubsection MySQL and PostgreSQL development strategies
...
@@ -5241,6 +5303,7 @@ in this section.
...
@@ -5241,6 +5303,7 @@ in this section.
* MySQL-PostgreSQL benchmarks::
* MySQL-PostgreSQL benchmarks::
@end menu
@end menu
@node MySQL-PostgreSQL benchmarks, , MySQL-PostgreSQL features, Compare PostgreSQL
@node MySQL-PostgreSQL benchmarks, , MySQL-PostgreSQL features, Compare PostgreSQL
@subsubsection Benchmarking MySQL and PostgreSQL
@subsubsection Benchmarking MySQL and PostgreSQL
...
@@ -5462,6 +5525,7 @@ We are working on an even better benchmark suite, including much better
...
@@ -5462,6 +5525,7 @@ We are working on an even better benchmark suite, including much better
documentation of what the individual tests really do and how to add more
documentation of what the individual tests really do and how to add more
tests to the suite.
tests to the suite.
@node TODO, , Comparisons, Introduction
@node TODO, , Comparisons, Introduction
@section MySQL and the future (The TODO)
@section MySQL and the future (The TODO)
...
@@ -5484,6 +5548,7 @@ The plan is that we in the future will support the full ANSI SQL99
...
@@ -5484,6 +5548,7 @@ The plan is that we in the future will support the full ANSI SQL99
standard, but with a lot of useful extensions. The challenge is to do
standard, but with a lot of useful extensions. The challenge is to do
this without sacrifying the speed or compromise the code.
this without sacrifying the speed or compromise the code.
@node TODO MySQL 4.0, TODO future, TODO, TODO
@node TODO MySQL 4.0, TODO future, TODO, TODO
@subsection Things that should be in 4.0
@subsection Things that should be in 4.0
...
@@ -5569,6 +5634,7 @@ of @code{analyze} is run on all sub tables.
...
@@ -5569,6 +5634,7 @@ of @code{analyze} is run on all sub tables.
@code{SET SQL_DEFAULT_TABLE_TYPE=[MyISAM | INNODB | BDB | HEAP]}.
@code{SET SQL_DEFAULT_TABLE_TYPE=[MyISAM | INNODB | BDB | HEAP]}.
@end itemize
@end itemize
@node TODO future, TODO sometime, TODO MySQL 4.0, TODO
@node TODO future, TODO sometime, TODO MySQL 4.0, TODO
@subsection Things that must be done in the real near future
@subsection Things that must be done in the real near future
...
@@ -5850,6 +5916,7 @@ if it exists and @code{INSERT} a new row if the row didn't exist.
...
@@ -5850,6 +5916,7 @@ if it exists and @code{INSERT} a new row if the row didn't exist.
(Like @code{REPLACE} works with @code{INSERT} / @code{DELETE})
(Like @code{REPLACE} works with @code{INSERT} / @code{DELETE})
@end itemize
@end itemize
@node TODO sometime, TODO unplanned, TODO future, TODO
@node TODO sometime, TODO unplanned, TODO future, TODO
@subsection Things that have to be done sometime
@subsection Things that have to be done sometime
...
@@ -5945,6 +6012,7 @@ one must also handle the possible deadlocks this change will introduce.
...
@@ -5945,6 +6012,7 @@ one must also handle the possible deadlocks this change will introduce.
Time is given according to amount of work, not real time.
Time is given according to amount of work, not real time.
@node TODO unplanned, , TODO sometime, TODO
@node TODO unplanned, , TODO sometime, TODO
@subsection Some things we don't have any plans to do
@subsection Some things we don't have any plans to do
...
@@ -5953,6 +6021,9 @@ Time is given according to amount of work, not real time.
...
@@ -5953,6 +6021,9 @@ Time is given according to amount of work, not real time.
Nothing; In the long run we plan to be fully ANSI 92 / ANSI 99 compliant.
Nothing; In the long run we plan to be fully ANSI 92 / ANSI 99 compliant.
@end itemize
@end itemize
@node Installing, Tutorial, Introduction, Top
@node Installing, Tutorial, Introduction, Top
@chapter MySQL Installation
@chapter MySQL Installation
...
@@ -6000,6 +6071,7 @@ procedures apply whether you install @strong{MySQL} using a binary or
...
@@ -6000,6 +6071,7 @@ procedures apply whether you install @strong{MySQL} using a binary or
source distribution.
source distribution.
@end itemize
@end itemize
@node Quick Standard Installation, General Installation Issues, Installing, Installing
@node Quick Standard Installation, General Installation Issues, Installing, Installing
@section Quick Standard Installation of MySQL
@section Quick Standard Installation of MySQL
...
@@ -6009,6 +6081,7 @@ source distribution.
...
@@ -6009,6 +6081,7 @@ source distribution.
* Windows installation::
* Windows installation::
@end menu
@end menu
@node Linux-RPM, Windows installation, Quick Standard Installation, Quick Standard Installation
@node Linux-RPM, Windows installation, Quick Standard Installation, Quick Standard Installation
@subsection Installing MySQL on Linux
@subsection Installing MySQL on Linux
...
@@ -6084,6 +6157,7 @@ and you should now be able to start using @strong{MySQL}.
...
@@ -6084,6 +6157,7 @@ and you should now be able to start using @strong{MySQL}.
If something goes wrong, you can find more information in the binary
If something goes wrong, you can find more information in the binary
installation chapter. @xref{Installing binary}.
installation chapter. @xref{Installing binary}.
@node Windows installation, , Linux-RPM, Quick Standard Installation
@node Windows installation, , Linux-RPM, Quick Standard Installation
@subsection Installing MySQL on Windows
@subsection Installing MySQL on Windows
...
@@ -6173,6 +6247,7 @@ options that must be specified in your @file{my.ini} file! @xref{InnoDB start}.
...
@@ -6173,6 +6247,7 @@ options that must be specified in your @file{my.ini} file! @xref{InnoDB start}.
* MySQL binaries::
* MySQL binaries::
@end menu
@end menu
@node Getting MySQL, Which OS, General Installation Issues, General Installation Issues
@node Getting MySQL, Which OS, General Installation Issues, General Installation Issues
@subsection How to Get MySQL
@subsection How to Get MySQL
...
@@ -7125,6 +7200,7 @@ forth more effort into testing on and optimizing for that particular platform.
...
@@ -7125,6 +7200,7 @@ forth more effort into testing on and optimizing for that particular platform.
We are just stating our observations to help you make a
We are just stating our observations to help you make a
decision on which platform to use @strong{MySQL} on in your setup.
decision on which platform to use @strong{MySQL} on in your setup.
@node Which version, Installation layouts, Which OS, General Installation Issues
@node Which version, Installation layouts, Which OS, General Installation Issues
@subsection Which MySQL Version to Use
@subsection Which MySQL Version to Use
...
@@ -7306,6 +7382,7 @@ Another test is that we use the newest @strong{MySQL} version in our internal
...
@@ -7306,6 +7382,7 @@ Another test is that we use the newest @strong{MySQL} version in our internal
production environment, on at least one machine. We have more than 100
production environment, on at least one machine. We have more than 100
gigabytes of data to work with.
gigabytes of data to work with.
@node Installation layouts, Many versions, Which version, General Installation Issues
@node Installation layouts, Many versions, Which version, General Installation Issues
@subsection Installation Layouts
@subsection Installation Layouts
...
@@ -7371,6 +7448,7 @@ The header file and library directories are @file{include/mysql} and
...
@@ -7371,6 +7448,7 @@ The header file and library directories are @file{include/mysql} and
You can create your own binary installation from a compiled source
You can create your own binary installation from a compiled source
distribution by executing the script @file{scripts/make_binary_distribution}.
distribution by executing the script @file{scripts/make_binary_distribution}.
@node Many versions, MySQL binaries, Installation layouts, General Installation Issues
@node Many versions, MySQL binaries, Installation layouts, General Installation Issues
@subsection How and When Updates Are Released
@subsection How and When Updates Are Released
...
@@ -7432,6 +7510,7 @@ and things that ``must be done.'' ``Somewhat frozen'' means that we may
...
@@ -7432,6 +7510,7 @@ and things that ``must be done.'' ``Somewhat frozen'' means that we may
add small things that ``almost surely will not affect anything that's
add small things that ``almost surely will not affect anything that's
already working.''
already working.''
@node MySQL binaries, , Many versions, General Installation Issues
@node MySQL binaries, , Many versions, General Installation Issues
@subsection MySQL Binaries Compiled by MySQL AB
@subsection MySQL Binaries Compiled by MySQL AB
...
@@ -7491,6 +7570,7 @@ If you want to compile a debug version of @strong{MySQL}, you should add
...
@@ -7491,6 +7570,7 @@ If you want to compile a debug version of @strong{MySQL}, you should add
@code{--with-debug} or @code{--with-debug=full} to the above configure lines
@code{--with-debug} or @code{--with-debug=full} to the above configure lines
and remove any @code{-fomit-frame-pointer} options.
and remove any @code{-fomit-frame-pointer} options.
@node Installing source, Post-installation, General Installation Issues, Installing
@node Installing source, Post-installation, General Installation Issues, Installing
@section Installing a MySQL Source Distribution
@section Installing a MySQL Source Distribution
...
@@ -7565,6 +7645,7 @@ of getting a solution to your problem! You will find @code{mysqlbug} in the
...
@@ -7565,6 +7645,7 @@ of getting a solution to your problem! You will find @code{mysqlbug} in the
* MIT-pthreads::
* MIT-pthreads::
@end menu
@end menu
@node Quick install, Applying patches, Installing source, Installing source
@node Quick install, Applying patches, Installing source, Installing source
@subsection Quick Installation Overview
@subsection Quick Installation Overview
...
@@ -7744,6 +7825,7 @@ running. @xref{Multiple servers}.
...
@@ -7744,6 +7825,7 @@ running. @xref{Multiple servers}.
@xref{Post-installation}.
@xref{Post-installation}.
@node Applying patches, configure options, Quick install, Installing source
@node Applying patches, configure options, Quick install, Installing source
@subsection Applying Patches
@subsection Applying Patches
...
@@ -7785,6 +7867,7 @@ You may need to bring down any currently running server before you run
...
@@ -7785,6 +7867,7 @@ You may need to bring down any currently running server before you run
systems do not allow you to install a new version of a program if it replaces
systems do not allow you to install a new version of a program if it replaces
the version that is currently executing.
the version that is currently executing.
@node configure options, Installing source tree, Applying patches, Installing source
@node configure options, Installing source tree, Applying patches, Installing source
@subsection Typical @code{configure} Options
@subsection Typical @code{configure} Options
...
@@ -8007,6 +8090,7 @@ system-specific section of this manual.
...
@@ -8007,6 +8090,7 @@ system-specific section of this manual.
@xref{Operating System Specific Notes}.
@xref{Operating System Specific Notes}.
@end itemize
@end itemize
@node Installing source tree, Compilation problems, configure options, Installing source
@node Installing source tree, Compilation problems, configure options, Installing source
@subsection Installing from the Development Source Tree
@subsection Installing from the Development Source Tree
...
@@ -8108,6 +8192,7 @@ a description.
...
@@ -8108,6 +8192,7 @@ a description.
@end enumerate
@end enumerate
@node Compilation problems, MIT-pthreads, Installing source tree, Installing source
@node Compilation problems, MIT-pthreads, Installing source tree, Installing source
@subsection Problems Compiling?
@subsection Problems Compiling?
...
@@ -8329,6 +8414,7 @@ If you need to debug @code{mysqld} or a @strong{MySQL} client, run
...
@@ -8329,6 +8414,7 @@ If you need to debug @code{mysqld} or a @strong{MySQL} client, run
link your clients with the new client library. @xref{Debugging client}.
link your clients with the new client library. @xref{Debugging client}.
@end itemize
@end itemize
@node MIT-pthreads, , Compilation problems, Installing source
@node MIT-pthreads, , Compilation problems, Installing source
@subsection MIT-pthreads Notes
@subsection MIT-pthreads Notes
...
@@ -8695,6 +8781,7 @@ shell> BINDIR/mysql -vvf test < ./tests/auto_increment.tst
...
@@ -8695,6 +8781,7 @@ shell> BINDIR/mysql -vvf test < ./tests/auto_increment.tst
The expected results are shown in the @file{./tests/auto_increment.res} file.
The expected results are shown in the @file{./tests/auto_increment.res} file.
@end enumerate
@end enumerate
@node mysql_install_db, Starting server, Post-installation, Post-installation
@node mysql_install_db, Starting server, Post-installation, Post-installation
@subsection Problems Running @code{mysql_install_db}
@subsection Problems Running @code{mysql_install_db}
@cindex @code{mysql_install_db} script
@cindex @code{mysql_install_db} script
...
@@ -8807,6 +8894,7 @@ flush-privileges} or @code{mysqladmin reload} afterward to tell the server to
...
@@ -8807,6 +8894,7 @@ flush-privileges} or @code{mysqladmin reload} afterward to tell the server to
reload the grant tables.
reload the grant tables.
@end table
@end table
@node Starting server, Automatic start, mysql_install_db, Post-installation
@node Starting server, Automatic start, mysql_install_db, Post-installation
@subsection Problems Starting the MySQL Server
@subsection Problems Starting the MySQL Server
@cindex server, starting problems
@cindex server, starting problems
...
@@ -8965,8 +9053,10 @@ options. @xref{InnoDB start}.
...
@@ -8965,8 +9053,10 @@ options. @xref{InnoDB start}.
If you are using BDB (Berkeley DB) tables, you should familiarize
If you are using BDB (Berkeley DB) tables, you should familiarize
yourself with the different BDB specific startup options. @xref{BDB start}.
yourself with the different BDB specific startup options. @xref{BDB start}.
@node Automatic start, , Starting server, Post-installation
@node Automatic start, , Starting server, Post-installation
@subsection Starting and Stopping MySQL Automatically
@subsection Starting and Stopping MySQL Automatically
@cindex starting, the server automatically
@cindex starting, the server automatically
@cindex stopping, the server
@cindex stopping, the server
@cindex server, starting and stopping
@cindex server, starting and stopping
...
@@ -9040,6 +9130,7 @@ read from option files:
...
@@ -9040,6 +9130,7 @@ read from option files:
@xref{Option files}.
@xref{Option files}.
@node Upgrade, Operating System Specific Notes, Post-installation, Installing
@node Upgrade, Operating System Specific Notes, Post-installation, Installing
@section Upgrading/Downgrading MySQL
@section Upgrading/Downgrading MySQL
...
@@ -9086,6 +9177,7 @@ dumping core after you upgrade @strong{MySQL}.
...
@@ -9086,6 +9177,7 @@ dumping core after you upgrade @strong{MySQL}.
* Upgrading-to-arch:: Upgrading to another architecture
* Upgrading-to-arch:: Upgrading to another architecture
@end menu
@end menu
@node Upgrading-from-3.22, Upgrading-from-3.21, Upgrade, Upgrade
@node Upgrading-from-3.22, Upgrading-from-3.21, Upgrade, Upgrade
@subsection Upgrading From Version 3.22 to Version 3.23
@subsection Upgrading From Version 3.22 to Version 3.23
...
@@ -9211,6 +9303,7 @@ on an @code{AND/OR} expression as @code{NOT NULL} = @code{NULL}.
...
@@ -9211,6 +9303,7 @@ on an @code{AND/OR} expression as @code{NOT NULL} = @code{NULL}.
than the length argument.
than the length argument.
@end itemize
@end itemize
@node Upgrading-from-3.21, Upgrading-from-3.20, Upgrading-from-3.22, Upgrade
@node Upgrading-from-3.21, Upgrading-from-3.20, Upgrading-from-3.22, Upgrade
@subsection Upgrading from Version 3.21 to Version 3.22
@subsection Upgrading from Version 3.21 to Version 3.22
...
@@ -9242,8 +9335,10 @@ The @code{mysqld} variable @code{key_buffer} has changed names to
...
@@ -9242,8 +9335,10 @@ The @code{mysqld} variable @code{key_buffer} has changed names to
@code{key_buffer_size}, but you can still use the old name in your
@code{key_buffer_size}, but you can still use the old name in your
startup files.
startup files.
@node Upgrading-from-3.20, Upgrading-to-arch, Upgrading-from-3.21, Upgrade
@node Upgrading-from-3.20, Upgrading-to-arch, Upgrading-from-3.21, Upgrade
@subsection Upgrading from Version 3.20 to Version 3.21
@subsection Upgrading from Version 3.20 to Version 3.21
@cindex upgrading, 3.20 to 3.21
@cindex upgrading, 3.20 to 3.21
If you are running a version older than Version 3.20.28 and want to
If you are running a version older than Version 3.20.28 and want to
...
@@ -9311,6 +9406,7 @@ There are some new reserved words. The most notable are @code{DATE},
...
@@ -9311,6 +9406,7 @@ There are some new reserved words. The most notable are @code{DATE},
@code{TIME}, and @code{TIMESTAMP}.
@code{TIME}, and @code{TIMESTAMP}.
@end itemize
@end itemize
@node Upgrading-to-arch, , Upgrading-from-3.20, Upgrade
@node Upgrading-to-arch, , Upgrading-from-3.20, Upgrade
@subsection Upgrading to Another Architecture
@subsection Upgrading to Another Architecture
...
@@ -9406,6 +9502,7 @@ After you import the @code{mysql} database on the new machine, execute
...
@@ -9406,6 +9502,7 @@ After you import the @code{mysql} database on the new machine, execute
@code{mysqladmin flush-privileges} so that the server reloads the grant table
@code{mysqladmin flush-privileges} so that the server reloads the grant table
information.
information.
@node Operating System Specific Notes, , Upgrade, Installing
@node Operating System Specific Notes, , Upgrade, Installing
@section Operating System Specific Notes
@section Operating System Specific Notes
...
@@ -9421,6 +9518,7 @@ information.
...
@@ -9421,6 +9518,7 @@ information.
* Novell Netware::
* Novell Netware::
@end menu
@end menu
@node Linux, Windows, Operating System Specific Notes, Operating System Specific Notes
@node Linux, Windows, Operating System Specific Notes, Operating System Specific Notes
@subsection Linux Notes (All Linux Versions)
@subsection Linux Notes (All Linux Versions)
...
@@ -9686,6 +9784,7 @@ The following @code{configure} line should work with @code{fcc/FCC}:
...
@@ -9686,6 +9784,7 @@ The following @code{configure} line should work with @code{fcc/FCC}:
CC=fcc CFLAGS="-O -K fast -K lib -K omitfp -Kpreex -D_GNU_SOURCE -DCONST=const -DNO_STRTOLL_PROTO" CXX=FCC CXXFLAGS="-O -K fast -K lib -K omitfp -K preex --no_exceptions --no_rtti -D_GNU_SOURCE -DCONST=const -Dalloca=__builtin_alloca -DNO_STRTOLL_PROTO '-D_EXTERN_INLINE=static __inline'" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --disable-shared --with-low-memory
CC=fcc CFLAGS="-O -K fast -K lib -K omitfp -Kpreex -D_GNU_SOURCE -DCONST=const -DNO_STRTOLL_PROTO" CXX=FCC CXXFLAGS="-O -K fast -K lib -K omitfp -K preex --no_exceptions --no_rtti -D_GNU_SOURCE -DCONST=const -Dalloca=__builtin_alloca -DNO_STRTOLL_PROTO '-D_EXTERN_INLINE=static __inline'" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --disable-shared --with-low-memory
@end example
@end example
@node Binary notes-Linux, Linux-x86, Linux, Linux
@node Binary notes-Linux, Linux-x86, Linux, Linux
@subsubsection Linux Notes for Binary Distributions
@subsubsection Linux Notes for Binary Distributions
...
@@ -9765,6 +9864,7 @@ your clients or use sockets, if you are running the database server
...
@@ -9765,6 +9864,7 @@ your clients or use sockets, if you are running the database server
and clients on the same machine. We hope that the @code{Linux 2.4}
and clients on the same machine. We hope that the @code{Linux 2.4}
kernel will fix this problem in the future.
kernel will fix this problem in the future.
@node Linux-x86, Linux-SPARC, Binary notes-Linux, Linux
@node Linux-x86, Linux-SPARC, Binary notes-Linux, Linux
@subsubsection Linux x86 Notes
@subsubsection Linux x86 Notes
...
@@ -9826,6 +9926,7 @@ You can avoid using @file{libg++.a} by running @code{configure} like this:
...
@@ -9826,6 +9926,7 @@ You can avoid using @file{libg++.a} by running @code{configure} like this:
shell> CXX=gcc ./configure
shell> CXX=gcc ./configure
@end example
@end example
@node Linux-SPARC, Linux-Alpha, Linux-x86, Linux
@node Linux-SPARC, Linux-Alpha, Linux-x86, Linux
@subsubsection Linux SPARC Notes
@subsubsection Linux SPARC Notes
...
@@ -9842,6 +9943,7 @@ that is available at @code{vger.rutgers.edu} (a version of Linux that was
...
@@ -9842,6 +9943,7 @@ that is available at @code{vger.rutgers.edu} (a version of Linux that was
never merged with the official 2.0.30). You must also install LinuxThreads
never merged with the official 2.0.30). You must also install LinuxThreads
Version 0.6 or newer.
Version 0.6 or newer.
@node Linux-Alpha, Linux-PowerPC, Linux-SPARC, Linux
@node Linux-Alpha, Linux-PowerPC, Linux-SPARC, Linux
@subsubsection Linux Alpha Notes
@subsubsection Linux Alpha Notes
...
@@ -9888,12 +9990,14 @@ resulting image will core dump at start. In other words, @strong{DON'T}
...
@@ -9888,12 +9990,14 @@ resulting image will core dump at start. In other words, @strong{DON'T}
use @code{--with-mysqld-ldflags=-all-static} with @code{gcc}.
use @code{--with-mysqld-ldflags=-all-static} with @code{gcc}.
@end itemize
@end itemize
@node Linux-PowerPC, Linux-MIPS, Linux-Alpha, Linux
@node Linux-PowerPC, Linux-MIPS, Linux-Alpha, Linux
@subsubsection Linux PowerPC Notes
@subsubsection Linux PowerPC Notes
@strong{MySQL} should work on MkLinux with the newest @code{glibc} package
@strong{MySQL} should work on MkLinux with the newest @code{glibc} package
(tested with @code{glibc} 2.0.7).
(tested with @code{glibc} 2.0.7).
@node Linux-MIPS, Linux-IA64, Linux-PowerPC, Linux
@node Linux-MIPS, Linux-IA64, Linux-PowerPC, Linux
@subsubsection Linux MIPS Notes
@subsubsection Linux MIPS Notes
...
@@ -9902,6 +10006,7 @@ newest @code{glibc} libraries (@code{glibc-2.0.7-29C2} is known to
...
@@ -9902,6 +10006,7 @@ newest @code{glibc} libraries (@code{glibc-2.0.7-29C2} is known to
work). You must also use the @code{egcs} C++ compiler
work). You must also use the @code{egcs} C++ compiler
(@code{egcs-1.0.2-9}, @code{gcc 2.95.2} or newer).
(@code{egcs-1.0.2-9}, @code{gcc 2.95.2} or newer).
@node Linux-IA64, , Linux-MIPS, Linux
@node Linux-IA64, , Linux-MIPS, Linux
@subsubsection Linux IA64 Notes
@subsubsection Linux IA64 Notes
...
@@ -9948,6 +10053,7 @@ with the @strong{MySQL} Windows distribution.
...
@@ -9948,6 +10053,7 @@ with the @strong{MySQL} Windows distribution.
* Windows vs Unix:: @strong{MySQL}-Windows compared to Unix @strong{MySQL}
* Windows vs Unix:: @strong{MySQL}-Windows compared to Unix @strong{MySQL}
@end menu
@end menu
@node Win95 start, NT start, Windows, Windows
@node Win95 start, NT start, Windows, Windows
@subsubsection Starting MySQL on Windows 95 or Windows 98
@subsubsection Starting MySQL on Windows 95 or Windows 98
...
@@ -9995,6 +10101,7 @@ The last option is to start @code{mysqld} with @code{--standalone
...
@@ -9995,6 +10101,7 @@ The last option is to start @code{mysqld} with @code{--standalone
@file{C:\mysqld.trace} that should contain the reason why @code{mysqld}
@file{C:\mysqld.trace} that should contain the reason why @code{mysqld}
doesn't start. @xref{Making trace files}.
doesn't start. @xref{Making trace files}.
@node NT start, Windows running, Win95 start, Windows
@node NT start, Windows running, Win95 start, Windows
@subsubsection Starting MySQL on Windows NT or Windows 2000
@subsubsection Starting MySQL on Windows NT or Windows 2000
...
@@ -10084,6 +10191,7 @@ C:\> C:\mysql\bin\mysqld --standalone --debug
...
@@ -10084,6 +10191,7 @@ C:\> C:\mysql\bin\mysqld --standalone --debug
The last version gives you a debug trace in @file{C:\mysqld.trace}.
The last version gives you a debug trace in @file{C:\mysqld.trace}.
@xref{Making trace files}.
@xref{Making trace files}.
@node Windows running, Windows and SSH, NT start, Windows
@node Windows running, Windows and SSH, NT start, Windows
@subsubsection Running MySQL on Windows
@subsubsection Running MySQL on Windows
...
@@ -10169,10 +10277,12 @@ With the current @strong{MySQL} versions you can easily add new users
...
@@ -10169,10 +10277,12 @@ With the current @strong{MySQL} versions you can easily add new users
and change privileges with @code{GRANT} and @code{REVOKE} commands.
and change privileges with @code{GRANT} and @code{REVOKE} commands.
@xref{GRANT}.
@xref{GRANT}.
@c FIX this is ugly, real ugly.
@node Windows and SSH, Windows symbolic links, Windows running, Windows
@node Windows and SSH, Windows symbolic links, Windows running, Windows
@subsubsection Connecting to a Remote MySQL from Windows with SSH
@subsubsection Connecting to a Remote MySQL from Windows with SSH
@c FIX this is ugly, real ugly.
@cindex SSH
@cindex SSH
@cindex connecting, remotely with SSH
@cindex connecting, remotely with SSH
...
@@ -10214,6 +10324,7 @@ for the @strong{MySQL} host server --- not @code{yourmysqlservername}.
...
@@ -10214,6 +10324,7 @@ for the @strong{MySQL} host server --- not @code{yourmysqlservername}.
You should now have an ODBC connection to @strong{MySQL}, encrypted using SSH.
You should now have an ODBC connection to @strong{MySQL}, encrypted using SSH.
@node Windows symbolic links, Windows compiling, Windows and SSH, Windows
@node Windows symbolic links, Windows compiling, Windows and SSH, Windows
@subsubsection Splitting Data Across Different Disks on Windows
@subsubsection Splitting Data Across Different Disks on Windows
...
@@ -10253,6 +10364,7 @@ In @strong{MySQL} 4.0 we will enable symlinks by default. Then you
...
@@ -10253,6 +10364,7 @@ In @strong{MySQL} 4.0 we will enable symlinks by default. Then you
should instead use the @code{skip-symlink} option if you want to
should instead use the @code{skip-symlink} option if you want to
disable this.
disable this.
@node Windows compiling, Windows vs Unix, Windows symbolic links, Windows
@node Windows compiling, Windows vs Unix, Windows symbolic links, Windows
@subsubsection Compiling MySQL Clients on Windows
@subsubsection Compiling MySQL Clients on Windows
...
@@ -10276,6 +10388,7 @@ with the static @file{mysqlclient.lib} library.
...
@@ -10276,6 +10388,7 @@ with the static @file{mysqlclient.lib} library.
Note that as the mysqlclient libraries are compiled as threaded libraries,
Note that as the mysqlclient libraries are compiled as threaded libraries,
you should also compile your code to be multi-threaded!
you should also compile your code to be multi-threaded!
@node Windows vs Unix, , Windows compiling, Windows
@node Windows vs Unix, , Windows compiling, Windows
@subsubsection MySQL-Windows Compared to Unix MySQL
@subsubsection MySQL-Windows Compared to Unix MySQL
...
@@ -10656,6 +10769,7 @@ symbolic link to it named @file{/etc/rc3.d/S99mysql.server}.
...
@@ -10656,6 +10769,7 @@ symbolic link to it named @file{/etc/rc3.d/S99mysql.server}.
* Solaris x86::
* Solaris x86::
@end menu
@end menu
@node Solaris 2.7, Solaris x86, Solaris, Solaris
@node Solaris 2.7, Solaris x86, Solaris, Solaris
@subsubsection Solaris 2.7/2.8 Notes
@subsubsection Solaris 2.7/2.8 Notes
...
@@ -10864,6 +10978,7 @@ crash when @code{make} tries to run @code{lint} on C++ files.
...
@@ -10864,6 +10978,7 @@ crash when @code{make} tries to run @code{lint} on C++ files.
* OpenBSD 2.8:: OpenBSD 2.8 Notes
* OpenBSD 2.8:: OpenBSD 2.8 Notes
@end menu
@end menu
@node OpenBSD 2.5, OpenBSD 2.8, OpenBSD, BSD Notes
@node OpenBSD 2.5, OpenBSD 2.8, OpenBSD, BSD Notes
@subsubsection OpenBSD 2.5 Notes
@subsubsection OpenBSD 2.5 Notes
...
@@ -10874,6 +10989,7 @@ with the following options:
...
@@ -10874,6 +10989,7 @@ with the following options:
CFLAGS=-pthread CXXFLAGS=-pthread ./configure --with-mit-threads=no
CFLAGS=-pthread CXXFLAGS=-pthread ./configure --with-mit-threads=no
@end example
@end example
@node OpenBSD 2.8, BSDI, OpenBSD 2.5, BSD Notes
@node OpenBSD 2.8, BSDI, OpenBSD 2.5, BSD Notes
@subsubsection OpenBSD 2.8 Notes
@subsubsection OpenBSD 2.8 Notes
...
@@ -10893,6 +11009,7 @@ usage, and crashes.
...
@@ -10893,6 +11009,7 @@ usage, and crashes.
* BSDI4:: BSD/OS 4.x notes
* BSDI4:: BSD/OS 4.x notes
@end menu
@end menu
@node BSDI2, BSDI3, BSDI, BSD Notes
@node BSDI2, BSDI3, BSDI, BSD Notes
@subsubsection BSD/OS Version 2.x Notes
@subsubsection BSD/OS Version 2.x Notes
...
@@ -10917,6 +11034,7 @@ If you are using @code{gcc}, you may also use have to use the
...
@@ -10917,6 +11034,7 @@ If you are using @code{gcc}, you may also use have to use the
If you get problems with the current date in @strong{MySQL}, setting the
If you get problems with the current date in @strong{MySQL}, setting the
@code{TZ} variable will probably help. @xref{Environment variables}.
@code{TZ} variable will probably help. @xref{Environment variables}.
@node BSDI3, BSDI4, BSDI2, BSD Notes
@node BSDI3, BSDI4, BSDI2, BSD Notes
@subsubsection BSD/OS Version 3.x Notes
@subsubsection BSD/OS Version 3.x Notes
...
@@ -10957,6 +11075,7 @@ If this doesn't work and you are using @code{bash}, try switching to
...
@@ -10957,6 +11075,7 @@ If this doesn't work and you are using @code{bash}, try switching to
@code{csh} or @code{sh}; some BSDI users have reported problems with
@code{csh} or @code{sh}; some BSDI users have reported problems with
@code{bash} and @code{ulimit}.
@code{bash} and @code{ulimit}.
@node BSDI4, , BSDI3, BSD Notes
@node BSDI4, , BSDI3, BSD Notes
@subsubsection BSD/OS Version 4.x Notes
@subsubsection BSD/OS Version 4.x Notes
...
@@ -11813,6 +11932,7 @@ If you want to use @code{gcc}, you must use @code{gcc} 2.95.2 or newer.
...
@@ -11813,6 +11932,7 @@ If you want to use @code{gcc}, you must use @code{gcc} 2.95.2 or newer.
* OS/2::
* OS/2::
@end menu
@end menu
@node OS/2, BeOS, Other Unix Notes, Operating System Specific Notes
@node OS/2, BeOS, Other Unix Notes, Operating System Specific Notes
@subsection OS/2 Notes
@subsection OS/2 Notes
...
@@ -11897,6 +12017,8 @@ We are interested in finding someone to do a port, and we will help them
...
@@ -11897,6 +12017,8 @@ We are interested in finding someone to do a port, and we will help them
with any technical questions they may have while doing the port.
with any technical questions they may have while doing the port.
@node Tutorial, MySQL Database Administration, Installing, Top
@node Tutorial, MySQL Database Administration, Installing, Top
@chapter Introduction to MySQL: A MySQL Tutorial
@chapter Introduction to MySQL: A MySQL Tutorial
...
@@ -11946,6 +12068,7 @@ Because this chapter is tutorial in nature, many details are necessarily left
...
@@ -11946,6 +12068,7 @@ Because this chapter is tutorial in nature, many details are necessarily left
out. Consult the relevant sections of the manual for more
out. Consult the relevant sections of the manual for more
information on the topics covered here.
information on the topics covered here.
@node Connecting-disconnecting, Entering queries, Tutorial, Tutorial
@node Connecting-disconnecting, Entering queries, Tutorial, Tutorial
@section Connecting to and Disconnecting from the Server
@section Connecting to and Disconnecting from the Server
...
@@ -12009,6 +12132,7 @@ You can also disconnect by pressing Control-D.
...
@@ -12009,6 +12132,7 @@ You can also disconnect by pressing Control-D.
Most examples in the following sections assume you are connected to the
Most examples in the following sections assume you are connected to the
server. They indicate this by the @code{mysql>} prompt.
server. They indicate this by the @code{mysql>} prompt.
@node Entering queries, Database use, Connecting-disconnecting, Tutorial
@node Entering queries, Database use, Connecting-disconnecting, Tutorial
@section Entering Queries
@section Entering Queries
...
@@ -12235,6 +12359,7 @@ containing @code{QUIT}! This can be quite confusing, especially if you
...
@@ -12235,6 +12359,7 @@ containing @code{QUIT}! This can be quite confusing, especially if you
don't know that you need to supply the terminating quote before you can
don't know that you need to supply the terminating quote before you can
cancel the current command.
cancel the current command.
@node Database use, Getting information, Entering queries, Tutorial
@node Database use, Getting information, Entering queries, Tutorial
@section Creating and Using a Database
@section Creating and Using a Database
...
@@ -12327,6 +12452,7 @@ mysql> GRANT ALL ON menagerie.* TO your_mysql_name;
...
@@ -12327,6 +12452,7 @@ mysql> GRANT ALL ON menagerie.* TO your_mysql_name;
where @code{your_mysql_name} is the @strong{MySQL} user name assigned to
where @code{your_mysql_name} is the @strong{MySQL} user name assigned to
you.
you.
@node Creating database, Creating tables, Database use, Database use
@node Creating database, Creating tables, Database use, Database use
@subsection Creating and Selecting a Database
@subsection Creating and Selecting a Database
...
@@ -12375,6 +12501,7 @@ option, you must do so with no intervening space (for example, as
...
@@ -12375,6 +12501,7 @@ option, you must do so with no intervening space (for example, as
password on the command line is not recommended, because doing so exposes it
password on the command line is not recommended, because doing so exposes it
to snooping by other users logged in on your machine.
to snooping by other users logged in on your machine.
@node Creating tables, Loading tables, Creating database, Database use
@node Creating tables, Loading tables, Creating database, Database use
@subsection Creating a Table
@subsection Creating a Table
...
@@ -12480,6 +12607,7 @@ mysql> DESCRIBE pet;
...
@@ -12480,6 +12607,7 @@ mysql> DESCRIBE pet;
You can use @code{DESCRIBE} any time, for example, if you forget the names of
You can use @code{DESCRIBE} any time, for example, if you forget the names of
the columns in your table or what types they are.
the columns in your table or what types they are.
@node Loading tables, Retrieving data, Creating tables, Database use
@node Loading tables, Retrieving data, Creating tables, Database use
@subsection Loading Data into a Table
@subsection Loading Data into a Table
...
@@ -12554,6 +12682,7 @@ typing involved to load
...
@@ -12554,6 +12682,7 @@ typing involved to load
your records initially using several @code{INSERT} statements rather
your records initially using several @code{INSERT} statements rather
than a single @code{LOAD DATA} statement.
than a single @code{LOAD DATA} statement.
@node Retrieving data, , Loading tables, Database use
@node Retrieving data, , Loading tables, Database use
@subsection Retrieving Information from a Table
@subsection Retrieving Information from a Table
...
@@ -12589,6 +12718,7 @@ indicates the table from which you want to retrieve data. The @code{WHERE}
...
@@ -12589,6 +12718,7 @@ indicates the table from which you want to retrieve data. The @code{WHERE}
clause is optional. If it's present, @code{conditions_to_satisfy} specifies
clause is optional. If it's present, @code{conditions_to_satisfy} specifies
conditions that rows must satisfy to qualify for retrieval.
conditions that rows must satisfy to qualify for retrieval.
@node Selecting all, Selecting rows, Retrieving data, Retrieving data
@node Selecting all, Selecting rows, Retrieving data, Retrieving data
@subsubsection Selecting All Data
@subsubsection Selecting All Data
...
@@ -12647,6 +12777,7 @@ case you specify some constraints on the information you want. Let's look at
...
@@ -12647,6 +12777,7 @@ case you specify some constraints on the information you want. Let's look at
some selection queries in terms of questions about your pets that they
some selection queries in terms of questions about your pets that they
answer.
answer.
@node Selecting rows, Selecting columns, Selecting all, Retrieving data
@node Selecting rows, Selecting columns, Selecting all, Retrieving data
@subsubsection Selecting Particular Rows
@subsubsection Selecting Particular Rows
...
@@ -12725,6 +12856,7 @@ mysql> SELECT * FROM pet WHERE (species = "cat" AND sex = "m")
...
@@ -12725,6 +12856,7 @@ mysql> SELECT * FROM pet WHERE (species = "cat" AND sex = "m")
+-------+--------+---------+------+------------+-------+
+-------+--------+---------+------+------------+-------+
@end example
@end example
@node Selecting columns, Sorting rows, Selecting rows, Retrieving data
@node Selecting columns, Sorting rows, Selecting rows, Retrieving data
@subsubsection Selecting Particular Columns
@subsubsection Selecting Particular Columns
...
@@ -12808,6 +12940,7 @@ mysql> SELECT name, species, birth FROM pet
...
@@ -12808,6 +12940,7 @@ mysql> SELECT name, species, birth FROM pet
+--------+---------+------------+
+--------+---------+------------+
@end example
@end example
@node Sorting rows, Date calculations, Selecting columns, Retrieving data
@node Sorting rows, Date calculations, Selecting columns, Retrieving data
@subsubsection Sorting Rows
@subsubsection Sorting Rows
...
@@ -12885,6 +13018,7 @@ Note that the @code{DESC} keyword applies only to the column name immediately
...
@@ -12885,6 +13018,7 @@ Note that the @code{DESC} keyword applies only to the column name immediately
preceding it (@code{birth}); @code{species} values are still sorted in
preceding it (@code{birth}); @code{species} values are still sorted in
ascending order.
ascending order.
@node Date calculations, Working with NULL, Sorting rows, Retrieving data
@node Date calculations, Working with NULL, Sorting rows, Retrieving data
@subsubsection Date Calculations
@subsubsection Date Calculations
...
@@ -13058,6 +13192,7 @@ Note that @code{MONTH} returns a number between 1 and 12. And
...
@@ -13058,6 +13192,7 @@ Note that @code{MONTH} returns a number between 1 and 12. And
addition has to be after the @code{MOD()} otherwise we would go from
addition has to be after the @code{MOD()} otherwise we would go from
November (11) to January (1).
November (11) to January (1).
@node Working with NULL, Pattern matching, Date calculations, Retrieving data
@node Working with NULL, Pattern matching, Date calculations, Retrieving data
@subsubsection Working with @code{NULL} Values
@subsubsection Working with @code{NULL} Values
...
@@ -13098,6 +13233,7 @@ This special treatment of @code{NULL} is why, in the previous section, it
...
@@ -13098,6 +13233,7 @@ This special treatment of @code{NULL} is why, in the previous section, it
was necessary to determine which animals are no longer alive using
was necessary to determine which animals are no longer alive using
@code{death IS NOT NULL} instead of @code{death != NULL}.
@code{death IS NOT NULL} instead of @code{death != NULL}.
@node Pattern matching, Counting rows, Working with NULL, Retrieving data
@node Pattern matching, Counting rows, Working with NULL, Retrieving data
@subsubsection Pattern Matching
@subsubsection Pattern Matching
...
@@ -13296,6 +13432,7 @@ mysql> SELECT * FROM pet WHERE name REGEXP "^.@{5@}$";
...
@@ -13296,6 +13432,7 @@ mysql> SELECT * FROM pet WHERE name REGEXP "^.@{5@}$";
+-------+--------+---------+------+------------+-------+
+-------+--------+---------+------+------------+-------+
@end example
@end example
@node Counting rows, Multiple tables, Pattern matching, Retrieving data
@node Counting rows, Multiple tables, Pattern matching, Retrieving data
@subsubsection Counting Rows
@subsubsection Counting Rows
...
@@ -13435,6 +13572,7 @@ mysql> SELECT species, sex, COUNT(*) FROM pet
...
@@ -13435,6 +13572,7 @@ mysql> SELECT species, sex, COUNT(*) FROM pet
+---------+------+----------+
+---------+------+----------+
@end example
@end example
@node Multiple tables, , Counting rows, Retrieving data
@node Multiple tables, , Counting rows, Retrieving data
@subsubsection Using More Than one Table
@subsubsection Using More Than one Table
...
@@ -13556,6 +13694,7 @@ In this query, we specify aliases for the table name in order
...
@@ -13556,6 +13694,7 @@ In this query, we specify aliases for the table name in order
to refer to the columns and keep straight which instance of the table
to refer to the columns and keep straight which instance of the table
each column reference is associated with.
each column reference is associated with.
@node Getting information, Examples, Database use, Tutorial
@node Getting information, Examples, Database use, Tutorial
@section Getting Information About Databases and Tables
@section Getting Information About Databases and Tables
...
@@ -13621,6 +13760,7 @@ indexed, and @code{Default} specifies the column's default value.
...
@@ -13621,6 +13760,7 @@ indexed, and @code{Default} specifies the column's default value.
If you have indexes on a table,
If you have indexes on a table,
@code{SHOW INDEX FROM tbl_name} produces information about them.
@code{SHOW INDEX FROM tbl_name} produces information about them.
@node Examples, Batch mode, Getting information, Tutorial
@node Examples, Batch mode, Getting information, Tutorial
@section Examples of Common Queries
@section Examples of Common Queries
...
@@ -13686,6 +13826,7 @@ mysql> SELECT * FROM shop;
...
@@ -13686,6 +13826,7 @@ mysql> SELECT * FROM shop;
* Calculating days::
* Calculating days::
@end menu
@end menu
@node example-Maximum-column, example-Maximum-row, Examples, Examples
@node example-Maximum-column, example-Maximum-row, Examples, Examples
@subsection The Maximum Value for a Column
@subsection The Maximum Value for a Column
...
@@ -13701,6 +13842,7 @@ SELECT MAX(article) AS article FROM shop
...
@@ -13701,6 +13842,7 @@ SELECT MAX(article) AS article FROM shop
+---------+
+---------+
@end example
@end example
@node example-Maximum-row, example-Maximum-column-group, example-Maximum-column, Examples
@node example-Maximum-row, example-Maximum-column-group, example-Maximum-column, Examples
@subsection The Row Holding the Maximum of a Certain Column
@subsection The Row Holding the Maximum of a Certain Column
...
@@ -13742,6 +13884,7 @@ LIMIT 1
...
@@ -13742,6 +13884,7 @@ LIMIT 1
@strong{NOTE}: If there are several most expensive articles (for example, each 19.95)
@strong{NOTE}: If there are several most expensive articles (for example, each 19.95)
the @code{LIMIT} solution shows only one of them!
the @code{LIMIT} solution shows only one of them!
@node example-Maximum-column-group, example-Maximum-column-group-row, example-Maximum-row, Examples
@node example-Maximum-column-group, example-Maximum-column-group-row, example-Maximum-row, Examples
@subsection Maximum of Column per Group
@subsection Maximum of Column per Group
...
@@ -13762,6 +13905,7 @@ GROUP BY article
...
@@ -13762,6 +13905,7 @@ GROUP BY article
+---------+-------+
+---------+-------+
@end example
@end example
@node example-Maximum-column-group-row, example-user-variables, example-Maximum-column-group, Examples
@node example-Maximum-column-group-row, example-user-variables, example-Maximum-column-group, Examples
@subsection The Rows Holding the Group-wise Maximum of a Certain Field
@subsection The Rows Holding the Group-wise Maximum of a Certain Field
...
@@ -13833,6 +13977,7 @@ GROUP BY article;
...
@@ -13833,6 +13977,7 @@ GROUP BY article;
The last example can, of course, be made a bit more efficient by doing the
The last example can, of course, be made a bit more efficient by doing the
splitting of the concatenated column in the client.
splitting of the concatenated column in the client.
@node example-user-variables, example-Foreign keys, example-Maximum-column-group-row, Examples
@node example-user-variables, example-Foreign keys, example-Maximum-column-group-row, Examples
@subsection Using user variables
@subsection Using user variables
...
@@ -13855,6 +14000,7 @@ select * from shop where price=@@min_price or price=@@max_price;
...
@@ -13855,6 +14000,7 @@ select * from shop where price=@@min_price or price=@@max_price;
+---------+--------+-------+
+---------+--------+-------+
@end example
@end example
@node example-Foreign keys, Searching on two keys, example-user-variables, Examples
@node example-Foreign keys, Searching on two keys, example-user-variables, Examples
@subsection Using Foreign Keys
@subsection Using Foreign Keys
...
@@ -13938,6 +14084,7 @@ SELECT s.* FROM persons p, shirts s
...
@@ -13938,6 +14084,7 @@ SELECT s.* FROM persons p, shirts s
+----+-------+--------+-------+
+----+-------+--------+-------+
@end example
@end example
@node Searching on two keys, Calculating days, example-Foreign keys, Examples
@node Searching on two keys, Calculating days, example-Foreign keys, Examples
@subsection Searching on Two Keys
@subsection Searching on Two Keys
...
@@ -13974,6 +14121,7 @@ DROP TABLE tmp;
...
@@ -13974,6 +14121,7 @@ DROP TABLE tmp;
The above way to solve this query is in effect an @code{UNION} of two queries.
The above way to solve this query is in effect an @code{UNION} of two queries.
@node Calculating days, , Searching on two keys, Examples
@node Calculating days, , Searching on two keys, Examples
@subsection Calculating visits per day
@subsection Calculating visits per day
...
@@ -14004,6 +14152,7 @@ Which returns:
...
@@ -14004,6 +14152,7 @@ Which returns:
The above calculates how many different days was used for a given
The above calculates how many different days was used for a given
year/month combination, with automatic removal of duplicate entries.
year/month combination, with automatic removal of duplicate entries.
@node Batch mode, Twin, Examples, Tutorial
@node Batch mode, Twin, Examples, Tutorial
@section Using @code{mysql} in Batch Mode
@section Using @code{mysql} in Batch Mode
...
@@ -14106,6 +14255,7 @@ If you want to get the interactive output format in batch mode, use
...
@@ -14106,6 +14255,7 @@ If you want to get the interactive output format in batch mode, use
@code{mysql -t}. To echo to the output the commands that are executed, use
@code{mysql -t}. To echo to the output the commands that are executed, use
@code{mysql -vvv}.
@code{mysql -vvv}.
@node Twin, Apache, Batch mode, Tutorial
@node Twin, Apache, Batch mode, Tutorial
@section Queries from Twin Project
@section Queries from Twin Project
...
@@ -14144,6 +14294,7 @@ database.
...
@@ -14144,6 +14294,7 @@ database.
* Twin event:: Show a table on twin pair status
* Twin event:: Show a table on twin pair status
@end menu
@end menu
@node Twin pool, Twin event, Twin, Twin
@node Twin pool, Twin event, Twin, Twin
@subsection Find all Non-distributed Twins
@subsection Find all Non-distributed Twins
...
@@ -14267,6 +14418,7 @@ The current number of records in the tables used above:
...
@@ -14267,6 +14418,7 @@ The current number of records in the tables used above:
@item @code{postal_groups} @tab 100
@item @code{postal_groups} @tab 100
@end multitable
@end multitable
@node Twin event, , Twin pool, Twin
@node Twin event, , Twin pool, Twin
@subsection Show a Table on Twin Pair Status
@subsection Show a Table on Twin Pair Status
...
@@ -14325,6 +14477,8 @@ FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\'
...
@@ -14325,6 +14477,8 @@ FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\'
@end example
@end example
@node MySQL Database Administration, MySQL Optimization, Tutorial, Top
@node MySQL Database Administration, MySQL Optimization, Tutorial, Top
@chapter MySQL Database Administration
@chapter MySQL Database Administration
...
@@ -14353,6 +14507,7 @@ FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\'
...
@@ -14353,6 +14507,7 @@ FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\'
* Multiple servers::
* Multiple servers::
@end menu
@end menu
@node Command-line options, Option files, Configuring MySQL, Configuring MySQL
@node Command-line options, Option files, Configuring MySQL, Configuring MySQL
@subsection mysqld Command-line Options
@subsection mysqld Command-line Options
...
@@ -14867,6 +15022,7 @@ argument to @code{safe_mysqld}.
...
@@ -14867,6 +15022,7 @@ argument to @code{safe_mysqld}.
* Multiple servers::
* Multiple servers::
@end menu
@end menu
@node Multiple servers, , Installing many servers, Configuring MySQL
@node Multiple servers, , Installing many servers, Configuring MySQL
@subsection Running Multiple MySQL Servers on the Same Machine
@subsection Running Multiple MySQL Servers on the Same Machine
...
@@ -15326,6 +15482,7 @@ can do this by setting the @code{max_user_connections} variable in
...
@@ -15326,6 +15482,7 @@ can do this by setting the @code{max_user_connections} variable in
@code{mysqld}.
@code{mysqld}.
@end itemize
@end itemize
@node Privileges options, What Privileges, Security, Privilege system
@node Privileges options, What Privileges, Security, Privilege system
@subsection Startup Options for @code{mysqld} Concerning Security
@subsection Startup Options for @code{mysqld} Concerning Security
...
@@ -17756,6 +17913,7 @@ make a lot of changes to a table)
...
@@ -17756,6 +17913,7 @@ make a lot of changes to a table)
* Optimization::
* Optimization::
@end menu
@end menu
@node myisamchk syntax, myisamchk general options, Table maintenance, Table maintenance
@node myisamchk syntax, myisamchk general options, Table maintenance, Table maintenance
@subsubsection @code{myisamchk} Invocation Syntax
@subsubsection @code{myisamchk} Invocation Syntax
...
@@ -18028,6 +18186,7 @@ of duplicate keys
...
@@ -18028,6 +18186,7 @@ of duplicate keys
Unpack file packed with myisampack.
Unpack file packed with myisampack.
@end table
@end table
@node myisamchk other options, myisamchk memory, myisamchk repair options, Table maintenance
@node myisamchk other options, myisamchk memory, myisamchk repair options, Table maintenance
@subsubsection Other Options for @code{myisamchk}
@subsubsection Other Options for @code{myisamchk}
...
@@ -18058,6 +18217,7 @@ table's indexes in the same order that @code{myisamchk} sees them. Indexes are
...
@@ -18058,6 +18217,7 @@ table's indexes in the same order that @code{myisamchk} sees them. Indexes are
numbered beginning with 1.
numbered beginning with 1.
@end table
@end table
@node myisamchk memory, Crash recovery, myisamchk other options, Table maintenance
@node myisamchk memory, Crash recovery, myisamchk other options, Table maintenance
@subsubsection @code{myisamchk} Memory Usage
@subsubsection @code{myisamchk} Memory Usage
...
@@ -18851,6 +19011,7 @@ information and a description of what it means.
...
@@ -18851,6 +19011,7 @@ information and a description of what it means.
* SHOW::
* SHOW::
@end menu
@end menu
@node OPTIMIZE TABLE, ANALYZE TABLE, Database Administration, Database Administration
@node OPTIMIZE TABLE, ANALYZE TABLE, Database Administration, Database Administration
@subsection @code{OPTIMIZE TABLE} Syntax
@subsection @code{OPTIMIZE TABLE} Syntax
...
@@ -19051,6 +19212,7 @@ write is aborted with an disk full error message.
...
@@ -19051,6 +19212,7 @@ write is aborted with an disk full error message.
* SHOW::
* SHOW::
@end menu
@end menu
@node SHOW, , KILL, Database Administration
@node SHOW, , KILL, Database Administration
@subsection @code{SHOW} Syntax
@subsection @code{SHOW} Syntax
...
@@ -22924,6 +23086,7 @@ it is preferred that you use @code{CHANGE MASTER TO} command.
...
@@ -22924,6 +23086,7 @@ it is preferred that you use @code{CHANGE MASTER TO} command.
* Replication Problems::
* Replication Problems::
@end menu
@end menu
@node Replication Features, Replication Options, Replication HOWTO, Replication
@node Replication Features, Replication Options, Replication HOWTO, Replication
@subsection Replication Features and Known Problems
@subsection Replication Features and Known Problems
...
@@ -23709,6 +23872,8 @@ isolate it into a separate test case first. Then report the problem to
...
@@ -23709,6 +23872,8 @@ isolate it into a separate test case first. Then report the problem to
@email{bugs@@lists.mysql.com} with as much info as possible.
@email{bugs@@lists.mysql.com} with as much info as possible.
@node MySQL Optimization, Reference, MySQL Database Administration, Top
@node MySQL Optimization, Reference, MySQL Database Administration, Top
@chapter MySQL Optimization
@chapter MySQL Optimization
...
@@ -23777,6 +23942,7 @@ for most systems, but one should be aware of it.
...
@@ -23777,6 +23942,7 @@ for most systems, but one should be aware of it.
* Custom Benchmarks::
* Custom Benchmarks::
@end menu
@end menu
@node Design Limitations, Portability, Optimize Overview, Optimize Overview
@node Design Limitations, Portability, Optimize Overview, Optimize Overview
@subsection MySQL Design Limitations/Tradeoffs
@subsection MySQL Design Limitations/Tradeoffs
...
@@ -23869,6 +24035,7 @@ In this case the table creation information should contain information
...
@@ -23869,6 +24035,7 @@ In this case the table creation information should contain information
of the initial size of the cache and how often the table should normally
of the initial size of the cache and how often the table should normally
be refreshed.
be refreshed.
@node Internal use, MySQL Benchmarks, Portability, Optimize Overview
@node Internal use, MySQL Benchmarks, Portability, Optimize Overview
@subsection What Have We Used MySQL For?
@subsection What Have We Used MySQL For?
...
@@ -24668,6 +24835,7 @@ mysql> SELECT ... FROM tbl_name ORDER BY key_part1,key_part2,... ;
...
@@ -24668,6 +24835,7 @@ mysql> SELECT ... FROM tbl_name ORDER BY key_part1,key_part2,... ;
mysql> SELECT ... FROM tbl_name ORDER BY key_part1 DESC,key_part2 DESC,... ;
mysql> SELECT ... FROM tbl_name ORDER BY key_part1 DESC,key_part2 DESC,... ;
@end example
@end example
@node DISTINCT optimization, LEFT JOIN optimization, Where optimizations, Query Speed
@node DISTINCT optimization, LEFT JOIN optimization, Where optimizations, Query Speed
@subsection How MySQL Optimizes @code{DISTINCT}
@subsection How MySQL Optimizes @code{DISTINCT}
...
@@ -24792,6 +24960,7 @@ The size of temporary tables uses the @code{LIMIT #} to calculate how much
...
@@ -24792,6 +24960,7 @@ The size of temporary tables uses the @code{LIMIT #} to calculate how much
space is needed to resolve the query.
space is needed to resolve the query.
@end itemize
@end itemize
@node Insert speed, Update speed, LIMIT optimization, Query Speed
@node Insert speed, Update speed, LIMIT optimization, Query Speed
@subsection Speed of @code{INSERT} Queries
@subsection Speed of @code{INSERT} Queries
...
@@ -25139,6 +25308,7 @@ from the data, you should not lose anything by using @code{DELAY_KEY_WRITE}.
...
@@ -25139,6 +25308,7 @@ from the data, you should not lose anything by using @code{DELAY_KEY_WRITE}.
* Table locking::
* Table locking::
@end menu
@end menu
@node Internal locking, Table locking, Locking Issues, Locking Issues
@node Internal locking, Table locking, Locking Issues, Locking Issues
@subsection How MySQL Locks Tables
@subsection How MySQL Locks Tables
...
@@ -25328,6 +25498,7 @@ option to @code{DELETE} may help. @xref{DELETE, , @code{DELETE}}.
...
@@ -25328,6 +25498,7 @@ option to @code{DELETE} may help. @xref{DELETE, , @code{DELETE}}.
* Open tables::
* Open tables::
@end menu
@end menu
@node Design, Data size, Optimizing Database Structure, Optimizing Database Structure
@node Design, Data size, Optimizing Database Structure, Optimizing Database Structure
@subsection Design Choices
@subsection Design Choices
...
@@ -25625,6 +25796,7 @@ much more quickly find the few rows to return in the result.
...
@@ -25625,6 +25796,7 @@ much more quickly find the few rows to return in the result.
* Open tables::
* Open tables::
@end menu
@end menu
@node Indexes, Multiple-column indexes, MySQL indexes, Optimizing Database Structure
@node Indexes, Multiple-column indexes, MySQL indexes, Optimizing Database Structure
@subsection Column Indexes
@subsection Column Indexes
...
@@ -25839,6 +26011,7 @@ between all threads.
...
@@ -25839,6 +26011,7 @@ between all threads.
* SET OPTION::
* SET OPTION::
@end menu
@end menu
@node System, Server parameters, Optimizing the Server, Optimizing the Server
@node System, Server parameters, Optimizing the Server, Optimizing the Server
@subsection System/Compile Time and Startup Parameter Tuning
@subsection System/Compile Time and Startup Parameter Tuning
...
@@ -26420,6 +26593,7 @@ with the update log.
...
@@ -26420,6 +26593,7 @@ with the update log.
* SET TRANSACTION::
* SET TRANSACTION::
@end menu
@end menu
@node SET TRANSACTION, , SET OPTION, SET OPTION
@node SET TRANSACTION, , SET OPTION, SET OPTION
@subsubsection @code{SET TRANSACTION} Syntax
@subsubsection @code{SET TRANSACTION} Syntax
...
@@ -26540,6 +26714,7 @@ with the noatime flag.
...
@@ -26540,6 +26714,7 @@ with the noatime flag.
* Symbolic links::
* Symbolic links::
@end menu
@end menu
@node Symbolic links, , Disk issues, Disk issues
@node Symbolic links, , Disk issues, Disk issues
@subsection Using Symbolic Links
@subsection Using Symbolic Links
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment