bug | Couldn‘t start as daemon, error: ‘Failed to lock pidfile ‘/var/lib/mysql-cluster/ndb_1.pid‘

mysql-cluster配置时,启动管理器:

sudo ndb_mgmd -f /var/lib/mysql-cluster/config.ini --initial

遇到以下错误:
Couldn’t start as daemon, error: ‘Failed to lock pidfile ‘/var/lib/mysql-cluster/ndb_1.pid’, already locked by pid=1195, errno: 11’
bug | Couldn‘t start as daemon, error: ‘Failed to lock pidfile ‘/var/lib/mysql-cluster/ndb_1.pid‘_第1张图片
解决办法:
进入myaql-cluster文件夹查看文件

cd /var/lib/mysql-cluster
ls

发现有ndb_1.pid文件
在这里插入图片描述

删除该文件即可:

 sudo rm -rf ndb_1.pid

重新启动管理器:

sudo ndb_mgmd -f /var/lib/mysql-cluster/config.ini --initial

你可能感兴趣的:(mysql,ubuntu,linux)