author:skate
time:2012/06/27

percona mysql备份与恢复(一)

XtraBackup 是开源的热备mysql的软件,可以备份InnoDB, XtraDB, and MyISAM类型的表,它是由如下三个工具组成的

1.innobackupex:有perl脚本封装的,可以备份MyISAM, InnoDB, and XtraDB类型表,推荐使用此工具
2.xtrabackup:由c语言编译的,只copy表InnoDB和XtraDB的数据
3.xbstream:允许从streaming and extracting文件压缩/抽取xbstream格式文件

innobackupex
innobackupex有更强的功能,它整合了xtrabackup和其他的一些功能,他不但可以全量备份/恢复,还可以基于时间的增量备份与恢复。

innobackupex备份原理
innobackupex首先调用xtrabackup来备份innodb数据文件,当xtrabackup完成后,innobackupex就查看文件xtrabackup_suspended ;然后执行“FLUSH TABLES WITH READ LOCK”来备份其他的文件

innobackupex恢复原理
innobackupex首先读取my.cnf,查看变量(datadir,innodb_data_home_dir,innodb_data_file_path,innodb_log_group_home_dir)对应的目录是存在,确定相关目录存在后,然后先copy myisam表和索引,然后在copy innodb的表、索引和日志

详细参考:http://www.percona.com/doc/percona-xtrabackup/innobackupex/how_innobackupex_works.html

下载:
[root@localhost data]# wget http://www.percona.com/redir/downloads/XtraBackup/XtraBackup-2.0.0/RPM/rhel5/i386/percona-xtrabackup-2.0.0-417.rhel5.i386.rpm

安装:
[root@localhost data]# rpm -ivh percona-xtrabackup-2.0.0-417.rhel5.i386.rpm

全量的备份与恢复

步骤
# innobackupex --user=root /data/backup/
# innobackupex --apply-log /data/backup/2012-06-27_16-32-57/
先把datadir目录更名,因为恢复时,datadir目录不为空,恢复会终止,防止意外覆盖
# innobackupex --copy-back /data/backup/2012-06-27_16-32-57/

备份:
[root@localhost data]# innobackupex --user=root /data/backup/

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2012. All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

120627 16:32:51 innobackupex: Starting mysql with options: --user='root' --unbuffered --
120627 16:32:51 innobackupex: Connected to database with mysql child process (pid=14905)
120627 16:32:57 innobackupex: Connection to database server closed
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".

innobackupex: Using mysql Ver 14.12 Distrib 5.0.95, for redhat-linux-gnu (i686) using readline 5.1
innobackupex: Using mysql server version Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

innobackupex: Created backup directory /data/backup/2012-06-27_16-32-57
120627 16:32:57 innobackupex: Starting mysql with options: --user='root' --unbuffered --
120627 16:32:57 innobackupex: Connected to database with mysql child process (pid=14929)
120627 16:32:59 innobackupex: Connection to database server closed

120627 16:32:59 innobackupex: Starting ibbackup with command: xtrabackup_55 --backup --suspend-at-end --target-dir=/data/backup/2012-06-27_16-32-57
innobackupex: Waiting for ibbackup (pid=14936) to suspend
innobackupex: Suspend file '/data/backup/2012-06-27_16-32-57/xtrabackup_suspended'

xtrabackup_55 version 2.0.0 for Percona Server 5.5.16 Linux (i686) (revision id: 417)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /data/mysql/usr/local/mysql/data/
xtrabackup: Target instance is assumed as followings.
xtrabackup: innodb_data_home_dir = ./
xtrabackup: innodb_data_file_path = ibdata1:10M:autoextend
xtrabackup: innodb_log_group_home_dir = ./
xtrabackup: innodb_log_files_in_group = 2
xtrabackup: innodb_log_file_size = 5242880
120627 16:32:59 InnoDB: Using Linux native AIO
>> log scanned up to (1597964)
[01] Copying ./ibdata1 to /data/backup/2012-06-27_16-32-57/ibdata1
[01] ...done

120627 16:33:01 innobackupex: Continuing after ibbackup has suspended
120627 16:33:01 innobackupex: Starting mysql with options: --user='root' --unbuffered --
120627 16:33:01 innobackupex: Connected to database with mysql child process (pid=14950)
120627 16:33:03 innobackupex: Starting to lock all tables...
>> log scanned up to (1597964)
>> log scanned up to (1597964)
120627 16:33:13 innobackupex: All tables locked and flushed to disk

120627 16:33:13 innobackupex: Starting to backup .frm, .MRG, .MYD, .MYI,
innobackupex: .TRG, .TRN, .ARM, .ARZ, .CSM, .CSV and .opt files in
innobackupex: subdirectories of '/data/mysql/usr/local/mysql/data/'
innobackupex: Backing up files '/data/mysql/usr/local/mysql/data//performance_schema/*.{frm,MYD,MYI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (18 files)
innobackupex: Backing up files '/data/mysql/usr/local/mysql/data//mysql/*.{frm,MYD,MYI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (72 files)
>> log scanned up to (1597964)
120627 16:33:14 innobackupex: Finished backing up .frm, .MRG, .MYD, .MYI, .TRG, .TRN, .ARM, .ARZ, .CSV, .CSM and .opt files

innobackupex: Resuming ibbackup

xtrabackup: The latest check point (for incremental): '1597964'
xtrabackup: Stopping log copying thread.
.>> log scanned up to (1597964)

xtrabackup: Transaction log of lsn (1597964) to (1597964) was copied.
120627 16:33:17 innobackupex: All tables unlocked
120627 16:33:17 innobackupex: Connection to database server closed

innobackupex: Backup created in directory '/data/backup/2012-06-27_16-32-57'
innobackupex: MySQL binlog position: filename 'mysql-bin.000003', position 107
120627 16:33:17 innobackupex: completed OK!
[root@localhost data]#

在创建全量备份后,备份文件是不能restore的,因为这个初始创建的备份只是简单的copy过程,而innodb是事务引擎,所以还需要通过log文件replay committed的事务和回滚uncommitted事务,这样数据库就达到一致的状态,可以restore了。

[root@localhost data]# innobackupex --apply-log /data/backup/2012-06-27_16-32-57/

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2012. All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

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

120627 16:34:56 innobackupex: Starting ibbackup with command: xtrabackup_55 --prepare --target-dir=/data/backup/2012-06-27_16-32-57

xtrabackup_55 version 2.0.0 for Percona Server 5.5.16 Linux (i686) (revision id: 417)
xtrabackup: cd to /data/backup/2012-06-27_16-32-57
xtrabackup: This target seems to be not prepared yet.
xtrabackup: xtrabackup_logfile detected: size=2097152, start_lsn=(1597964)
xtrabackup: Temporary instance for recovery is set as followings.
xtrabackup: innodb_data_home_dir = ./
xtrabackup: innodb_data_file_path = ibdata1:10M:autoextend
xtrabackup: innodb_log_group_home_dir = ./
xtrabackup: innodb_log_files_in_group = 1
xtrabackup: innodb_log_file_size = 2097152
120627 16:34:56 InnoDB: Using Linux native AIO
xtrabackup: Starting InnoDB instance for recovery.
xtrabackup: Using 104857600 bytes for buffer pool (set by --use-memory parameter)
120627 16:34:56 InnoDB: The InnoDB memory heap is disabled
120627 16:34:56 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120627 16:34:56 InnoDB: Compressed tables use zlib 1.2.3
120627 16:34:56 InnoDB: Using Linux native AIO
120627 16:34:56 InnoDB: Warning: innodb_file_io_threads is deprecated. Please use innodb_read_io_threads and innodb_write_io_threads instead
120627 16:34:56 InnoDB: Initializing buffer pool, size = 100.0M
120627 16:34:56 InnoDB: Completed initialization of buffer pool
120627 16:34:56 InnoDB: highest supported file format is Barracuda.
120627 16:34:57 InnoDB: Waiting for the background threads to start
120627 16:34:58 Percona XtraDB (http://www.percona.com) 1.1.8-20.1 started; log sequence number 1597964

[notice (again)]
If you use binary log and don't use any hack of group commit,
the binary log position seems to be:

xtrabackup: starting shutdown with innodb_fast_shutdown = 1
120627 16:34:58 InnoDB: Starting shutdown...
120627 16:35:02 InnoDB: Shutdown completed; log sequence number 1597964

120627 16:35:02 innobackupex: Restarting xtrabackup with command: xtrabackup_55 --prepare --target-dir=/data/backup/2012-06-27_16-32-57
for creating ib_logfile*

xtrabackup_55 version 2.0.0 for Percona Server 5.5.16 Linux (i686) (revision id: 417)
xtrabackup: cd to /data/backup/2012-06-27_16-32-57
xtrabackup: This target seems to be already prepared.
xtrabackup: notice: xtrabackup_logfile was already used to '--prepare'.
xtrabackup: Temporary instance for recovery is set as followings.
xtrabackup: innodb_data_home_dir = ./
xtrabackup: innodb_data_file_path = ibdata1:10M:autoextend
xtrabackup: innodb_log_group_home_dir = ./
xtrabackup: innodb_log_files_in_group = 2
xtrabackup: innodb_log_file_size = 5242880
120627 16:35:02 InnoDB: Using Linux native AIO
xtrabackup: Starting InnoDB instance for recovery.
xtrabackup: Using 104857600 bytes for buffer pool (set by --use-memory parameter)
120627 16:35:02 InnoDB: The InnoDB memory heap is disabled
120627 16:35:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120627 16:35:02 InnoDB: Compressed tables use zlib 1.2.3
120627 16:35:02 InnoDB: Using Linux native AIO
120627 16:35:02 InnoDB: Warning: innodb_file_io_threads is deprecated. Please use innodb_read_io_threads and innodb_write_io_threads instead
120627 16:35:02 InnoDB: Initializing buffer pool, size = 100.0M
120627 16:35:02 InnoDB: Completed initialization of buffer pool
120627 16:35:02 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
120627 16:35:02 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
120627 16:35:02 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
120627 16:35:02 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
120627 16:35:02 Percona XtraDB (http://www.percona.com) 1.1.8-20.1 started; log sequence number 1598476

[notice (again)]
If you use binary log and don't use any hack of group commit,
the binary log position seems to be:

xtrabackup: starting shutdown with innodb_fast_shutdown = 1
120627 16:35:02 InnoDB: Starting shutdown...
120627 16:35:07 InnoDB: Shutdown completed; log sequence number 1598476
120627 16:35:07 innobackupex: completed OK!
[root@localhost data]#

restore备份文件要保证datadir文件为空,否则会报如下的错误

[root@localhost data]# innobackupex --copy-back /data/backup/2012-06-27_16-32-57/

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2012. All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

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

Original data directory is not empty! at /usr/bin/innobackupex line 568.
[root@localhost data]#

更名datadir目录
[root@localhost data]# mv /data/mysql/usr/local/mysql/data /data/mysql/usr/local/mysql/data.bak1
[root@localhost data]# mkdir /data/mysql/usr/local/mysql/data

restore备份文件,达到恢复的状态

[root@localhost data]# innobackupex --copy-back /data/backup/2012-06-27_16-32-57/

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2012. All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

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

innobackupex: Starting to copy files in '/data/backup/2012-06-27_16-32-57'
innobackupex: back to original data directory '/data/mysql/usr/local/mysql/data/'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//xtrabackup_checkpoints'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//ib_logfile1'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//ib_logfile0'
innobackupex: Creating directory '/data/mysql/usr/local/mysql/data//performance_schema'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//performance_timers.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//setup_timers.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//rwlock_instances.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//cond_instances.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//events_waits_summary_by_instance.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//mutex_instances.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//file_summary_by_event_name.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//events_waits_history.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//events_waits_current.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//db.opt'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//events_waits_summary_by_thread_by_event_name.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//file_summary_by_instance.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//setup_instruments.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//file_instances.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//setup_consumers.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//threads.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//events_waits_history_long.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//events_waits_summary_global_by_event_name.frm'
innobackupex: Creating directory '/data/mysql/usr/local/mysql/data//mysql'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_topic.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_transition.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//host.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//servers.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//tables_priv.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//proc.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//plugin.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//func.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//host.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//user.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//db.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_leap_second.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//proxies_priv.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//slow_log.CSV'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_name.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//event.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_transition_type.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//columns_priv.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_category.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//general_log.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_transition_type.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_name.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_keyword.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_topic.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//procs_priv.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_relation.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//procs_priv.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_keyword.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_keyword.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//user.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_category.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_transition.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//event.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//func.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//slow_log.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//db.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//db.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//host.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_leap_second.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_relation.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//procs_priv.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//func.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_name.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_topic.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//proc.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//servers.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//proc.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//general_log.CSM'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_leap_second.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//columns_priv.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//ndb_binlog_index.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//tables_priv.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//user.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//proxies_priv.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//plugin.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//ndb_binlog_index.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_category.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//servers.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//tables_priv.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_transition_type.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//columns_priv.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//help_relation.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//ndb_binlog_index.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//proxies_priv.frm'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//general_log.CSV'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//plugin.MYI'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//event.MYD'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//slow_log.CSM'
innobackupex: Copying file '/data/mysql/usr/local/mysql/data//time_zone_transition.MYI'
innobackupex: Creating directory '/data/mysql/usr/local/mysql/data//test'

innobackupex: Starting to copy InnoDB system tablespace
innobackupex: in '/data/backup/2012-06-27_16-32-57'
innobackupex: back to original InnoDB data directory '/data/mysql/usr/local/mysql/data/'
innobackupex: Copying file '/data/backup/2012-06-27_16-32-57/ibdata1'

innobackupex: Starting to copy InnoDB log files
innobackupex: in '/data/backup/2012-06-27_16-32-57'
innobackupex: back to original InnoDB log directory '/data/mysql/usr/local/mysql/data/'
innobackupex: Finished copying back files.

120627 16:36:30 innobackupex: completed OK!
[root@localhost data]#

---------end-------

参考:http://www.percona.com/doc/percona-xtrabackup/innobackupex/innobackupex_script.html

percona mysql备份与恢复(一)相关推荐

  1. MySQL备份与恢复工具之XTRABACKUP

    MySQL备份与恢复工具之XTRABACKUP :coffee: 安装 :feet: 原理 :deer: 用法 全量备份与还原 STEP 1: BACKUP STEP 2: PREPARE STEP ...

  2. ch5 MySQL 备份与恢复

    第 5 章 MySQL 备份与恢复 前言 数据库的备份与恢复一直都是 DBA 工作中最为重要的部分之一,也是基本工作之一.任何正式环境的数据库都必须有完整的备份计划和恢复测试,本章内容将主要介绍 My ...

  3. mysql冷备增量备份,MySQL备份与恢复之真实环境使用冷备(2)

    这篇文章主要介绍了MySQL备份与恢复之真实环境使用冷备,需要的朋友可以参考下 在上一篇文章(MySQL备份与恢复之冷备)中,我们提到了冷备.但是有个问题,我们存储的数据文件是保存在当前本地磁盘的,如 ...

  4. mysql重要的监控参数_zabbix3.0.2使用percona mysql插件来监控mysql5.7   以及必须监控的性能参数...

    http://tongcheng.blog.51cto.com/6214144/1620158 http://www.cnblogs.com/caoxiaojian/p/5706992.html ht ...

  5. 一键安装zabbix percona mysql插件监控mysql

    运行环境:centos7 python2 yum -y install python 需要将Server和ServerActive参数修改为自己的zabbix server的IP vi zabbix_ ...

  6. zabbix3.0.2 使用percona mysql插件来监控mysql5.7的详细实现过程

    zabbix3.0.2 使用percona mysql插件来监控mysql5.7的详细实现过程 --前言 上次用了zabbix自带的mysql插件来监控mysql数据库,但是太过简陋了,对于我们dba ...

  7. compat-mysql安装_Centos7 rpm方式安装Percona Mysql 8

    1. 下载安装包 下载以下四个安装包: percona-server-client-8.0.17-8.1.el7.x86_64.rpm percona-server-server-8.0.17-8.1 ...

  8. mysql常用操作 mysql备份与恢复

    先登录mysql  ==>mysql -uroot -p  查看数据库的版本 select version(); 查看有哪些库 show datases; 查看当前处于哪个库 select da ...

  9. mysql备份与恢复实验报告_实验十一 MySQLl备份与恢复1

    实验十一MySQL备份与恢复 一.实验内容: 1. 使用SQL语句导入和导出表数据 2. 使用客户端工具备份还原数据库 3. 使用日志文件恢复数据库 二.实验项目:学生成绩数据库 创建用于学生成绩管理 ...

最新文章

  1. [050] 微信公众平台开发入门视频教程已公布
  2. Spring集成Mybatis,spring4.x整合Mybatis3.x
  3. ASP.NET的Page.IsPostBack 属性详细说明(转)
  4. 【问链财经-区块链基础知识系列】 第四十课 港版支付宝的区块链跨境汇款与Ripple、Circle大不同
  5. 足球动图gif(一)
  6. 界面按钮太多 聊天机器人都快被玩坏了
  7. [动态代理三部曲:下] - 从动态代理,看Retrofit的源码实现
  8. struts一个action处理多个方法
  9. 给大家推荐一款非常好用的表单验证插件:lr-verify.js
  10. UBNT rocket M5 无线设置的有关笔记
  11. zigbeelibrary.jar的使用
  12. 将图像数据jpg,png等存储为npy/npz格式
  13. Android webview 播放视频及全屏
  14. Learning to Reconstruct 3D Manhattan Wireframes from a Single Image 翻译
  15. php商城积分兑换商品功能,ECSHOP积分商城添加金额+积分兑换功能
  16. NVP2650和NVP2650D的区别是什么?
  17. Linux 批量修改文件名(前缀或后缀)
  18. 网络与验证服务器失联怎样修复,GCP用一键服务器失联了,如何重装系统?
  19. 【竞赛复盘】2022雪浪算力开发者大赛——阀体异常检测
  20. 体感游戏波斯王子:重生.

热门文章

  1. JAVAphpstudy
  2. 笔记本下键android,安卓联姻Windows?华硕双系统变形本体验
  3. 机械指令 对应 汇编指令
  4. Aspose.Word企业案例:Acumen Fuse 使用 Aspose 组件将项目分析数据导出到 Microsoft Word 和 Excel
  5. SSM多表联查,原来如此方便,快捷!!!
  6. 从元宇宙的人、货、场展望2022年元宇宙发展趋势
  7. php中logic(),thinkphp中的logic和service层是干什么用的?
  8. 戴尔服务器无视频信号,开启电脑 显示器提示无视频信号
  9. 服务请求2XX、5XX等错误具体是什么
  10. RESTful接口入门