Last active
December 15, 2015 21:59
-
-
Save sakama/5330085 to your computer and use it in GitHub Desktop.
MySQL Clusterインストール(SQLノード・データノード)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #依存関係のエラーが出る場合yum remove mysql-libs、yum remove mysql-server等する | |
| cd /usr/local/src | |
| rpm -ivh MySQL-Cluster-client-gpl-7.2.12-1.el6.x86_64.rpm | |
| rpm -ivh MySQL-Cluster-server-gpl-7.2.12-1.el6.x86_64.rpm | |
| rpm -ivh MySQL-Cluster-shared-compat-gpl-7.2.12-1.el6.x86_64.rpm | |
| rpm -ivh MySQL-Cluster-devel-gpl-7.2.12-1.el6.x86_64.rpm | |
| rpm -ivh MySQL-Cluster-shared-gpl-7.2.12-1.el6.x86_64.rpm | |
| rpm -ivh MySQL-Cluster-server-gpl-7.2.12-1.el6.x86_64.rpm | |
| service mysql start | |
| /usr/bin/mysql_secure_installation | |
| vi /etc/my.cnf | |
| [mysqld] | |
| ndbcluster | |
| ndb-connectstring = 192.168.1.1 | |
| log-error=/var/log/mysql/error.log | |
| [mysql_cluster] | |
| ndb-connectstring = 192.168.1.1 | |
| mkdir /var/log/mysql | |
| chown -R mysql:mysql /var/log/mysql | |
| mkdir -p /var/lib/mysql-cluster/data1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment