有一个正在运行的 github 线程(它似乎已关闭并且已经完成了一堆提交/合并)。
尽管 VirtualBox 和 Vagrant 还不到 2 周:*编辑:我仍然看到与 /root/.my.cnf 相关的错误。
我将 mysql 和 stdlib 模块更新为 master。
# MySQL Server
class { 'mysql::server':
config_hash => {
'root_password' => 'foobah'
}
}
#class { 'mysql::server': } have tried it like this to try not having a root password. But it still attempted to use the /root/.my.cnf file.
mysql::db { 'data_base':
user => 'user',
password => 'pass',
host => 'localhost',
grant => ['all'],
charset => 'utf8',
}
每当它以root身份执行创建数据库等命令时,我都会得到:
err: /Stage[main]//Mysql::Db[data_base]/Database[data_base]/ensure: change from absent to present failed: Execution of '/usr/bin/mysql --defaults-file=/root/.my.cnf -NBe create database `data_base` character set utf8' returned 1: Could not open required defaults file: /root/.my.cnf
Fatal error in defaults handling. Program aborted