配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决

在执行 /etc/init.d/ndbd --initial出现下列错误

[[email protected] ~]# /etc/init.d/ndbd --initial
Unable to connect with connect string: nodeid=0,localhost:1186
Retrying every 5 seconds. Attempts left: 12 11 10 9 8 7 6 5 4 3 2 1, failed.

解决办法

1.查看/etc/my.cnf文件配置

[[email protected] ~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0n

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

2.修改该配置文件

[[email protected] ~]# vim /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
ndbcluster
ndb-connectstring=192.168.0.30

[MYSQL_CLUSTER]
ndb-connectstring=192.168.0.30

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

3.重新进行初始化

[[email protected] ~]# /etc/init.d/ndbd --initial
2014-05-09 21:45:17 [ndbd] INFO     -- Angel connected to ‘192.168.0.30:1186‘
2014-05-09 21:45:17 [ndbd] INFO     -- Angel allocated nodeid: 2

问题解决

配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决,布布扣,bubuko.com

时间: 2024-10-05 13:44:48

配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决的相关文章

Windows Server 2008R2配置MySQL Cluster

目录 配置环境 相关知识 配置过程 配置 ini参数解释 启动集群 检查配置 同步测试 故障测试 写在之后 配置环境 VMware:(版本10.0.01) 操作系统:Windows Server 2008 R2 Enterprise VM1:192.168.220.103 管理节点(MGM),数据节点(NDBD1),SQL节点(SQL1) VM2:192.168.220.104 数据节点(NDBD2),SQL节点(SQL2) MySQL Cluster版本:7.3.7 (MSI Installe

配置mysql cluster

1.从mysql 5.1 以后 mysql安装包里就不包含mysql cluster ,而是单独作为一个产品发布,目前mysql网站上最新的版本是mysql cluster 7.2.7.  下载地址:http://www.mysql.com/downloads/cluster/#downloads2.建立有5个节点的MySQL CLuster体系 ( OS :   REDHAT 6.1 )  管理节点(MGM)                192.168.251.141  SQL节点1(SQL

创建 cachingConfiguration 的配置节处理程序时出错: 未能加载文件或

C:\Users\xxx\Documents\IISExpress\config\applicationhost.config 将这里面带的项目路径替换成你当前路径 {"创建 cachingConfiguration 的配置节处理程序时出错: 未能加载文件或程序集"Microsoft.Practices.EnterpriseLibrary.Caching, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e

安装mysql后连接出错(错误:Access denied for user 'root'@'localhost' (using password: YES)")的解决办法

前几天下载了mysql5.7正常安装后,用navicat for mysql连接时提示"Access denied for user 'root'@'localhost' (using password: YES)""错误信息,因为第一次安装时未添加用户,所以卸载一次又重新添加了用户和密码安装后打开依然报错,借鉴了网上的一些方法,然后用自己的方法实现了连接. 解决方法: 1.打开mysql Command Line Client,输入安装mysql时设置的密码,出现如下界面:

Windows Server 2008R2配置MySQL Cluster并将管理节点和数据节点配置成windows服务

说明:将mysql的管理节点和数据节点配置成windows服务是为了防止有人手误关闭管理节点或数据节点的dos命令窗口,管理节点或数据节点的命令窗口误关闭可能会造成mysql某台或某几台mysql不能被访问,注册成windows服务自动启动更安全可靠. 目录 操作系统:Windows Server 2008 R2 Enterprise VM1:192.168.220.103 管理节点(MGM), VM2:192.168.220.104数据节点(NDBD1),SQL节点(SQL1) VM3:192

Spring配置c3p0数据源时出错报:java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector

今天在使用Spring配置c3p0数据源时,使用的数据库是mysql,服务器是tomcat,运行时报了一个 java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector 网络上找了很久都没有解决,最后发现是因为:         C3P0 少了个 jar 包,mchange-commons-java-0.2.3.1.jar 因为c3p0.jar依赖另一个jar包,就是mchange-commons-java-0.2.3.1.jar.

docker配置仓储库时出错:无法安全地用该源进行更新,所以默认禁用该源

在Ubuntu上安装docker,配置仓储库时第一次使用了阿里去的镜像,如下 ? 1 sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" 结果出现了以下错误: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [email protected]:/etc/apt$ sudo add-a

安装macOS时遇到Unable to unmount volume for repair异常导致无法完成安装的解决办法

方法一: 使用终端命令行制作完macos安装U盘后,务必将.IAProductInfo文件放到U盘的根目录(非EFI分区的) sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Sierra --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction 方法二

Lvs+Keepalived+MySQL Cluster架设高可用负载均衡Mysql集群

------------------------------------- 一.前言 二.MySQL Cluster基本概念 三.环境 四.配置 1.LB-Master及LB-Backup配置 2.MGM配置 3.SQL节点(SQL1和SQL2)配置 4.数据节点(NDB1和NDB2)配置 五.查看状态 六.测试 ------------------------------------- 一.前言 MySQL Cluster 是MySQL适合于分布式计算环境的高实用.高冗余版本.它采用了NDB