based on the below script - My mysql instance has a password of foo already. I want this script to use my root password to create a new db and assign a user with privileges to that db.
What is wrong with this code? Is this trying to SET the root pass vs just using it to execute the commands?
the way this is it throws the error "Access denied for user 'root'@'localhost' (using password: NO)"
any help greatly appreciated
class {'mysql::server':
root_password => 'foo',
}
#creates a sample db with user with correct permissions -spade
mysql::db { $dbName:
user => $dbUser,
password => $dbPass,
host => 'localhost',
grant => ['SELECT', 'INSERT', 'UPDATE', 'CREATE', 'DELETE'],
}