mysql的多实例部署和xtrabackup备份与恢复

Linux 使用xtrabackup备份MySQL数据 介绍如何使用物理备份工具xtrabackup备份MySQL数据,以及数据的恢复操作; 阅读详情

1.mysql多实例部署

软件下载

[root@localhost src]# wget https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz

配置用户和组并解压二进制程序至/usr/local下

[root@localhost src]# groupadd -r mysql #创建组
[root@localhost src]# useradd -M -s /sbin/nologin -g mysql mysql #创建用户并不允许登录

##解压并创建软连接
[root@localhost src]# ls   
debug  kernels  mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz
[root@localhost src]# tar xf mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz -C /usr/local/
[root@localhost src]# cd /usr/local/
[root@localhost local]# ls
bin  games    lib    libexec                              sbin   src
etc  include  lib64  mysql-5.7.34-linux-glibc2.12-x86_64  share
[root@localhost local]# ln -sv mysql-5.7.34-linux-glibc2.12-x86_64/ mysql
'mysql' -> 'mysql-5.7.34-linux-glibc2.12-x86_64/'

##修改目录的所属组
[root@localhost local]# chown -R mysql.mysql /usr/local/mysql
[root@localhost local]# ll -d /usr/local/mysql
lrwxrwxrwx. 1 mysql mysql 36 8月  28 21:44 /usr/local/mysql -> mysql-5.7.34-linux-glibc2.12-x86_64/

##编辑环境变量
[root@localhost profile.d]# echo 'export PATH=/usr/local/mysql/bin:$PATH' > /etc/profile.d/mysql.sh
[root@localhost profile.d]# . /etc/profile.d/mysql.sh 
[root@localhost profile.d]# echo $PATH
/usr/local/mysql/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin

创建数据存放目录

[root@localhost opt]# mkdir -p /opt/data/{3306,3307,3308}
[root@localhost opt]# chown -R mysql.mysql /opt/data
[root@localhost opt]# ll /opt/data/
总用量 0
drwxr-xr-x. 2 mysql mysql 6 8月  28 22:05 3306
drwxr-xr-x. 2 mysql mysql 6 8月  28 22:05 3307
drwxr-xr-x. 2 mysql mysql 6 8月  28 22:05 3308

初始化实列

#3306
[root@localhost ~]# mysqld --initialize --datadir=/opt/data/3306 --user=mysql
2021-08-29T02:07:55.590188Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-08-29T02:07:55.735327Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-08-29T02:07:55.765978Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-08-29T02:07:55.771323Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: ecba00e7-086d-11ec-a65b-000c29114d9c.
2021-08-29T02:07:55.772702Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2021-08-29T02:07:56.314763Z 0 [Warning] CA certificate ca.pem is self signed.
2021-08-29T02:07:56.450617Z 1 [Note] A temporary password is generated for root@localhost: G62,uB3+td/V
#3307
[root@localhost ~]# mysqld --initialize --datadir=/opt/data/3307 --user=mysql
2021-08-29T02:08:41.479023Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-08-29T02:08:41.622614Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-08-29T02:08:41.647048Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-08-29T02:08:41.712157Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 081c0368-086e-11ec-aa0d-000c29114d9c.
2021-08-29T02:08:41.712871Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2021-08-29T02:08:42.036226Z 0 [Warning] CA certificate ca.pem is self signed.
2021-08-29T02:08:42.196217Z 1 [Note] A temporary password is generated for root@localhost: O,4>doY2gR.1
#3308
[root@localhost ~]# mysqld --initialize --datadir=/opt/data/3308 --user=mysql
2021-08-29T02:13:40.041901Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-08-29T02:13:40.179267Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-08-29T02:13:40.204397Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-08-29T02:13:40.260113Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: ba0ed253-086e-11ec-a111-000c29114d9c.
2021-08-29T02:13:40.261117Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2021-08-29T02:13:40.718606Z 0 [Warning] CA certificate ca.pem is self signed.
2021-08-29T02:13:40.795257Z 1 [Note] A temporary password is generated for root@localhost: 9*7eoP+kqQs7

安装perl

[root@localhost ~]# yum -y install perl

配置文件/etc/my.con

[root@localhost ~]# vim /etc/my.cnf
[root@localhost ~]# cat /etc/my.cnf 
[mysqld_multi]
mysqld = /usr/local/mysql/bin/mysqld_safe
mysqladmin = /usr/local/mysql/bin/mysqladmin

[mysqld3306]
datadir = /opt/data/3306
port = 3306
socket = /tmp/mysql3306.sock
pid-file = /opt/data/3306/mysql_3306.pid
log-error=/var/log/3306.log

[mysqld3307]
datadir = /opt/data/3307
port = 3307
socket = /tmp/mysql3307.sock
pid-file = /opt/data/3307/mysql_3307.pid
log-error=/var/log/3307.log

[mysqld3308]
datadir = /opt/data/3308
port = 3308
socket = /tmp/mysql3308.sock
pid-file = /opt/data/3308/mysql_3308.pid
log-error=/var/log/3308.log

启动各实列

[root@localhost ~]# mysqld_multi start 3306
Wide character in print at /usr/local/mysql/bin/mysqld_multi line 678.
[root@localhost ~]# mysqld_multi start 3307
Wide character in print at /usr/local/mysql/bin/mysqld_multi line 678.
[root@localhost ~]# mysqld_multi start 3308
Wide character in print at /usr/local/mysql/bin/mysqld_multi line 678.
[root@localhost ~]# ss -antl
State     Recv-Q    Send-Q       Local Address:Port        Peer Address:Port    Process    
LISTEN    0         128                0.0.0.0:22               0.0.0.0:*                  
LISTEN    0         128                   [::]:22                  [::]:*                  
LISTEN    0         80                       *:3306                   *:*                  
LISTEN    0         80                       *:3307                   *:*                  
LISTEN    0         80                       *:3308                   *:* 

初始化密码

[root@localhost ~]# mysql -uroot -p'G62,uB3+td/V' -S /tmp/mysql3306.sock 
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.34

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

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> set password=password('123');
Query OK, 0 rows affected, 1 warning (0.01 sec)

mysql> 

#3307
[root@localhost ~]# mysql -uroot -p'O,4>doY2gR.1' -S /tmp/mysql3307.sock 
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 3
Server version: 5.7.34

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

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> set password=password('123');
Query OK, 0 rows affected, 1 warning (0.00 sec)

#3308
[root@localhost ~]# mysql -uroot -p'9*7eoP+kqQs7' -S /tmp/mysql3308.sock 
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.34

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

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> set password=password('123');
Query OK, 0 rows affected, 1 warning (0.00 sec)

多实例设置开机自启

[root@localhost ~]# cp /usr/local/mysql/support-files/mysqld_multi.server /etc/init.d/mysqld.server
[root@localhost ~]# ls /etc/init.d/
functions  mysqld.server  README
[root@localhost ~]# vim /etc/init.d/mysqld.server 

[root@localhost ~]# vim /etc/init.d/mysqld.server 
[root@localhost ~]# cat /etc/init.d/mysqld.server 
#!/bin/sh
#
# A simple startup script for mysqld_multi by Tim Smith and Jani Tolonen.
# This script assumes that my.cnf file exists either in /etc/my.cnf or
# /root/.my.cnf and has groups [mysqld_multi] and [mysqldN]. See the
# mysqld_multi documentation for detailed instructions.
#
# This script can be used as /etc/init.d/mysql.server
#
# Comments to support chkconfig on RedHat Linux
# chkconfig: 2345 64 36
# description: A very fast and reliable SQL database engine.
#
# Version 1.0
#

export PATH=/usr/local/mysql/bin/:$PATH  #添加该内容
basedir=/usr/local/mysql
bindir=/usr/local/mysql/bin
······

[root@localhost ~]# chkconfig --add mysqld.server 

2.Xtrabackup

2.1 Xtrabackup介绍

MySQL冷备、mysqldump、MySQL热拷贝都无法实现对数据库进行增量备份。在实际生产环境中增量备份是非常实用的,如果数据大于50G或100G,存储空间足够的情况下,可以每天进行完整备份,如果每天产生的数据量较大,需要定制数据备份策略。例如每周实用完整备份,周一到周六实用增量备份。而Percona-Xtrabackup就是为了实现增量备份而出现的一款主流备份工具,xtrabakackup有2个工具,分别是xtrabakup、innobakupe。

Percona-xtrabackup是 Percona公司开发的一个用于MySQL数据库物理热备的备份工具,支持MySQL、Percona server和MariaDB,开源免费,是目前较为受欢迎的主流备份工具。xtrabackup只能备份innoDB和xtraDB两种数据引擎的表,而不能备份MyISAM数据表。

2.2 Xtrabackup优点

(1)备份速度快,物理备份可靠

(2)备份过程不会打断正在执行的事务(无需锁表)

(3)能够基于压缩等功能节约磁盘空间和流量

(4)自动备份校验

(5)还原速度快

(6)可以流传将备份传输到另外一台机器上

(7)在不增加服务器负载的情况备份数据

2.3 Xtrabackup备份原理

Xtrabackup备份流程图:

img

(1)innobackupex启动后,会先fork一个进程,用于启动xtrabackup,然后等待xtrabackup备份ibd数据文件;

(2)xtrabackup在备份innoDB数据是,有2种线程:redo拷贝线程和ibd数据拷贝线程。xtrabackup进程开始执行后,会启动一个redo拷贝的线程,用于从最新的checkpoint点开始顺序拷贝redo.log;再启动ibd数据拷贝线程,进行拷贝ibd数据。这里是先启动redo拷贝线程的。在此阶段,innobackupex进行处于等待状态(等待文件被创建)

(4)xtrabackup拷贝完成ibd数据文件后,会通知innobackupex(通过创建文件),同时xtrabackup进入等待状态(redo线程依旧在拷贝redo.log)

(5)innobackupex收到xtrabackup通知后哦,执行FLUSH TABLES WITH READ LOCK(FTWRL),取得一致性位点,然后开始备份非InnoDB文件(如frm、MYD、MYI、CSV、opt、par等格式的文件),在拷贝非InnoDB文件的过程当中,数据库处于全局只读状态。

(6)当innobackup拷贝完所有的非InnoDB文件后,会通知xtrabackup,通知完成后,进入等待状态;

(7)xtrabackup收到innobackupex备份完成的通知后,会停止redo拷贝线程,然后通知innobackupex,redo.log文件拷贝完成;

(8)innobackupex收到redo.log备份完成后,就进行解锁操作,执行:UNLOCK TABLES;

(9)最后innbackupex和xtrabackup进程各自释放资源,写备份元数据信息等,innobackupex等xtrabackup子进程结束后退出。

2.4 Xtrabackup工具

Xtrabackup中主要包含两个工具:
xtrabackup:是用于热备innodb,xtradb表中数据的工具,不能备份其他类型的表,也不能备份数据表结构;
innobackupex:是将xtrabackup进行封装的perl脚本,提供了备份myisam表的能力。
常用选项:
–host 指定主机
–user 指定用户名
–password 指定密码
–port 指定端口
–databases 指定数据库
–incremental 创建增量备份
–incremental-basedir 指定包含完全备份的目录
–incremental-dir 指定包含增量备份的目录
–apply-log 对备份进行预处理操作
一般情况下,在备份完成后,数据尚且不能用于恢复操作,因为备份的数据中可能会包含尚未提交的事务或已经提交但尚未同步至数据文件中的事务。因此,此时数据文件仍处理不一致状态。“准备”的主要作用正是通过回滚未提交的事务及同步已经提交的事务至数据文件也使得数据文件处于一致性状态。
–redo-only 不回滚未提交事务
–copy-back 恢复备份目录

2.5 xtrabackup安装

[root@localhost ~]# wget https://downloads.percona.com/downloads/Percona-XtraBackup-2.4/Percona-XtraBackup-2.4.23/binary/redhat/8/x86_64/percona-xtrabackup-24-2.4.23-1.el8.x86_64.rpm
[root@localhost ~]# yum -y install percona-xtrabackup-24-2.4.23-1.el8.x86_64.rpm

2.6 xtrabackup备份

备份时需启动MySQL,恢复时需关闭MySQL,清空mysql数据目录且不能重新初始化,恢复数据后应该立即进行一次完全备份

mysql> create database luochuran;   #创建一个库验证后面是否备份成功
Query OK, 1 row affected (0.00 sec)

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| luochuran          |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
5 rows in set (0.00 sec)

##开始备份
[root@localhost ~]# innobackupex --defaults-files=/etc/my.cnf --password=123 --user=root -P3306 --host=127.0.0.1 /opt/backup
xtrabackup: recognized server arguments: 
xtrabackup: recognized client arguments: 
210828 23:07:03 innobackupex: Starting the backup operation

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

210828 23:07:03  version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;host=127.0.0.1;port=3306' as 'root'  (using password: YES).
210828 23:07:03  version_check Connected to MySQL server
210828 23:07:03  version_check Executing a version check against the server...

# A software update is available:
210828 23:07:06  version_check Done.
210828 23:07:06 Connecting to MySQL server host: 127.0.0.1, user: root, password: set, port: 3306, socket: not set
Using server version 5.7.34
······
210828 23:07:08 [00] Writing /opt/backup/2021-08-28_23-07-03/xtrabackup_info
210828 23:07:08 [00]        ...done
xtrabackup: Transaction log of lsn (2747353) to (2747362) was copied.
210828 23:07:08 completed OK!

##删除库和/opt/date的数据
mysql> drop database luochuran;
Query OK, 0 rows affected (0.01 sec)

[root@localhost ~]# rm -rf /opt/data/*
[root@localhost ~]# 

##停止mysqld
[root@localhost ~]# ss -antl
State                    Recv-Q                   Send-Q                                     Local Address:Port                                      Peer Address:Port                   Process                   
LISTEN                   0                        128                                              0.0.0.0:22                                             0.0.0.0:*                                                
LISTEN                   0                        128                                                 [::]:22                                                [::]:*                                                
LISTEN                   0                        80                                                     *:3306                                                 *:*                                                
LISTEN                   0                        80                                                     *:3307                                                 *:*                                                
LISTEN                   0                        80                                                     *:3308                                                 *:*                                                
[root@localhost ~]# pkill mysqld
[root@localhost ~]# ss -antl
State                    Recv-Q                   Send-Q                                     Local Address:Port                                      Peer Address:Port                   Process                   
LISTEN                   0                        128                                              0.0.0.0:22                                             0.0.0.0:*                                                
LISTEN                   0                        128                                                 [::]:22                                                [::]:*       

##恢复
[root@localhost ~]# innobackupex --copy-back /opt/backup/2021-08-28_23-07-03/
xtrabackup: recognized server arguments: --datadir=/opt/data/3308 
xtrabackup: recognized client arguments: 
210828 23:29:02 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.23 based on MySQL server 5.7.34 Linux (x86_64) (revision id: 3320f39)
210828 23:29:02 [01] Copying ib_logfile0 to /opt/data/3308/ib_logfile0
210828 23:29:02 [01]        ...done
210828 23:29:02 [01] Copying ib_logfile1 to /opt/data/3308/ib_logfile1
210828 23:29:02 [01]        ...done
210828 23:29:02 [01] Copying ibdata1 to /opt/data/3308/ibdata1
210828 23:29:02 [01]        ...done
210828 23:29:02 [01] Copying ./mysql/plugin.ibd to /opt/data/3308/mysql/plugin.ibd
210828 23:29:02 [01]        ...done
210828 23:29:02 [01] Copying ./ibtmp1 to /opt/data/3308/ibtmp1
210828 23:29:02 [01]        ...done
210828 23:29:02 completed OK!

[root@localhost ~]# ls /opt/data/3308/ #查看已经恢复
ib_buffer_pool  ibdata1  ib_logfile0  ib_logfile1  ibtmp1  mysql  performance_schema  sys  xtrabackup_info  xtrabackup_master_key_id

statefulset部署mysql主从 statefulset部署myql主从 阅读详情

相关推荐

MYSQL 多实例部署和xtrabackup

percona-xtrabackup-24- 100%[===========================>] 7.69M 32.4KB/s 用时 3m 13s。mysql-5.7.34-linux-gli 100%[===========================>] 634.56M 14.3MB/s 用时 61s。(7)xtrabackup收到innobackupex备份完成的通知后,会停止redo拷贝线程,然后通知innobackupex,redo.log文件拷贝完成;

2401_88972404的博客 922

下载被墙镜像

前提:https://github.com/ https://hub.docker.com/ 注册一个github账户和一个dockerhub账户 注:所写的每一步都是必须的 1.登录github创建一个项目 Repositories : new一个github项目 Repository name : github项目名称 Initialize this repository ...

s2421458535的博客 1701

gcr.io/google-samples/xtrabackup:1.0

MySQL+xtrabackup:1.0实现读写分离

MariaDB/MySQL备份和恢复(三):xtrabackup用法和原理详述

MariaDB/MySQL备份恢复系列: 备份和恢复(一):mysqldump工具用法详述 备份和恢复(二):导入、导出表数据 备份和恢复(三):xtrabackup用法和原理详述 xtrabackup是percona团队研发的备份工具,比MySQL官方的ibbackup的功能还要多。支持myisam温全备、innodb热全备和温增备,还可以实现innodb的定时点恢复,而且备份...

weixin_34410662的博客 350

FANUC机器人电弧跟踪功能深度解析:从电流采样原理到ROBOGUIDE仿真避坑指南

本文深度解析FANUC机器人电弧跟踪技术,从电流采样原理到ROBOGUIDE仿真避坑指南,详细介绍了电流波形分析、实时补偿机制及现场调试技巧。针对工业焊接中的常见问题,提供从底层原理到高阶应用的解决方案,帮助工程师优化自动化焊接质量。

weixin_31785177的博客 549

Jetpack Compose Navigation实战:从基础到高级导航模式

本文全面解析Jetpack Compose Navigation在Android开发中的应用,从基础导航实现到高级模式(如单任务/单顶模式),涵盖参数传递、嵌套导航、深层链接等核心功能。通过实战代码示例展示如何优化导航性能,并与ViewModel、Hilt等架构组件整合,为开发者提供高效的Compose导航解决方案。

pz890123456的博客 372

MySQL多实例部署、自启动配置、xtrabackup备份与恢复

一、MySQL多实例部署 1.下载二进制包 wget http://https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz [root@localhost ~]# ls anaconda-ks.cfg mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz 2.创建用户和组并解压二进制包至/usr/local/下 [root@localhost ~]

皮卡丘多多的博客 443

告别‘火龙’:实测BES2800/RK2108等主流芯片,聊聊AI眼镜的功耗与散热‘内卷’实战

本文深入探讨了AI智能眼镜在功耗与散热方面的挑战,重点分析了恒玄BES2800和瑞芯微RK2108等主控芯片的能效表现。通过实测数据和优化策略,揭示了在6nm工艺、异构计算和系统级散热方案下的实战经验,为AI眼镜的功耗管理提供了实用解决方案。

weixin_30839881的博客 945

MySQL多实例部署和Xtrabackup备份与恢复

MySQL多实例部署 软件下载 配置用户和组并解压二进制程序至/usr/local下 创建各实例数据事件的目录 初始化各实例 安装perl 配置配置文件/etc/my.cnf 启动各实例 初始化密码 软件下载 //下载二进制格式的mysql软件包 [root@localhost ~]# cd /usr/src/ [root@localhost src]# wget https://downloads.mysql.com/archives/get/file/mysql-5.7.22-l.

一别的博客 442

windows系统下,如何为comfyui如何安装triton

​ 有些加速插件、模型在安装的时候,比如说sageattention的安装,就需要提前安装triton这个包,不过这个包有点特殊,windows下略微不好装,经常会装失败。 🎠如何安装 之前也有人介绍过,要到github上找个wheel文件,找到对应的版本安装下就好了。 问题是:https://github.com/woct0rdho/triton-windows/releases 这个git地址上,已经找不到wheel文件了... ​

聚梦小课堂 4496

EPSON RX8010SJ RTC实战:I2C寄存器配置避坑指南(附完整初始化代码)

本文详细解析了EPSON RX8010SJ RTC芯片在I2C寄存器配置中的常见问题与解决方案,包括TEST位、STOP位和中断控制等关键配置要点。通过实战经验分享和完整的初始化代码模板,帮助开发者避免常见陷阱,确保RTC模块的稳定运行。

weixin_28678831的博客 406

MySQL 多实例部署 xtrabackup备份与恢复

MySQL 多实例部署 1.下载安装包 [root@localhost ~]# wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz [root@localhost ~]# ls anaconda-ks.cfg mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz 2.解压至/usr/local [root@localhost

Yanghu4112的博客 654

NX二次开发-用户自定义资源栏选项卡RegisterActivationCallback

NX二次开发-用户自定义资源栏选项卡RegisterActivationCallback

阿飞2018 1385

MySQL 多实例部署 开机自启 xtrabackup备份与恢复

MySQL 多实例部署 开机自启 xtrabackup备份与恢复 1. MySQL 多实例部署 // 拉去安装包 [root@localhost ~]# wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz //解压到/usr/local/ [root@localhost ~]# tar xf mysql-5.7.35-linux-glibc2.12-x86_64.tar.g

YangLuxxx123 380

移动机器人路径规划中噪声环境下的鲁棒性测试仿真

设计一个二维或三维环境模型,包括静态障碍物和可能存在的动态障碍物。

amy_mhd的博客 125

手把手教你玩转CPU微架构专栏--​​​​1.5 工具准备:用Gem5模拟器“看见”微架构(安装、基础仿真命令)​

本文介绍了如何使用Gem5模拟器进行微架构学习和实验。Gem5是一款支持多种指令集的开源微架构模拟器,可模拟CPU流水线、缓存等核心组件。文章详细说明了在Ubuntu和macOS上安装Gem5的步骤,包括依赖安装、源码编译和验证方法。通过一个简单的加法指令测试程序,演示了如何运行基础仿真并解读输出日志,包括指令执行流程和性能统计数据。此外,还提供了两个实战实验:修改L1缓存大小和观察分支预测失败,帮助读者理解微架构参数对性能的影响。最后指出Gem5是学习微架构的"显微镜",能直观观察指令

xiaoheshang_123的博客 140

多实例部署、开机自启、xtrabackup备份与恢复

多实例部署、开机自启、xtrabackup备份与恢复 一、MySQL多实例部署 1 下载二进制包 wget http://https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz [root@localhost ~]# ls anaconda-ks.cfg mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz 2 创建用户和组并解压二进制包至/usr/l

m0_56305656的博客 298

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

mysql 多实例部署、xtrabackup下载与安装

mysql 多实例部署 一、 二进制安装mysql 软件下载 下载网络源 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo 下载mysql二级制包 wget https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz 配置用户并解压二进制程序至

Xiaoajie55的博客 883

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

mysql多实例部署与Xtrabackup备份

mysql多实例部署与Xtrabackup备份 mysql多实例部署 软件下载 [root@localhost src]# wget https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz --2021-08-28 21:35:23-- https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.34-linux

西北连天一片云,乌鸦落在凤凰群 305

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

mysql多实例部署

mysql多实例部署 软件下载 在网页 https://downloads.mysql.com/archives/community/ 下载mysql软件包 //下载二进制格式的mysql软件包,从官网下载mysql压缩包,再把下载好的压缩包拉进/usr/src下面 [root@localhost ~]# cd /usr/src/ [root@localhost src]# ls debug kernels mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz 配置用

m0_46289146的博客 297

MySQL多实例部署

MySQL多实例部署1、软件下载和安装2、配置开机自启3、xtrabackup3.1 xtrabackup下载、安装、备份、恢复 1、软件下载和安装 //配置网络源 [root@wjm ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo //下载二进制格式的mysql软件包 [root@wjm ~]# cd /usr/src/ [root@wjm src]# wget htt

W--\\_//的博客 364
上一篇: 数据库的备份恢复和SQL语句
下一篇: mysql的主从复制
在你书包里拉屎
博客等级 码龄5年 149粉丝 100原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值