我最终在两台服务器上安装了mysql集群并让它们运行:
[ndbd(NDB)] 2 node(s)
id=2 @xx.xx.xx.xxx (mysql-5.6.25 ndb-7.4.7, Nodegroup: 0, *)
id=3 @yy.yyy.yyy.yyy (mysql-5.6.25 ndb-7.4.7, Nodegroup: 0)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @xx.xx.xx.xxx (mysql-5.6.25 ndb-7.4.7)
[mysqld(API)] 2 node(s)
id=4 @xx.xx.xx.xx (mysql-5.6.25 ndb-7.4.7)
id=5 @yy.yyy.yyy.yyy (mysql-5.6.25 ndb-7.4.7)
但是当我运行mysql时,我只收到了这条消息:
The program "mysql" can be found in the following packages:
* mysql-client-core-5.5
* mariadb-client-core-5.5
* mysql-client-core-5.6
* percona-xtradb-cluster-client-5.5
Try: apt-get install <selected package>
我无法安装这些软件包,因为它们会与群集冲突。
my.conf
[mysqld]
# Options for mysqld process:
ndbcluster # run NDB storage engine
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
socket= /var/run/mysqld/mysqld.sock
[mysql_cluster]
# Options for MySQL Cluster processes:
ndb-connectstring=46.21.99.140 # location of management server
我的群集安装在/ usr / local / mysql /
下我的错误文件没有显示任何错误 USR /本地/ MySQL的/数据/ mycomputer.err
Server1在此设置下正常运行,但是没有启动的是server2 mysql。
有谁知道为什么我收到此消息以及如何解决此问题?
答案 0 :(得分:0)
The program "mysql" can be found in the following packages:
* mysql-client-core-5.5
* mariadb-client-core-5.5
* mysql-client-core-5.6
* percona-xtradb-cluster-client-5.5
Try: apt-get install <selected package>
我无法安装这些软件包,因为它们会与之发生冲突 群集。
我确实修复了冲突并安装了mysql-client-core-5.6,一切都很棒!