Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[root@datanode01 bin]# /usr/local/mysql/bin/mysqladmin -u root password 'root'/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failederror: 'Can't connect to local MySQL server th
·
[root@datanode01 bin]# /usr/local/mysql/bin/mysqladmin -u root password 'root'
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
解决:
ln -s /usr/local/mysql/mysql.sock /tmp/mysql.sock
更多推荐
已为社区贡献1条内容
所有评论(0)