Oracle 5.0 Reference Manual page 1658

Table of Contents

Advertisement

ndb_restore
Format
--print_log [1640]
--backup_path=path [1639]
--dont_ignore_systab_0
-f [1639]
--fields-enclosed-by=char [1640]
--fields-terminated-by=char [1641]
--fields-optionally-enclosed-
by [1641]
--lines-terminated-by=char [1641]
--hex [1641]
--tab=path
[1640],
-T [1640]
--append [1641]
--verbose=# [1642]
Typical options for this utility are shown here:
ndb_restore [-c connectstring] -n
-r
--backup_path=/path/to/backup/files
The
option is used to specify a connectstring which tells
-c
management server. (See
connectstrings.) If this option is not used, then
server on localhost:1186. This utility acts as a cluster API node, and so requires a free connection
"slot" to connect to the cluster management server. This means that there must be at least one
or
section that can be used by it in the cluster
[mysqld]
at least one empty
[api]
server or other application for this reason (see
a MySQL
Cluster").
You can verify that
ndb_restore
management client. You can also accomplish this from a system shell, as shown here:
ndb_mgm
shell>
ndb_mgm -e "SHOW"
is used to specify the node ID of the data node on which the backups were taken.
-n
The first time you run the
In other words, you must re-create the database tables—this can be done by running it with the
(-m) option. Restoring the metdata need be done only on a single data node; this
restore_meta
is sufficient to restore it to the entire cluster. Note that the cluster should have an empty database
when starting to restore a backup. (In other words, you should start
performing the restore.)
The
option is used to specify the ID or sequence number of the backup, and is the same number
-b
shown by the management client in the
— Restore a MySQL Cluster Backup
Description
Print to stdout
Path to backup files directory
Do not ignore system table during
[1639],
restore. Experimental only; not for
production use
Fields are enclosed with the
indicated character
Fields are terminated by the
indicated character
Fields are optionally enclosed with
the indicated character
Lines are terminated by the
indicated character
Print binary types in hexadecimal
format
Creates a tab-separated .txt file for
each table in the given path
Append data to a tab-delimited file ADDED: 5.0.40
Level of verbosity in output
node_id
[-m] -b
Section 17.3.2.2, "The MySQL Cluster
ndb_restore
or
section in
[mysqld]
Section 17.3.2.6, "Defining SQL and Other API Nodes in
is connected to the cluster by using the
restoration program, you also need to restore the metadata.
ndb_restore
Backup backup_id completed
1638
backup_id
\
ndb_restore
Connectstring", for information on
attempts to connect to a management
file. It is a good idea to keep
config.ini
that is not being used for a MySQL
config.ini
ndbd
Added / Removed
All MySQL 5.0
based releases
ADDED: 5.0.38
All MySQL 5.0
based releases
ADDED: 5.0.40
ADDED: 5.0.40
ADDED: 5.0.40
ADDED: 5.0.40
ADDED: 5.0.40
ADDED: 5.0.40
All MySQL 5.0
based releases
where to locate the cluster
[api]
command in the
SHOW
--
with
prior to
--initial
message displayed upon

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents