percona XTRADB Cluster 5.6在ubuntu安装
installing-perconaXTRADB Cluster 5.6
in-ubuntu-13-10-wheezy
First of all, I would recommend login as root so that you don’t have tosudo every time you hit the command and give the root password.
1. $ su -
$ su -
Now you should be logged in as root. Mine now is
1. root@rajug:~#
root@rajug:~#
Step 1:
First of all lets remove everything that is related to MySQL from the machine.
1. apt-get remove mysql*
2. apt-get purge mysql*
3. apt-get autoremove
apt-get remove mysql*
apt-get purge mysql*
apt-get autoremeve
Step 2: Adding the key
Now lets add the key that is provided by Percona, we have to add this to beallowed to install from Percona server.
1. apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
apt-key adv --keyserverkeys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
Step 3: Adding the repository
Lets add the Percona repository in the sources list in the machine/Ubuntu.
1. vim /etc/apt/sources.list
vim /etc/apt/sources.list
Add the following two lines in the source list:
http://repo.percona.com/apt/dists/
1. deb http://repo.percona.com/apt wheezy main
2. deb-src http://repo.percona.com/apt wheezy main
deb http://repo.percona.com/aptsaucy main
deb-srchttp://repo.percona.com/apt saucy main
Step 4: Apt-Pinning the packages
In some cases you might need to “pin” the selected packages to avoid theupgrades from the distribution repositories. You’ll need to make a new file/etc/apt/preferences.d/00percona.pref and add the following lines in it:
1. vim /etc/apt/preferences.d/00percona.pref
vim/etc/apt/preferences.d/00percona.pref
Add the following line:
1. Package: *
2. Pin: release o=Percona Development Team
3. Pin-Priority: 1001
Package: *
Pin: release o=PerconaDevelopment Team
Pin-Priority: 1001
Step 5: Update
1. $apt-get update
$apt-get update
Step 6: Install Percona XtraDB and Cluster
1. $ sudo apt-get installpercona-xtradb-cluster-56
$ sudo apt-get installpercona-xtradb-cluster-56
Step 7: Install dependencies
If there are any dependencies left, then lets install them
1. $ apt-get install -f
$ apt-get install -f
Step 8: Testing
To make sure if Percona Server is installed in your machine with MySQL simplytry:
1. $ mysql -u root -p
$ mysql -u root -p
And it showed me :
root@rajug:~# mysql -u root -p
1. Enter password:
2. Welcome to the MySQL monitor. Commands end with ; or \g.
3. Your MySQL connection id is 11
4. Server version: 5.6.15-63.0 Percona Server (GPL), Release 63.0
5.
6. Copyright (c) 2009-2013 Percona LLC and/or its affiliates
7. Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
8.
9. Oracle is a registered trademark of Oracle Corporation and/or its
10. affiliates. Other names may be trademarks of their respective
11. owners.
12.
13. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
14.
mysql>
percona XTRADB Cluster 5.6在ubuntu安装的更多相关文章
- PXC(Percona XtraDB Cluster)集群的安装与配置
Percona XtraDB Cluster是针对MySQL用户的高可用性和扩展性解决方案,基于Percona Server .其包括了Write Set REPlication补丁,使用Galera ...
- Percona XtraDB Cluster(PXC) -集群环境安装
Percona XtraDB Cluster(PXC) ---服务安装篇 1.测试环境搭建: Ip 角色 OS PXC-version 172.16.40.201 Node1 Redhat/C ...
- docker1.12 安装pxc(Percona XtraDB Cluster )测试
docker1.12 安装pxc(Percona XtraDB Cluster )测试
- 搭建高可用mysql系列(2)-- Percona XtraDB Cluster 安装
本文主要介绍在 centos 下 Percona XtraDB Cluster(下文简称PXC) 的安装, 个人的系统版本信息如下: [root@c2-d09 worker]# more /etc/r ...
- Percona XtraDB Cluster简易入门 - 安装篇
说明 Percona XtraDB Cluster(简称PXC),是由percona公司推出的mysql集群解决方案.特点是每个节点都能进行读写,且都保存全量的数据.也就是说在任何一个节点进行写入操作 ...
- 如何搭建Percona XtraDB Cluster集群
一.环境准备 主机IP 主机名 操作系统版本 PXC 192.168.244.146 node1 ...
- 使用percona xtradb cluster的IST方式添加新节点
使用percona xtradb cluster的IST(Incremental State Transfer)特性添加新节点,防止新节点加入时使用SST(State SnapShop Transfe ...
- mysql高可用之PXC(Percona XtraDB Cluster)
简介 Percona XtraDB Cluster是MySQL高可用性和可扩展性的解决方案,Percona XtraDB Cluster提供的特性如下: 1).同步复制,事务要么在所有节点提交或不提交 ...
- PXC5.7(Percona XtraDB Cluster)+HAproxy+Keepalived 集群部署
Percona-XtraDB-Cluster+Haproxy 搭建集群环境 环境准备及服务器信息: 配置防火墙 firewall-cmd --add-port=3306/tcp --permanent ...
随机推荐
- PHP -- 模拟测试上传文件
FROM :http://web.itivy.com/article-740-1.html QQ上传文件为什么那么快? “QQ上传大文件/QQ群发送大文件时,可以在极短的时间内完成”是如何做到的. 有 ...
- keras入门--Mnist手写体识别
介绍如何使用keras搭建一个多层感知机实现手写体识别及搭建一个神经网络最小的必备知识 import keras # 导入keras dir(keras) # 查看keras常用的模块 ['Input ...
- Web前端面试题小集
一.一个页面上两个div左右铺满整个浏览器,要保证左边的div一直为100px,右边的div跟随浏览器大小变化(比如浏览器为500,右边div为400,浏览器为900,右边div为800),请写出大概 ...
- Java过滤任意(script,html,style)标签符,返回纯文本--封装类
import java.util.regex.Pattern; /** * 过滤标签字符串,返回纯文本 * */ public class ChangePlainText { ...
- POJ 2417 Discrete Logging (Baby-Step Giant-Step)
Discrete Logging Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 2819 Accepted: 1386 ...
- apt-get update 和 upgrade 的区别
http://blog.csdn.net/duyiwuer2009/article/details/26983267
- 在Mac中设置Ctrl+C/V进行复制/粘贴
从Windows世界走入Mac世界,最让不习惯的是在Mac中“复制/粘贴”的快捷键是Command+C/V.而且Command键与C/V键靠得太近,只能用大拇指与食指进行操作,也让人不习惯.再加上远程 ...
- python接口自动化25-发xml格式post请求
前言 post请求相对于get请求多一个body部分,body部分常见的数据类型有以下四种(注意是常见的,并不是只有4种) application/x-www-form-urlencoded appl ...
- Appium+python自动化22-Appium Desktop
Appium Desktop 原滋原味的官方文档 Appium Desktop是一款用于Mac.Windows和Linux的开源应用,它提供了Appium自动化服务器在一个漂亮灵活的UI中的强大功能. ...
- Mac配置PHP开发环境
安装环境如下: Mac OS 10.10.1 Apache 2.4.9 PHP 5.5.14 MySQL 5.6.22 Apache配置 在Mac OS 10.10.1中是自带Apache软件的,我们 ...