木偶甚至在root时也不能访问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) 

为什么连接到MySQL甚至无法列出数据库,当我是根?

该问题目前在http://projects.puppetlabs.com/issues/16262进行跟踪

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