前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用XtraBackup创建mysql slave2

使用XtraBackup创建mysql slave2

作者头像
franket
发布2022-05-04 22:29:28
4010
发布2022-05-04 22:29:28
举报
文章被收录于专栏:技术杂记

安装mysql

代码语言:javascript
复制
[root@slave-test src]# yum install Percona-Server-server-56
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.pubyun.com
 * extras: mirrors.pubyun.com
 * updates: mirrors.pubyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package Percona-Server-server-56.x86_64 0:5.6.26-rel74.0.el6 will be installed
--> Processing Dependency: Percona-Server-client-56 for package: Percona-Server-server-56-5.6.26-rel74.0.el6.x86_64
--> Processing Dependency: Percona-Server-shared-56 for package: Percona-Server-server-56-5.6.26-rel74.0.el6.x86_64
--> Running transaction check
---> Package Percona-Server-client-56.x86_64 0:5.6.26-rel74.0.el6 will be installed
---> Package Percona-Server-shared-56.x86_64 0:5.6.26-rel74.0.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
 Package                               Arch                Version                          Repository                           Size
======================================================================================================================================
Installing:
 Percona-Server-server-56              x86_64              5.6.26-rel74.0.el6               percona-release-x86_64               20 M
Installing for dependencies:
 Percona-Server-client-56              x86_64              5.6.26-rel74.0.el6               percona-release-x86_64              6.4 M
 Percona-Server-shared-56              x86_64              5.6.26-rel74.0.el6               percona-release-x86_64              725 k

Transaction Summary
======================================================================================================================================
Install       3 Package(s)

Total download size: 27 M
Installed size: 123 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): Percona-Server-client-56-5.6.26-rel74.0.el6.x86_64.rpm                                                  | 6.4 MB     01:19     
(2/3): Percona-Server-server-56-5.6.26-rel74.0.el6.x86_64.rpm                                                  |  20 MB     03:44     
(3/3): Percona-Server-shared-56-5.6.26-rel74.0.el6.x86_64.rpm                                                  | 725 kB     00:02     
--------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                  89 kB/s |  27 MB     05:07     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : Percona-Server-shared-56-5.6.26-rel74.0.el6.x86_64                                                                 1/3 
  Installing : Percona-Server-client-56-5.6.26-rel74.0.el6.x86_64                                                                 2/3 
  Installing : Percona-Server-server-56-5.6.26-rel74.0.el6.x86_64                                                                 3/3 
2015-10-12 14:51:21 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-10-12 14:51:21 0 [Note] /usr/sbin/mysqld (mysqld 5.6.26-74.0) starting as process 720 ...
2015-10-12 14:51:21 720 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-10-12 14:51:21 720 [Note] InnoDB: The InnoDB memory heap is disabled
2015-10-12 14:51:21 720 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-10-12 14:51:21 720 [Note] InnoDB: Memory barrier is not used
2015-10-12 14:51:21 720 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-10-12 14:51:21 720 [Note] InnoDB: Using Linux native AIO
2015-10-12 14:51:21 720 [Note] InnoDB: Using CPU crc32 instructions
2015-10-12 14:51:21 720 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-10-12 14:51:21 720 [Note] InnoDB: Completed initialization of buffer pool
2015-10-12 14:51:21 720 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2015-10-12 14:51:21 720 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2015-10-12 14:51:21 720 [Note] InnoDB: Database physically writes the file full: wait...
2015-10-12 14:51:21 720 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2015-10-12 14:51:22 720 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2015-10-12 14:51:22 720 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2015-10-12 14:51:22 720 [Warning] InnoDB: New log files created, LSN=45781
2015-10-12 14:51:22 720 [Note] InnoDB: Doublewrite buffer not found: creating new
2015-10-12 14:51:22 720 [Note] InnoDB: Doublewrite buffer created
2015-10-12 14:51:22 720 [Note] InnoDB: 128 rollback segment(s) are active.
2015-10-12 14:51:22 720 [Warning] InnoDB: Creating foreign key constraint system tables.
2015-10-12 14:51:22 720 [Note] InnoDB: Foreign key constraint system tables created
2015-10-12 14:51:22 720 [Note] InnoDB: Creating tablespace and datafile system tables.
2015-10-12 14:51:22 720 [Note] InnoDB: Tablespace and datafile system tables created.
2015-10-12 14:51:22 720 [Note] InnoDB: Waiting for purge to start
2015-10-12 14:51:22 720 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 0
2015-10-12 14:51:22 720 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.
2015-10-12 14:51:22 720 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
2015-10-12 14:51:26 720 [Note] Binlog end
2015-10-12 14:51:26 720 [Note] InnoDB: FTS optimize thread exiting.
2015-10-12 14:51:26 720 [Note] InnoDB: Starting shutdown...
2015-10-12 14:51:28 720 [Note] InnoDB: Shutdown completed; log sequence number 1625977


2015-10-12 14:51:28 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-10-12 14:51:28 0 [Note] /usr/sbin/mysqld (mysqld 5.6.26-74.0) starting as process 744 ...
2015-10-12 14:51:28 744 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-10-12 14:51:28 744 [Note] InnoDB: The InnoDB memory heap is disabled
2015-10-12 14:51:28 744 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-10-12 14:51:28 744 [Note] InnoDB: Memory barrier is not used
2015-10-12 14:51:28 744 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-10-12 14:51:28 744 [Note] InnoDB: Using Linux native AIO
2015-10-12 14:51:28 744 [Note] InnoDB: Using CPU crc32 instructions
2015-10-12 14:51:28 744 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-10-12 14:51:28 744 [Note] InnoDB: Completed initialization of buffer pool
2015-10-12 14:51:28 744 [Note] InnoDB: Highest supported file format is Barracuda.
2015-10-12 14:51:28 744 [Note] InnoDB: 128 rollback segment(s) are active.
2015-10-12 14:51:28 744 [Note] InnoDB: Waiting for purge to start
2015-10-12 14:51:28 744 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1625977
2015-10-12 14:51:28 744 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.
2015-10-12 14:51:28 744 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
2015-10-12 14:51:28 744 [Note] Binlog end
2015-10-12 14:51:28 744 [Note] InnoDB: FTS optimize thread exiting.
2015-10-12 14:51:28 744 [Note] InnoDB: Starting shutdown...
2015-10-12 14:51:30 744 [Note] InnoDB: Shutdown completed; log sequence number 1625987




PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

  /usr/bin/mysqladmin -u root password 'new-password'
  /usr/bin/mysqladmin -u root -h slave-test password 'new-password'

Alternatively you can run:

  /usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems at
 https://bugs.launchpad.net/percona-server/+filebug

The latest information about Percona Server is available on the web at
  http://www.percona.com/software/percona-server

Support Percona by buying support at
 http://www.percona.com/products/mysql-support

WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server

Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit.
Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
See http://www.percona.com/doc/percona-server/5.6/management/udf_percona_toolkit.html for more details
  Verifying  : Percona-Server-shared-56-5.6.26-rel74.0.el6.x86_64                                                                 1/3 
  Verifying  : Percona-Server-server-56-5.6.26-rel74.0.el6.x86_64                                                                 2/3 
  Verifying  : Percona-Server-client-56-5.6.26-rel74.0.el6.x86_64                                                                 3/3 

Installed:
  Percona-Server-server-56.x86_64 0:5.6.26-rel74.0.el6                                                                                

Dependency Installed:
  Percona-Server-client-56.x86_64 0:5.6.26-rel74.0.el6              Percona-Server-shared-56.x86_64 0:5.6.26-rel74.0.el6             

Complete!
[root@slave-test src]# echo $?
0
[root@slave-test src]# 

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 安装mysql
相关产品与服务
云数据库 MySQL
腾讯云数据库 MySQL(TencentDB for MySQL)为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。其具备6大企业级特性,包括企业级定制内核、企业级高可用、企业级高可靠、企业级安全、企业级扩展以及企业级智能运维。通过使用腾讯云数据库 MySQL,可实现分钟级别的数据库部署、弹性扩展以及全自动化的运维管理,不仅经济实惠,而且稳定可靠,易于运维。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档