~/.my.cnf ?
On 11-10-11 10:18 AM, adam wrote:
Stupid question here: how does this line of code get the mysql root
password?:
https://github.com/puppetlabs/puppetlabs-mysql/blob/master/lib/puppet/provider/database/mysql.rb#L12
I am asking because when I run the set of commands to make a mysql
server and db locally, everything is fine. When I run on my ec2
instance, I get:
debug: Puppet::Type::Database::ProviderMysql: Executing '/usr/bin/
mysql -NBe CREATE DATABASE testdb CHARACTER SET utf8'
err: /Stage[main]/Testdb::Dev::Db/Mysql::Db[testdb]/Database[testdb]/
ensure: change from absent to present failed: Execution of '/usr/bin/
mysql -NBe CREATE DATABASE testdb CHARACTER SET utf8' returned 1:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
password: NO)
I figured I would just debug the code in the module, but it's pretty
unclear to me how the mysql command is supposed to get the root
password.
Thanks!
Adam
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.