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>

最新文章

  1. Oracle 作业设置完不执行解决
  2. C++中的结构体
  3. document.write 动态加载 script 脚本时,特殊异常
  4. 最新Burpsuite Pro v1.7.03 介绍和破解版下载
  5. javascript 注意事项
  6. 【JPA】表达条件查询的关键字
  7. Winform使用的一些常识
  8. 常用的一些markdown格式
  9. Django框架之第二篇
  10. 常用的Lambda表达式
  11. ASCLL码中的一些小知识
  12. 在jsp页面上打印错误堆栈
  13. Sublime Text 无法使用Package Control或插件安装失败的解决方法
  14. Node.js的基础知识(一)
  15. SCU 4445 Right turn
  16. 最封闭的开源系统,话说Android的八宗罪
  17. LWIP轻量级TCPIP协议栈的移植
  18. 百度地图API拾取坐标网址
  19. c语言中函数参数入栈的顺序是什么?为什么
  20. Java中高级面试题整理

热门文章

  1. 初涉springboot(二)
  2. bzoj 3073: [Pa2011]Journeys -- 线段树优化最短路
  3. bzoj 3389: [Usaco2004 Dec]Cleaning Shifts安排值班 -- 贪心
  4. Centos7 下mysql大小写敏感问题
  5. iOS自定义全屏返回与tableView左划删除手势冲突解决
  6. 在雇员表中查找第二高的工资SQL语句助记
  7. @ResponseBody,@RequestBody,@PathVariable
  8. 跨域策略文件crossdomain.xml
  9. PHP:面向对象学习笔记,重点模拟Mixin(掺入)
  10. Appium+python自动化14-查看webview上元素(DevTools)