AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 426021
Accepted
quanta
quanta
Asked: 2012-09-11 08:07:13 +0800 CST2012-09-11 08:07:13 +0800 CST 2012-09-11 08:07:13 +0800 CST

如何在 x86 服务器上安装 Percona XtraDB Cluster?

  • 772

我打算从 MySQL 复制迁移到Percona XtraDB Cluster。我面临的问题是一个节点在 x86 上运行,由于解决问题,我无法Percona-XtraDB-Cluster-server从Percona存储库安装:

...
--> Finished Dependency Resolution
1:Percona-XtraDB-Cluster-server-5.5.27-23.6.356.rhel5.i686 from percona has depsolving problems
  --> Missing Dependency: Percona-XtraDB-Cluster-galera is needed by package 1:Percona-XtraDB-Cluster-server-5.5.27-23.6.356.rhel5.i686 (percona)
Error: Missing Dependency: Percona-XtraDB-Cluster-galera is needed by package 1:Percona-XtraDB-Cluster-server-5.5.27-23.6.356.rhel5.i686 (percona)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

如您所见,回购Percona-XtraDB-Cluster-galera中不存在。

我该如何解决这个问题?

mysql
  • 1 1 个回答
  • 930 Views

1 个回答

  • Voted
  1. Best Answer
    quanta
    2012-09-11T08:21:34+08:002012-09-11T08:21:34+08:00

    不知道为什么Percona-XtraDB-Cluster-galeraPercona 回购中缺少。但您可以从源代码编译。

    首先,下载并安装Galera wsrep provider:

    Name        : galera                       Relocations: (not relocatable)
    Version     : 23.2.1                            Vendor: Codership Oy
    Release     : 1.rhel5                       Build Date: Sat 19 May 2012 04:16:24 AM ICT
    Install Date: Mon 10 Sep 2012 05:22:01 PM ICT      Build Host: centos5_32builder.localdomain
    Group       : System Environment/Libraries   Source RPM: galera-23.2.1-1.rhel5.src.rpm
    Size        : 22430313                         License: GPLv3
    Signature   : (none)
    Packager    : Codership Oy
    URL         : http://www.codership.com/
    Summary     : Galera: a synchronous multi-master wsrep provider (replication engine)
    Description :
    Galera is a fast synchronous multimaster wsrep provider (replication engine)
    for transactional databases and similar applications. For more information
    about wsrep API see http://launchpad.net/wsrep. For a description of Galera
    replication engine see http://www.codership.com.
    

    其次,下载 Percona-XtraDB-Cluster 的源代码并按照本指南进行安装。请注意,由于您运行的是 x86,因此通过运行以下命令来构建二进制文件:

    # cd Percona-XtraDB-Cluster-5.5.27
    # BUILD/compile-pentium-wsrep
    # make install
    

    第三,将 更改/etc/my.cnf为如下内容:

    [mysqld]
    # Percona XtraDB Cluster
    binlog_format=ROW
    
    wsrep_provider=/usr/lib/galera/libgalera_smm.so
    
    wsrep_slave_threads=2
    wsrep_cluster_name=trimethylxanthine
    wsrep_sst_method=rsync
    wsrep_node_name=node2
    
    innodb_locks_unsafe_for_binlog=1
    innodb_autoinc_lock_mode=2
    
    
    [mysqld_safe]
    wsrep_urls=gcomm://192.168.1.100:4567, \
               gcomm://192.168.1.200:4567, \
               gcomm://192.168.1.300:4567, \
               gcomm://
    

    不要忘记调整 init 脚本/etc/init.d/mysql以指向相应的 MySQL 二进制文件:

    if test -z "$basedir"
    then
      basedir=/usr
      #bindir=/usr/bin
      bindir=/usr/local/mysql/bin
      if test -z "$datadir"
      then
        datadir=/var/lib/mysql
      fi
      sbindir=/usr/sbin
      libexecdir=/usr/sbin
    else
    ...
    
    • 2

相关问题

  • 开源与专有关系 db mgt 系统的优缺点是什么?

  • 在 solaris 10 上为 mysql 设置 max_allowed_pa​​cket

  • 如何移动 MySQL 的数据目录?

  • 通过 VPN 连接什么是远程服务器 IP?

  • mysql崩溃

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve