MySQL数据库使用Xtrabackup全备和全备还原(8)

innobackupex命令的--copy-back选项用于执行恢复操作,其通过复制所有数据相关的文件至mysql服务器DATADIR目录中来执行恢复过程。innobackupex通过backup-my.cnf来获取DATADIR目录的相关信息。

语法:
innobackupex --copy-back /path/to/BACKUP-DIR
innobackupex --copy-back --datadir=恢复的数据目录 /path/to/BACKUP-DIR

注:
1.datadir必须是为空的,innobackupex –copy-back不会覆盖已存在的文件
2.还原时需要先关闭服务,如果服务是启动的,那么就不能还原到datadir。

例子
[root@linuxidc mysql]# innobackupex --copy-back /backup/2019-09-04_18-01-55/
160904 18:06:31 innobackupex: Starting the copy-back operation

IMPORTANT: Please check that the copy-back run completes successfully.
          At the end of a successful copy-back run innobackupex
          prints "completed OK!".

innobackupex version 2.4.4 based on MySQL server 5.7.13 Linux (x86_64) (revision id: df58cf2)
160904 18:06:31 [01] Copying ib_logfile0 to /var/lib/mysql/ib_logfile0
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ib_logfile1 to /var/lib/mysql/ib_logfile1
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ibdata1 to /var/lib/mysql/ibdata1
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./test/db.opt to /var/lib/mysql/test/db.opt
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./xtrabackup_info to /var/lib/mysql/xtrabackup_info
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./ibtmp1 to /var/lib/mysql/ibtmp1
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/servers.frm to /var/lib/mysql/mysql/servers.frm
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/slave_relay_log_info.ibd to /var/lib/mysql/mysql/slave_relay_log_info.ibd
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/tables_priv.MYD to /var/lib/mysql/mysql/tables_priv.MYD
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/help_keyword.frm to /var/lib/mysql/mysql/help_keyword.frm
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/ndb_binlog_index.MYD to /var/lib/mysql/mysql/ndb_binlog_index.MYD
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/columns_priv.MYD to /var/lib/mysql/mysql/columns_priv.MYD
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/servers.MYD to /var/lib/mysql/mysql/servers.MYD
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/user.MYD to /var/lib/mysql/mysql/user.MYD
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/event.frm to /var/lib/mysql/mysql/event.frm
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/time_zone_transition.MYD to /var/lib/mysql/mysql/time_zone_transition.MYD
160904 18:06:31 [01]        ...done
160904 18:06:31 [01] Copying ./mysql/proc.MYI to /var/lib/mysql/mysql/proc.MYI
160904 18:06:31 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/slave_worker_info.ibd to /var/lib/mysql/mysql/slave_worker_info.ibd
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_leap_second.MYI to /var/lib/mysql/mysql/time_zone_leap_second.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_topic.MYI to /var/lib/mysql/mysql/help_topic.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_transition.MYI to /var/lib/mysql/mysql/time_zone_transition.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/general_log.CSV to /var/lib/mysql/mysql/general_log.CSV
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/slave_master_info.ibd to /var/lib/mysql/mysql/slave_master_info.ibd
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_transition.frm to /var/lib/mysql/mysql/time_zone_transition.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/func.MYD to /var/lib/mysql/mysql/func.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/user.MYI to /var/lib/mysql/mysql/user.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_relation.MYI to /var/lib/mysql/mysql/help_relation.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/plugin.frm to /var/lib/mysql/mysql/plugin.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_name.frm to /var/lib/mysql/mysql/time_zone_name.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/ndb_binlog_index.MYI to /var/lib/mysql/mysql/ndb_binlog_index.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_relation.MYD to /var/lib/mysql/mysql/help_relation.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/plugin.MYD to /var/lib/mysql/mysql/plugin.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_category.MYD to /var/lib/mysql/mysql/help_category.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/event.MYI to /var/lib/mysql/mysql/event.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/event.MYD to /var/lib/mysql/mysql/event.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/procs_priv.MYI to /var/lib/mysql/mysql/procs_priv.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/slow_log.frm to /var/lib/mysql/mysql/slow_log.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_keyword.MYI to /var/lib/mysql/mysql/help_keyword.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/user.frm to /var/lib/mysql/mysql/user.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/slow_log.CSV to /var/lib/mysql/mysql/slow_log.CSV
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_keyword.MYD to /var/lib/mysql/mysql/help_keyword.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/plugin.MYI to /var/lib/mysql/mysql/plugin.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/func.frm to /var/lib/mysql/mysql/func.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/innodb_index_stats.ibd to /var/lib/mysql/mysql/innodb_index_stats.ibd
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/proxies_priv.MYD to /var/lib/mysql/mysql/proxies_priv.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_leap_second.frm to /var/lib/mysql/mysql/time_zone_leap_second.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/slave_master_info.frm to /var/lib/mysql/mysql/slave_master_info.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_relation.frm to /var/lib/mysql/mysql/help_relation.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/func.MYI to /var/lib/mysql/mysql/func.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/procs_priv.frm to /var/lib/mysql/mysql/procs_priv.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/proc.frm to /var/lib/mysql/mysql/proc.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/innodb_index_stats.frm to /var/lib/mysql/mysql/innodb_index_stats.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/db.MYD to /var/lib/mysql/mysql/db.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/db.frm to /var/lib/mysql/mysql/db.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/columns_priv.MYI to /var/lib/mysql/mysql/columns_priv.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone.frm to /var/lib/mysql/mysql/time_zone.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/columns_priv.frm to /var/lib/mysql/mysql/columns_priv.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/slave_worker_info.frm to /var/lib/mysql/mysql/slave_worker_info.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_transition_type.frm to /var/lib/mysql/mysql/time_zone_transition_type.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_topic.frm to /var/lib/mysql/mysql/help_topic.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/servers.MYI to /var/lib/mysql/mysql/servers.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/innodb_table_stats.ibd to /var/lib/mysql/mysql/innodb_table_stats.ibd
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_category.frm to /var/lib/mysql/mysql/help_category.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_category.MYI to /var/lib/mysql/mysql/help_category.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/general_log.frm to /var/lib/mysql/mysql/general_log.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_leap_second.MYD to /var/lib/mysql/mysql/time_zone_leap_second.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/tables_priv.MYI to /var/lib/mysql/mysql/tables_priv.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_name.MYI to /var/lib/mysql/mysql/time_zone_name.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/tables_priv.frm to /var/lib/mysql/mysql/tables_priv.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_transition_type.MYI to /var/lib/mysql/mysql/time_zone_transition_type.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_name.MYD to /var/lib/mysql/mysql/time_zone_name.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/slave_relay_log_info.frm to /var/lib/mysql/mysql/slave_relay_log_info.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/ndb_binlog_index.frm to /var/lib/mysql/mysql/ndb_binlog_index.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone.MYD to /var/lib/mysql/mysql/time_zone.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/innodb_table_stats.frm to /var/lib/mysql/mysql/innodb_table_stats.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/proc.MYD to /var/lib/mysql/mysql/proc.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone_transition_type.MYD to /var/lib/mysql/mysql/time_zone_transition_type.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/general_log.CSM to /var/lib/mysql/mysql/general_log.CSM
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/proxies_priv.frm to /var/lib/mysql/mysql/proxies_priv.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/db.MYI to /var/lib/mysql/mysql/db.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/proxies_priv.MYI to /var/lib/mysql/mysql/proxies_priv.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/procs_priv.MYD to /var/lib/mysql/mysql/procs_priv.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/help_topic.MYD to /var/lib/mysql/mysql/help_topic.MYD
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/time_zone.MYI to /var/lib/mysql/mysql/time_zone.MYI
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./mysql/slow_log.CSM to /var/lib/mysql/mysql/slow_log.CSM
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/hosts.frm to /var/lib/mysql/performance_schema/hosts.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/setup_objects.frm to /var/lib/mysql/performance_schema/setup_objects.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/file_instances.frm to /var/lib/mysql/performance_schema/file_instances.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/performance_timers.frm to /var/lib/mysql/performance_schema/performance_timers.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/table_io_waits_summary_by_index_usage.frm to /var/lib/mysql/performance_schema/table_io_waits_summary_by_index_usage.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/events_statements_summary_by_user_by_event_name.frm to /var/lib/mysql/performance_schema/events_statements_summary_by_user_by_event_name.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/objects_summary_global_by_type.frm to /var/lib/mysql/performance_schema/objects_summary_global_by_type.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/events_statements_current.frm to /var/lib/mysql/performance_schema/events_statements_current.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/accounts.frm to /var/lib/mysql/performance_schema/accounts.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/socket_summary_by_event_name.frm to /var/lib/mysql/performance_schema/socket_summary_by_event_name.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/mutex_instances.frm to /var/lib/mysql/performance_schema/mutex_instances.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/table_lock_waits_summary_by_table.frm to /var/lib/mysql/performance_schema/table_lock_waits_summary_by_table.frm
160904 18:06:32 [01]        ...done
160904 18:06:32 [01] Copying ./performance_schema/users.frm to /var/lib/mysql/performance_schema/users.frm
160904 18:06:32 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/file_summary_by_event_name.frm to /var/lib/mysql/performance_schema/file_summary_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_statements_history_long.frm to /var/lib/mysql/performance_schema/events_statements_history_long.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/host_cache.frm to /var/lib/mysql/performance_schema/host_cache.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_statements_summary_by_account_by_event_name.frm to /var/lib/mysql/performance_schema/events_statements_summary_by_account_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_waits_summary_by_user_by_event_name.frm to /var/lib/mysql/performance_schema/events_waits_summary_by_user_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_statements_summary_by_digest.frm to /var/lib/mysql/performance_schema/events_statements_summary_by_digest.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/session_account_connect_attrs.frm to /var/lib/mysql/performance_schema/session_account_connect_attrs.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/setup_actors.frm to /var/lib/mysql/performance_schema/setup_actors.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_waits_summary_by_instance.frm to /var/lib/mysql/performance_schema/events_waits_summary_by_instance.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/setup_instruments.frm to /var/lib/mysql/performance_schema/setup_instruments.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_stages_history_long.frm to /var/lib/mysql/performance_schema/events_stages_history_long.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_waits_history_long.frm to /var/lib/mysql/performance_schema/events_waits_history_long.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_statements_history.frm to /var/lib/mysql/performance_schema/events_statements_history.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_stages_summary_by_host_by_event_name.frm to /var/lib/mysql/performance_schema/events_stages_summary_by_host_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_waits_summary_by_thread_by_event_name.frm to /var/lib/mysql/performance_schema/events_waits_summary_by_thread_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_waits_current.frm to /var/lib/mysql/performance_schema/events_waits_current.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/cond_instances.frm to /var/lib/mysql/performance_schema/cond_instances.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/table_io_waits_summary_by_table.frm to /var/lib/mysql/performance_schema/table_io_waits_summary_by_table.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_stages_summary_by_account_by_event_name.frm to /var/lib/mysql/performance_schema/events_stages_summary_by_account_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_waits_summary_global_by_event_name.frm to /var/lib/mysql/performance_schema/events_waits_summary_global_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/threads.frm to /var/lib/mysql/performance_schema/threads.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_stages_summary_by_thread_by_event_name.frm to /var/lib/mysql/performance_schema/events_stages_summary_by_thread_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/session_connect_attrs.frm to /var/lib/mysql/performance_schema/session_connect_attrs.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_statements_summary_global_by_event_name.frm to /var/lib/mysql/performance_schema/events_statements_summary_global_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/db.opt to /var/lib/mysql/performance_schema/db.opt
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_waits_summary_by_host_by_event_name.frm to /var/lib/mysql/performance_schema/events_waits_summary_by_host_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/file_summary_by_instance.frm to /var/lib/mysql/performance_schema/file_summary_by_instance.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_waits_summary_by_account_by_event_name.frm to /var/lib/mysql/performance_schema/events_waits_summary_by_account_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_stages_summary_global_by_event_name.frm to /var/lib/mysql/performance_schema/events_stages_summary_global_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_stages_current.frm to /var/lib/mysql/performance_schema/events_stages_current.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_waits_history.frm to /var/lib/mysql/performance_schema/events_waits_history.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/socket_instances.frm to /var/lib/mysql/performance_schema/socket_instances.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_statements_summary_by_host_by_event_name.frm to /var/lib/mysql/performance_schema/events_statements_summary_by_host_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/setup_consumers.frm to /var/lib/mysql/performance_schema/setup_consumers.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/socket_summary_by_instance.frm to /var/lib/mysql/performance_schema/socket_summary_by_instance.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_statements_summary_by_thread_by_event_name.frm to /var/lib/mysql/performance_schema/events_statements_summary_by_thread_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/rwlock_instances.frm to /var/lib/mysql/performance_schema/rwlock_instances.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_stages_summary_by_user_by_event_name.frm to /var/lib/mysql/performance_schema/events_stages_summary_by_user_by_event_name.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/events_stages_history.frm to /var/lib/mysql/performance_schema/events_stages_history.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 [01] Copying ./performance_schema/setup_timers.frm to /var/lib/mysql/performance_schema/setup_timers.frm
160904 18:06:33 [01]        ...done
160904 18:06:33 completed OK!

如果执行正确,其输出信息的最后几行通常如下:completed OK! 请确保如上信息的最行一行出现“innobackupex: completed OK!”。


如果服务器剩余空间不足,你可以使用 --move-back替换掉 --copy-back。

启动数据库

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/65b91fb140919062980e97f5d3931535.html