环境:
Vmware workstation6.5
操作系统:Centos 5.2 (2台)
第一台:
主机名:mysql1 IP: 192.168.1.30
第二台
主机名:mysql2 IP: 192.168.1.32
软件下载安装
下载软件地址:http://dev.mysql.com/downloads/select.php?id=14
选择操作系统是RedHat Enterprise 版本
如下:
MySQL-Cluster-gpl-client-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-debuginfo-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-devel-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-embedded-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-extra-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-management-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-server-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-shared-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-storage-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-test-7.0.8a-0.rhel5.i386.rpm
MySQL-Cluster-gpl-tools-7.0.8a-0.rhel5.i386.rpm
将软件包上传到服务器
Rpm –ivh *.rpm
具体配置 在两台机器上做(同样的配置文件)
1、创建配置文件目录:( mysql1 mysql2)
#mkdir /var/lib/mysql-cluster –p