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
a56631a7
Commit
a56631a7
authored
Aug 26, 2002
by
paul@teton.kitebird.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual.texi misc. minor corrections
parent
10416c1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
Docs/manual.texi
Docs/manual.texi
+14
-13
No files found.
Docs/manual.texi
View file @
a56631a7
...
@@ -14320,7 +14320,7 @@ The following options affects how the repair works.
...
@@ -14320,7 +14320,7 @@ The following options affects how the repair works.
@file{table_name-datetime.BAK}.
@file{table_name-datetime.BAK}.
@item FORCE @tab Run recover even if we will lose more than one row
@item FORCE @tab Run recover even if we will lose more than one row
from the .MYD file.
from the .MYD file.
@item QUICK @tab Don't check the rows in the table if there
is
n't any
@item QUICK @tab Don't check the rows in the table if there
are
n't any
delete blocks.
delete blocks.
@end multitable
@end multitable
...
@@ -17752,14 +17752,15 @@ BACKUP TABLE tbl_name[,tbl_name...] TO '/path/to/backup/directory'
...
@@ -17752,14 +17752,15 @@ BACKUP TABLE tbl_name[,tbl_name...] TO '/path/to/backup/directory'
@end example
@end example
Copies to the backup directory the minimum number of table files needed
Copies to the backup directory the minimum number of table files needed
to restore the table. Currently only works for @code{MyISAM} tables.
to restore the table, after flushing any buffered changes to disk. Currently
only works for @code{MyISAM} tables.
For @code{MyISAM} tables, copies @file{.frm} (definition) and
For @code{MyISAM} tables, copies @file{.frm} (definition) and
@file{.MYD} (data) files. The index file can be rebuilt from those two.
@file{.MYD} (data) files. The index file can be rebuilt from those two.
Before using this command, please see @ref{Backup}.
Before using this command, please see @ref{Backup}.
During the backup, read lock will be held for each table, one at time,
During the backup,
a
read lock will be held for each table, one at time,
as they are being backed up. If you want to backup several tables as
as they are being backed up. If you want to back
up several tables as
a snapshot, you must first issue @code{LOCK TABLES} obtaining a read
a snapshot, you must first issue @code{LOCK TABLES} obtaining a read
lock for each table in the group.
lock for each table in the group.
...
@@ -17787,11 +17788,11 @@ RESTORE TABLE tbl_name[,tbl_name...] FROM '/path/to/backup/directory'
...
@@ -17787,11 +17788,11 @@ RESTORE TABLE tbl_name[,tbl_name...] FROM '/path/to/backup/directory'
@end example
@end example
Restores the table(s) from the backup that was made with
Restores the table(s) from the backup that was made with
@code{BACKUP TABLE}. Existing tables will not be overwritten
-
if you
@code{BACKUP TABLE}. Existing tables will not be overwritten
;
if you
try to restore over an existing table, you will get an error. Restor
e
try to restore over an existing table, you will get an error. Restor
ing
will take
longer than BACKUP due to the need to rebuilt
the index. The
will take
longer than backing up due to the need to rebuild
the index. The
more keys you have, the longer it
is going to take. Just as
more keys you have, the longer it
will take. Just as @code{BACKUP TABLE},
@code{
BACKUP TABLE}, currently only works of
@code{MyISAM} tables.
@code{
RESTORE TABLE} currently works only for
@code{MyISAM} tables.
The command returns a table with the following columns:
The command returns a table with the following columns:
...
@@ -17823,7 +17824,7 @@ table_name} on the table.
...
@@ -17823,7 +17824,7 @@ table_name} on the table.
If you don't specify any option @code{MEDIUM} is used.
If you don't specify any option @code{MEDIUM} is used.
Checks the table(s) for errors. For @code{MyISAM} tables the key statistics
Checks the table(s) for errors. For @code{MyISAM} tables the key statistics
is
updated. The command returns a table with the following columns:
are
updated. The command returns a table with the following columns:
@multitable @columnfractions .15 .40
@multitable @columnfractions .15 .40
@item @strong{Column} @tab @strong{Value}
@item @strong{Column} @tab @strong{Value}
...
@@ -17852,7 +17853,7 @@ The different check types stand for the following:
...
@@ -17852,7 +17853,7 @@ The different check types stand for the following:
@end multitable
@end multitable
For dynamically sized @code{MyISAM} tables a started check will always
For dynamically sized @code{MyISAM} tables a started check will always
do a @code{MEDIUM} check. For static
size
rows we skip the row scan
do a @code{MEDIUM} check. For static
ally sized
rows we skip the row scan
for @code{QUICK} and @code{FAST} as the rows are very seldom corrupted.
for @code{QUICK} and @code{FAST} as the rows are very seldom corrupted.
You can combine check options as in:
You can combine check options as in:
...
@@ -17882,7 +17883,7 @@ file. If this happens then the table will be marked as 'corrupted',
...
@@ -17882,7 +17883,7 @@ file. If this happens then the table will be marked as 'corrupted',
in which case the table can't be used until it's repaired.)
in which case the table can't be used until it's repaired.)
@code{FAST} and @code{CHANGED} are mostly intended to be used from a
@code{FAST} and @code{CHANGED} are mostly intended to be used from a
script (for example to be executed from
cron
) if you want to check your
script (for example to be executed from
@code{cron}
) if you want to check your
table from time to time. In most cases you @code{FAST} is to be prefered
table from time to time. In most cases you @code{FAST} is to be prefered
over @code{CHANGED}. (The only case when it isn't is when you suspect a
over @code{CHANGED}. (The only case when it isn't is when you suspect a
bug you have found a bug in the @code{MyISAM} code.)
bug you have found a bug in the @code{MyISAM} code.)
...
@@ -37825,7 +37826,7 @@ Warning: Found 344 of 354 rows when repairing ./test/g00pages
...
@@ -37825,7 +37826,7 @@ Warning: Found 344 of 354 rows when repairing ./test/g00pages
@end example
@end example
Note that if you run automatic recover with the @code{BACKUP} option,
Note that if you run automatic recover with the @code{BACKUP} option,
you should have a
cron
script that automatically moves file with names
you should have a
@code{cron}
script that automatically moves file with names
like @file{tablename-datetime.BAK} from the database directories to a
like @file{tablename-datetime.BAK} from the database directories to a
backup media.
backup media.
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