Puppet 甚至无法访问 MySQL 元信息

Puppet 甚至无法访问 MySQL 元信息

运行时:

$ sudo puppetd --verbose --no-daemonize -o

我收到如下错误:

err: //webserver/Mysql::Rights[Setup SW Database]/Mysql_user[scraperwiki@localhost]: Failed to retrieve current state of resource: Execution of '/usr/bin/mysql mysql -NBe select '1' from user where CONCAT(user, '@', host) = 'scraperwiki@localhost'' returned 1: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
notice: //webserver/Mysql::Rights[Setup SW Database]/Mysql_grant[scraperwiki@localhost/scraperwiki_live]: Dependency mysql_user[scraperwiki@localhost] has 1 failures

和:

err: //webserver/Mysql::Database[SW DB]/Mysql_database[scraperwiki_live]: Failed to retrieve current state of resource: Execution of '/usr/bin/mysql mysql -NBe show databases' returned 1: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

当我以 root 身份登录时,为什么无法连接到 MySQL 甚至无法列出数据库?

答案1

该问题目前被追踪到http://projects.puppetlabs.com/issues/16262

它甚至在puppetlabs-mysql模块中有一个适当的解决方法 - 但据我所知,它尚未发布。

相关内容