On a second run of puppet after adding the mysql::db is not possible to create the db getting the error below
class { 'mysql::server':
config_hash => {root_password => 'changeme',}
}
mysql::db { 'mydatabase':
user => 'myapp1',
password => 'supersecret',
host => '
webapp1.puppetlabs.com',
}
Error: Execution of '/usr/bin/mysql -NBe create database `mydatabase` character set utf8' returned 1: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Executing the command from shell (after replacing the quotes ` with ' ) and including all the command in double quote the db gets created.
It seems that the puppet process cannot find the password that is present in the /root/.my.conf
For sure there is some problem in my installation any help?
Thanks
Luca