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安装的更多相关文章

  1. PXC(Percona XtraDB Cluster)集群的安装与配置

    Percona XtraDB Cluster是针对MySQL用户的高可用性和扩展性解决方案,基于Percona Server .其包括了Write Set REPlication补丁,使用Galera ...

  2. Percona XtraDB Cluster(PXC) -集群环境安装

    Percona XtraDB Cluster(PXC)   ---服务安装篇   1.测试环境搭建: Ip 角色 OS PXC-version 172.16.40.201 Node1 Redhat/C ...

  3. docker1.12 安装pxc(Percona XtraDB Cluster )测试

    docker1.12 安装pxc(Percona XtraDB Cluster )测试

  4. 搭建高可用mysql系列(2)-- Percona XtraDB Cluster 安装

    本文主要介绍在 centos 下 Percona XtraDB Cluster(下文简称PXC) 的安装, 个人的系统版本信息如下: [root@c2-d09 worker]# more /etc/r ...

  5. Percona XtraDB Cluster简易入门 - 安装篇

    说明 Percona XtraDB Cluster(简称PXC),是由percona公司推出的mysql集群解决方案.特点是每个节点都能进行读写,且都保存全量的数据.也就是说在任何一个节点进行写入操作 ...

  6. 如何搭建Percona XtraDB Cluster集群

    一.环境准备 主机IP                     主机名               操作系统版本     PXC 192.168.244.146     node1           ...

  7. 使用percona xtradb cluster的IST方式添加新节点

    使用percona xtradb cluster的IST(Incremental State Transfer)特性添加新节点,防止新节点加入时使用SST(State SnapShop Transfe ...

  8. mysql高可用之PXC(Percona XtraDB Cluster)

    简介 Percona XtraDB Cluster是MySQL高可用性和可扩展性的解决方案,Percona XtraDB Cluster提供的特性如下: 1).同步复制,事务要么在所有节点提交或不提交 ...

  9. PXC5.7(Percona XtraDB Cluster)+HAproxy+Keepalived 集群部署

    Percona-XtraDB-Cluster+Haproxy 搭建集群环境 环境准备及服务器信息: 配置防火墙 firewall-cmd --add-port=3306/tcp --permanent ...

随机推荐

  1. [USACO08JAN]Cell Phone Network

    题目大意: 给你一个n个结点的树,请你搞一些破坏. 你可以选择手动弄坏某个点,那么与它直接相连的点也会自动坏掉. 问你把整棵树搞坏至少要手动弄坏几个点? 思路: f[0~2][i]表示不同状态下以i为 ...

  2. ZOJ 3687 The Review Plan I 容斥原理

    一道纯粹的容斥原理题!!不过有一个trick,就是会出现重复的,害我WA了几次!! 代码: #include<iostream> #include<cstdio> #inclu ...

  3. 对Java Serializable(序列化)的理解和总结(二)

    遇到这个 Java Serializable 序列化这个接口,我们可能会有如下的问题a,什么叫序列化和反序列化 b,作用.为啥要实现这个 Serializable 接口,也就是为啥要序列化 c,ser ...

  4. 初涉springboot(一)

    概述 1.了解springboot的作用 2.构建第一个springboot项目 一.springboot的作用 ① 原先在构建SSM项目的时候,可以感觉到,在一些不是很大的项目,构建配置文件的过程所 ...

  5. SQL 语句实现排序问题!

    SQL 查询数据时按某列排序后增加排名列,需排名的列值相等时排名相同,即如需排名列数组为:9,9,8,7,7,6     添加的排名列数组需要显示为两种: 第一种:1,1,3,4,4,6 (这种排名方 ...

  6. 原生javascript知识点

    JAVASCRIPT 1.变量 1.1概念 变量源于数学,是计算机语言中存储计算结果或表示值抽象概念 计算机有个地方叫内存,变量都会将值存入到内存中,变量就是指向这个值的名字 1.2命名规则 1. 由 ...

  7. 树莓派(Debian)系统开启iptables的raw表实现日志输出

    说明:可能Debian默认不开启iptables的raw表,所以无法通过其实现日志跟踪. 日志跟踪:http://www.cnblogs.com/EasonJim/p/8413563.html 解决方 ...

  8. AX5511 Boost Converter

    GENERAL DESCRIPTION    The AX5511 is a current mode step up converter intended for small, low powera ...

  9. SQL SERVER 函数与SQL语法

    http://www.cnblogs.com/hoojo/archive/2011/07/16/2108129.html

  10. RapidSVN的使用

    RapidSVN是一个可视化 SVN 客户端,运行速度快,简单易用,现在很多已经做成做成便携版,安装都不用.小乌龟那个SVN感觉太复杂了...不妨试下这个. 1.下载安装 2.运行RapidSVNPo ...