Chef-无法设置Mysql错误:访问被拒绝用户'root'@'localhost'

时间:2014-08-29 20:58:20

标签: mysql chef

我一直在努力解决这个问题已有一段时间了。不能规定流浪汉。问题似乎在于我使用mysql的方式。我正在使用社区mysql cookbook。

错误:

==> default: Error executing action `run` on resource 'execute[install-grants]'
==> default: ================================================================================
==> default:
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of /usr/bin/mysql -u root -prootpass < /etc/mysql_grants.sql ----
==> default: STDOUT:
==> default: STDERR: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
==> default: ---- End output of /usr/bin/mysql -u root -prootpass < /etc/mysql_grants.sql ----
==> default: Ran /usr/bin/mysql -u root -prootpass < /etc/mysql_grants.sql returned 1
==> default:

0 个答案:

没有答案