All pages
Powered by GitBook
1 of 1

Loading...

RESTORE TABLE (removed)

RESTORE TABLE was removed and is no longer a part of MariaDB.

Syntax

RESTORE TABLE tbl_name [, tbl_name] ... FROM '/path/to/backup/directory'

Description

Note:

Like , this command was not reliable and has been removed from MariaDB. For doing a backup of MariaDB use , or . See .

RESTORE TABLE restores the table or tables from a backup that was made with . The directory should be specified as a full path name.

Existing tables are not overwritten; if you try to restore over an existing table, an error occurs. Just as for BACKUP TABLE,RESTORE TABLE works only for tables. Restored tables are not replicated from master to slave.

The backup for each table consists of its .frm format file and .MYD data file. The restore operation restores those files, and then uses them to rebuild the .MYI index file. Restoring takes longer than backing up due to the need to rebuild the indexes. The more indexes the table has, the longer it takes.

This page is licensed: GPLv2, originally from

BACKUP TABLE
mysqldump
mysqlhotcopy
XtraBackup
Backing Up and Restoring
BACKUP TABLE
MyISAM
fill_help_tables.sql