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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
54f345f4
Commit
54f345f4
authored
Apr 03, 2001
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push so i can merge
parent
cd8fc49c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
Docs/manual.texi
Docs/manual.texi
+15
-14
No files found.
Docs/manual.texi
View file @
54f345f4
...
...
@@ -17979,7 +17979,7 @@ Blocks until the slave reaches the specified position in the master log during
replication. If master information is not initialized, returns NULL. If the
slave is not running, will block and wait until it is started and goes to or
past
the specified position. If the slave is already past the specified postion,
the specified position. If the slave is already past the specified pos
i
tion,
returns immediately. The return value is the number of log events it had to
wait to get to the specified position, or NULL in case of error. Useful for
control of master-slave synchronization, but was originally written to
...
...
@@ -36085,9 +36085,9 @@ When started with the @code{--log-update[=file_name]} option,
@code{mysqld} writes a log file containing all SQL commands that update
data. If no filename is given, it defaults to the name of the host
machine. If a filename is given, but it doesn't contain a path, the file
is written in the data directory. If
file_name
doesn't have an
extension, @code{mysqld} will create log file names
of type
@
code{file_name.#}, where @code{
#} is a number that is incremented each
is written in the data directory. If
@file{file_name}
doesn't have an
extension, @code{mysqld} will create log file names
like so:
@
file{file_name.###}, where @code{##
#} is a number that is incremented each
time you execute @code{mysqladmin refresh}, execute @code{mysqladmin
flush-logs}, execute the @code{FLUSH LOGS} statement, or restart the server.
...
...
@@ -36151,7 +36151,7 @@ file name is given, it defaults to the name of the host machine followed
by @code{-bin}. If file name is given, but it doesn't contain a path, the
file is written in the data directory.
To the binary log filename
mysqld
will append an extension that is a
To the binary log filename
@code{mysqld}
will append an extension that is a
number that is incremented each time you execute @code{mysqladmin
refresh}, execute @code{mysqladmin flush-logs}, execute the @code{FLUSH LOGS}
statement or restart the server.
...
...
@@ -36168,7 +36168,7 @@ files until you are sure that no slave will ever need to use them.
One way to do this is to do @code{mysqladmin flush-logs} once a day and then
remove any logs that are more than 3 days old.
You can examine the binary log file with the @code{mysqlbinl
ib
} command.
You can examine the binary log file with the @code{mysqlbinl
og
} command.
For example, you can update a @strong{MySQL} server from the binary log
as follows:
...
...
@@ -36176,23 +36176,23 @@ as follows:
mysqlbinlog log-file | mysql -h server_name
@end example
You can also use the @
fil
e{mysqlbinlog} program to read the binary log
direct
from a remote mysql
server!
You can also use the @
cod
e{mysqlbinlog} program to read the binary log
direct
ly from a remote @strong{MySQL}
server!
@code{mysqlbinlog --help} will give you more information of how to use
this program!
If you are using @code{BEGIN
} or @code{SET AUTOCOMMIT=0}, you must use
the @strong{MySQL} binary log for backups instead of the old update log.
If you are using @code{BEGIN
[WORK]} or @code{SET AUTOCOMMIT=0}, you must
use
the @strong{MySQL} binary log for backups instead of the old update log.
The binary logging is done immediately after a query completes but before
any locks are released or any commit is done. This ensures that the log
will be logged in the execution order.
All updates (@code{UPDATE}, @code{DELETE} or @code{INSERT}) that change
s
a transactional table (like BDB tables)
is
cached until a @code{COMMIT}.
All updates (@code{UPDATE}, @code{DELETE} or @code{INSERT}) that change
a transactional table (like BDB tables)
are
cached until a @code{COMMIT}.
Any updates to a non-transactional table are stored in the binary log at
once. Every thread will
on start
allocate a buffer of
once. Every thread will
, on start,
allocate a buffer of
@code{binlog_cache_size} to buffer queries. If a query is bigger than
this, the thread will open a temporary file to handle the bigger cache.
The temporary file will be deleted when the thread ends.
...
...
@@ -36200,10 +36200,11 @@ The temporary file will be deleted when the thread ends.
The @code{max_binlog_cache_size} can be used to restrict the total size used
to cache a multi-transaction query.
If you are using the update or binary log
then
concurrent inserts will
If you are using the update or binary log
,
concurrent inserts will
not work together with @code{CREATE ... INSERT} and @code{INSERT ... SELECT}.
This is to ensure that you can recreate an exact copy of your tables by
applying the log on a backup.
@cindex slow query log
@cindex files, slow query log
@node Slow query log, , Binary log, Log files
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