借用pcrcona-xtrbackup做备份恢复演练,附带备份脚本最佳实践-亲试ok-20210114

1.搭建基础环境

[root@MHA-Master-201 mysql-backup]# !mysql
mysql -uroot -p123456
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.26-log MySQL Community Server (GPL)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> source /scripts/xtrabackup/add_user.sql;
Query OK, 0 rows affected (0.07 sec)

Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.01 sec)

 

上一篇:kettle——mysql两表之间的数据更新


下一篇:vue element el-table实现前端搜索分页