MySQL 8.0 drop table恢复

Posted P10ZHUO

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL 8.0 drop table恢复相关的知识,希望对你有一定的参考价值。

mysql 8.0 drop table恢复


关于MySQL的drop table可能有很多恢复的方法,下面说一种,基于全备,复制,然后让sql_thread停在一个指定位置的方法来恢复。下面进行模拟恢复

环境信息

MySQL版本信息:Server version: 8.0.27 MySQL Community Server - GPL
os:
[root@test28 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)

场景描述:
1、利用sysbench 造10张表,每个表1000行记录
2、压测中利用xtrabackup做一个全备(full backup)
3、drop tables sbtest9
需求:
恢复sbtest9

思路梳理

主要步骤思路如下:
1、sysbench prepare后,然后run进行压测;
2、做一个全备份(模拟日常业务正常运行,每天或者每周做次热备份)
3、drop table(运行过程中,有人删了一张表)
4、flush logs;找到Drop对应得GTID
5、拿全备恢复一个从库 start slave io_thread;
6、start slave until sql_before_gtids=
7、dump或者表空间传输得方法,把主从都恢复一下。

恢复后的架构如下,3308实例为我们要新创建的从库,3306实例为主库,3310实例为原本复制正常的从库。

恢复过程

sysbench 造数据,压测

首先创建一个库

root@localhost 11:23:  [(none)]> create database sbtest;
Query OK, 1 row affected (0.00 sec)

然后利用lua脚本造数:
/usr/local/sysbench/bin/sysbench /usr/local/sysbench/share/sysbench/oltp_read_write.lua --mysql-socket=/tmp/mysql3306.sock --mysql-user=root --mysql-password=’
mysql’ --mysql-db=sbtest --db-driver=mysql --tables=10 --table-size=1000 --report-interval=10 --threads=10 --time=120 prepare

[root@test28 sysbench]# /usr/local/sysbench/bin/sysbench /usr/local/sysbench/share/sysbench/oltp_read_write.lua  --mysql-socket=/tmp/mysql3306.sock --mysql-user=root  --mysql-password='
mysql' --mysql-db=sbtest --db-driver=mysql  --tables=10  --table-size=1000  --report-interval=10 --threads=10 --time=120 prepare

sysbench 1.1.0 (using bundled LuaJIT 2.1.0-beta3)

Initializing worker threads...

Creating table 'sbtest6'...
Creating table 'sbtest10'...
Creating table 'sbtest2'...
Creating table 'sbtest9'...
Creating table 'sbtest4'...
Creating table 'sbtest7'...
Creating table 'sbtest1'...
Creating table 'sbtest5'...
Creating table 'sbtest3'...
Creating table 'sbtest8'...
Inserting 1000 records into 'sbtest4'
Inserting 1000 records into 'sbtest8'
Inserting 1000 records into 'sbtest1'
Inserting 1000 records into 'sbtest10'
Inserting 1000 records into 'sbtest5'
Inserting 1000 records into 'sbtest7'
Inserting 1000 records into 'sbtest3'
Inserting 1000 records into 'sbtest9'
Inserting 1000 records into 'sbtest2'
Inserting 1000 records into 'sbtest6'
Creating a secondary index on 'sbtest8'...
Creating a secondary index on 'sbtest4'...
Creating a secondary index on 'sbtest7'...
Creating a secondary index on 'sbtest1'...
Creating a secondary index on 'sbtest2'...
Creating a secondary index on 'sbtest6'...
Creating a secondary index on 'sbtest3'...
Creating a secondary index on 'sbtest9'...
Creating a secondary index on 'sbtest5'...
Creating a secondary index on 'sbtest10'...

然后run进行压测,跑出压力
/usr/local/sysbench/bin/sysbench /usr/local/sysbench/share/sysbench/oltp_read_write.lua --mysql-socket=/tmp/mysql3306.sock --mysql-user=root --mysql-password=’
mysql’ --mysql-db=sbtest --db-driver=mysql --tables=10 --table-size=1000 --report-interval=10 --threads=120 --time=3600 run

[root@test28 sysbench]# /usr/local/sysbench/bin/sysbench /usr/local/sysbench/share/sysbench/oltp_read_write.lua  --mysql-socket=/tmp/mysql3306.sock --mysql-user=root  --mysql-password='
mysql' --mysql-db=sbtest --db-driver=mysql  --tables=10  --table-size=1000  --report-interval=10 --threads=120 --time=3600 run 
sysbench 1.1.0 (using bundled LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 120
Report intermediate results every 10 second(s)
Initializing random number generator from current time


Initializing worker threads...

Threads started!

[ 10s ] thds: 120 tps: 1472.92 qps: 29569.55 (r/w/o: 20713.97/5897.77/2957.81) lat (ms,95%): 164.45 err/s: 0.00 reconn/s: 0.00
[ 20s ] thds: 120 tps: 1622.06 qps: 32471.51 (r/w/o: 22731.58/6495.92/3244.01) lat (ms,95%): 150.29 err/s: 0.00 reconn/s: 0.00
[ 30s ] thds: 120 tps: 1600.80 qps: 32038.31 (r/w/o: 22425.30/6411.50/3201.50) lat (ms,95%): 150.29 err/s: 0.00 reconn/s: 0.00
[ 40s ] thds: 120 tps: 1595.50 qps: 31920.58 (r/w/o: 22343.06/6386.52/3191.01) lat (ms,95%): 147.61 err/s: 0.00 reconn/s: 0.00
[ 50s ] thds: 120 tps: 1631.80 qps: 32618.22 (r/w/o: 22835.35/6519.18/3263.69) lat (ms,95%): 144.97 err/s: 0.00 reconn/s: 0.00
[ 60s ] thds: 120 tps: 1587.26 qps: 31795.28 (r/w/o: 22252.99/6367.76/3174.53) lat (ms,95%): 147.61 err/s: 0.00 reconn/s: 0.00
[ 70s ] thds: 120 tps: 1619.28 qps: 32354.57 (r/w/o: 22650.50/6465.41/3238.66) lat (ms,95%): 144.97 err/s: 0.00 reconn/s: 0.00
[ 80s ] thds: 120 tps: 1647.55 qps: 32936.01 (r/w/o: 23057.71/6583.40/3294.90) lat (ms,95%): 139.85 err/s: 0.00 reconn/s: 0.00
[ 90s ] thds: 120 tps: 1599.41 qps: 31989.87 (r/w/o: 22393.42/6397.43/3199.02) lat (ms,95%): 144.97 err/s: 0.00 reconn/s: 0.00
。。。。。。。

查看连接:

root@localhost 15:12:  [(none)]> show processlist\\G
*************************** 1. row ***************************
     Id: 5
   User: event_scheduler
   Host: localhost
     db: NULL
Command: Daemon
   Time: 181618
  State: Waiting on empty queue
   Info: NULL
*************************** 2. row ***************************
     Id: 10
   User: repl
   Host: test28:38018
     db: NULL
Command: Binlog Dump GTID
   Time: 181559
  State: Sending binlog event to replica
   Info: NULL
*************************** 3. row ***************************
     Id: 160
   User: root
   Host: localhost
     db: sbtest
Command: Execute
   Time: 0
  State: Opening tables
   Info: SELECT c FROM sbtest6 WHERE id BETWEEN 371 AND 470
*************************** 4. row ***************************
     Id: 161
   User: root
   Host: localhost
     db: sbtest
Command: Execute
   Time: 0
  State: closing tables
    Info: SELECT c FROM sbtest9 WHERE id=864
  。。。。
  *************************** 123. row ***************************
     Id: 284
   User: root
   Host: localhost
     db: NULL
Command: Query
   Time: 0
  State: init
   Info: show processlist
123 rows in set (0.00 sec)

xtrabackup全备数据库

xtrabackup --defaults-file=/data/mysql/mysql3306/my3306.cnf -S /tmp/mysql3306.sock -uroot -pmysql --backup --target-dir=/data/backup/db3306_full --no-server-version-check

[root@test28 backup]# xtrabackup --defaults-file=/data/mysql/mysql3306/my3306.cnf -S /tmp/mysql3306.sock -uroot -pmysql --backup --target-dir=/data/backup/db3306_full --no-server-versio
n-check
xtrabackup: recognized server arguments: --server-id=3306 --datadir=/data/mysql/mysql3306/data --open_files_limit=65535 --log_bin=/data/mysql/mysql3306/logs/mybinlog --innodb_buffer_pool_size=200M --innodb_data_file_path=ibdata1:12M:autoextend --innodb_flush_log_at_trx_commit=1 --innodb_log_buffer_size=32M --innodb_log_file_size=200M --innodb_log_files_in_group=3 --innodb_io_capacity=4000 --innodb_open_files=65535 --innodb_flush_method=O_DIRECT --innodb_adaptive_hash_index=0 
xtrabackup: recognized client arguments: --port=3306 --socket=/tmp/mysql3306.sock --socket=/tmp/mysql3306.sock --user=root --password=* --backup=1 --target-dir=/data/backup/db3306_full --no-server-version-check=1 
xtrabackup version 8.0.26-18 based on MySQL server 8.0.26 Linux (x86_64) (revision id: 4aecf82)
220115 14:57:52  version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;port=3306;mysql_socket=/tmp/mysql3306.sock' as 'root'  (using password: YES).
Failed to connect to MySQL server: DBI connect(';mysql_read_default_group=xtrabackup;port=3306;mysql_socket=/tmp/mysql3306.sock','root',...) failed: Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory at - line 1535.
220115 14:57:52 Connecting to MySQL server host: localhost, user: root, password: set, port: 3306, socket: /tmp/mysql3306.sock
Using server version 8.0.27
220115 14:57:52 Executing LOCK INSTANCE FOR BACKUP...
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /data/mysql/mysql3306/data
xtrabackup: open files limit requested 65535, set to 1000000
xtrabackup: using the following InnoDB configuration:
xtrabackup:   innodb_data_home_dir = .
xtrabackup:   innodb_data_file_path = ibdata1:12M:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 3
xtrabackup:   innodb_log_file_size = 209715200
xtrabackup: using O_DIRECT
Number of pools: 1
xtrabackup: inititialize_service_handles suceeded
220115 14:57:54 Connecting to MySQL server host: localhost, user: root, password: set, port: 3306, socket: /tmp/mysql3306.sock
xtrabackup: Redo Log Archiving is not set up.
Starting to parse redo log at lsn = 1544060604
Recovery parsing buffer extended to 4194304.
Recovery parsing buffer extended to 8388608.
Recovery parsing buffer extended to 16777216.
220115 14:57:59 >> log scanned up to (1616220312)
xtrabackup: Generating a list of tablespaces
xtrabackup: Generating a list of tablespaces
Scanning './'
Completed space ID check of 2 files.
Allocated tablespace ID 50 for sbtest/sbtest8, old maximum was 0
Using undo tablespace './undo_001'.
Using undo tablespace './undo_002'.
Opened 2 existing undo tablespaces.
220115 14:57:59 [01] Copying ./ibdata1 to /data/backup/db3306_full/ibdata1
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sys/sys_config.ibd to /data/backup/db3306_full/sys/sys_config.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./zhuo/t1.ibd to /data/backup/db3306_full/zhuo/t1.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest4.ibd to /data/backup/db3306_full/sbtest/sbtest4.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest3.ibd to /data/backup/db3306_full/sbtest/sbtest3.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest8.ibd to /data/backup/db3306_full/sbtest/sbtest8.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest10.ibd to /data/backup/db3306_full/sbtest/sbtest10.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest9.ibd to /data/backup/db3306_full/sbtest/sbtest9.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest5.ibd to /data/backup/db3306_full/sbtest/sbtest5.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest2.ibd to /data/backup/db3306_full/sbtest/sbtest2.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest7.ibd to /data/backup/db3306_full/sbtest/sbtest7.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest6.ibd to /data/backup/db3306_full/sbtest/sbtest6.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./sbtest/sbtest1.ibd to /data/backup/db3306_full/sbtest/sbtest1.ibd
220115 14:57:59 [01]        ...done
220115 14:57:59 [01] Copying ./mysql.ibd to /data/backup/db3306_full/mysql.ibd
220115 14:58:00 [01]        ...done
220115 14:58:00 [01] Copying ./undo_002 to /data/backup/db3306_full/undo_002
220115 14:58:00 [01]        ...done
220115 14:58:00 [01] Copying ./undo_001 to /data/backup/db3306_full/undo_001
220115 14:58:00 >> log scanned up to (1619279817)
220115 14:58:00 [01]        ...done
220115 14:58:01 Starting to backup non-InnoDB tables and files
220115 14:58:01 [01] Copying mysql/general_log_213.sdi to /data/backup/db3306_full/mysql/general_log_213.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying mysql/general_log.CSM to /data/backup/db3306_full/mysql/general_log.CSM
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying mysql/general_log.CSV to /data/backup/db3306_full/mysql/general_log.CSV
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying mysql/slow_log_214.sdi to /data/backup/db3306_full/mysql/slow_log_214.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying mysql/slow_log.CSM to /data/backup/db3306_full/mysql/slow_log.CSM
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying mysql/slow_log.CSV to /data/backup/db3306_full/mysql/slow_log.CSV
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/cond_instances_82.sdi to /data/backup/db3306_full/performance_schema/cond_instances_82.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/error_log_83.sdi to /data/backup/db3306_full/performance_schema/error_log_83.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_waits_cur_84.sdi to /data/backup/db3306_full/performance_schema/events_waits_cur_84.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_waits_his_85.sdi to /data/backup/db3306_full/performance_schema/events_waits_his_85.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_waits_his_86.sdi to /data/backup/db3306_full/performance_schema/events_waits_his_86.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_waits_sum_87.sdi to /data/backup/db3306_full/performance_schema/events_waits_sum_87.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_waits_sum_88.sdi to /data/backup/db3306_full/performance_schema/events_waits_sum_88.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_waits_sum_89.sdi to /data/backup/db3306_full/performance_schema/events_waits_sum_89.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_waits_sum_90.sdi to /data/backup/db3306_full/performance_schema/events_waits_sum_90.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_waits_sum_91.sdi to /data/backup/db3306_full/performance_schema/events_waits_sum_91.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_waits_sum_92.sdi to /data/backup/db3306_full/performance_schema/events_waits_sum_92.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 >> log scanned up to (1622210888)
220115 14:58:01 [01] Copying performance_schema/file_instances_93.sdi to /data/backup/db3306_full/performance_schema/file_instances_93.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/file_summary_by__94.sdi to /data/backup/db3306_full/performance_schema/file_summary_by__94.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/file_summary_by__95.sdi to /data/backup/db3306_full/performance_schema/file_summary_by__95.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/host_cache_96.sdi to /data/backup/db3306_full/performance_schema/host_cache_96.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/mutex_instances_97.sdi to /data/backup/db3306_full/performance_schema/mutex_instances_97.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/objects_summary__98.sdi to /data/backup/db3306_full/performance_schema/objects_summary__98.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/performance_time_99.sdi to /data/backup/db3306_full/performance_schema/performance_time_99.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/processlist_100.sdi to /data/backup/db3306_full/performance_schema/processlist_100.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/rwlock_instances_101.sdi to /data/backup/db3306_full/performance_schema/rwlock_instances_101.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/setup_actors_102.sdi to /data/backup/db3306_full/performance_schema/setup_actors_102.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/setup_consumers_103.sdi to /data/backup/db3306_full/performance_schema/setup_consumers_103.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/setup_instrument_104.sdi to /data/backup/db3306_full/performance_schema/setup_instrument_104.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/setup_objects_105.sdi to /data/backup/db3306_full/performance_schema/setup_objects_105.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/setup_threads_106.sdi to /data/backup/db3306_full/performance_schema/setup_threads_106.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/table_io_waits_s_107.sdi to /data/backup/db3306_full/performance_schema/table_io_waits_s_107.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/table_io_waits_s_108.sdi to /data/backup/db3306_full/performance_schema/table_io_waits_s_108.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/table_lock_waits_109.sdi to /data/backup/db3306_full/performance_schema/table_lock_waits_109.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/threads_110.sdi to /data/backup/db3306_full/performance_schema/threads_110.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_stages_cu_111.sdi to /data/backup/db3306_full/performance_schema/events_stages_cu_111.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_stages_hi_112.sdi to /data/backup/db3306_full/performance_schema/events_stages_hi_112.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_stages_hi_113.sdi to /data/backup/db3306_full/performance_schema/events_stages_hi_113.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_stages_su_114.sdi to /data/backup/db3306_full/performance_schema/events_stages_su_114.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_stages_su_115.sdi to /data/backup/db3306_full/performance_schema/events_stages_su_115.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_stages_su_116.sdi to /data/backup/db3306_full/performance_schema/events_stages_su_116.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_stages_su_117.sdi to /data/backup/db3306_full/performance_schema/events_stages_su_117.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_stages_su_118.sdi to /data/backup/db3306_full/performance_schema/events_stages_su_118.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_119.sdi to /data/backup/db3306_full/performance_schema/events_statement_119.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_120.sdi to /data/backup/db3306_full/performance_schema/events_statement_120.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_121.sdi to /data/backup/db3306_full/performance_schema/events_statement_121.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_122.sdi to /data/backup/db3306_full/performance_schema/events_statement_122.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_123.sdi to /data/backup/db3306_full/performance_schema/events_statement_123.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_124.sdi to /data/backup/db3306_full/performance_schema/events_statement_124.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_125.sdi to /data/backup/db3306_full/performance_schema/events_statement_125.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_126.sdi to /data/backup/db3306_full/performance_schema/events_statement_126.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_127.sdi to /data/backup/db3306_full/performance_schema/events_statement_127.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_128.sdi to /data/backup/db3306_full/performance_schema/events_statement_128.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_129.sdi to /data/backup/db3306_full/performance_schema/events_statement_129.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_statement_130.sdi to /data/backup/db3306_full/performance_schema/events_statement_130.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_transacti_131.sdi to /data/backup/db3306_full/performance_schema/events_transacti_131.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_transacti_132.sdi to /data/backup/db3306_full/performance_schema/events_transacti_132.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_transacti_133.sdi to /data/backup/db3306_full/performance_schema/events_transacti_133.sdi
220115 14:58:01 [01]        ...done
220115 14:58:01 [01] Copying performance_schema/events_transacti_134.sdi to /data/backup/db3306_full/performance_schema/events_transacti_134.sdi
220115 14:58:02 [01]        ...done
220115 14:58:02 [01] Copying performance_schema/events_transacti_135.sdi to /data/backup/db3306_full/performance_schema/events_transacti_135.sdi
220115 14:58:02 [01]        ...done
220115 14:58:02 [01] Copying performance_schema/events_transacti_136.sdi to /data/backup/db3306_full/performance_schema/events_transacti_136.sdi
220115 14:58:02 [01]        ...done
220115 14:58:02 [01] Copying performance_schema/events_transacti_137.sdi to /data/backup/db3306_full/performance_schema/events_transacti_137.sdi
220115 14:58:02 [01]        ...done
220115 14:58:02 [01] Copying performance_schema/events_transacti_138.sdi to /data/backup/db3306_full/performance_schema/events_transacti_138.sdi
220115 14:58:02 [01]        ...done
220115 14:58:02 [01] Copying performance_schema/events_errors_su_139.sdi to /data/backup/db3306_full/performance_schema/events_errors_su_139.sdi
220115 14:58:02 [01]        ...done
220115 14:58:02 [01] Copying performance_schema/events_errors_su_140.sdi to /data/backup/db3306_full/performance_schema/events_errors_su_140.sdi
220115 14:58:02 [01]        ...done
220115 14:58:02 [01] Copying performance_schema/events_errors_su_141.sdi to /data/backup/db3306_full/performance_schema/events_errors_su_141.sdi
220115 14:58:02 [01]        ...done
220115 14:58:02 [01] Copying performance_schema/events_errors_su_142.sdi to /data/backup/db3306_full/performance_schema/events_errors_su_142.sdi

以上是关于MySQL 8.0 drop table恢复的主要内容,如果未能解决你的问题,请参考以下文章

MySQL 8.0 drop table恢复

MySQL使用DROP TABLE命令删除表怎么恢复?

MySQL5.7下面,误操作导致的drop table db1.tb1; 的恢复方法:

MySQL5.7下面,误操作导致的drop table db1.tb1; 的恢复方法:

MS SQL drop table怎么恢复

Mysql通过binlog恢复数据