Hello Sergiu:
The Puppet Labs MySQL Module creates the sql statements and runs them
against the mysql server, but does not maintain them persistently. So to
remove a database run the following
mysql -u <admin user> -p -h <hostname/ip> -e "DROP DATABASE <DB Name>"
Thanks
Joey
On Thursday, December 10, 2015 at 9:20:46 AM UTC-5, Sergiu Cornea wrote:
>
> Hello guys,
>
> I am not sure if this question has been asked, however I wasn't able to
> find something about it on Google, therefore, I am going to ask it here:
>
> So, I have created 3 DBs using PuppetLabs MYSQL module, however, I don't
> know how to create the code to delete a database.
>
> I have tried mysql::db { 'test':
> ensure => 'absent',
> }
>
> but unfortunately it didn't worked, I've asked on the IRC channel and
> someone told me to use the 'destroy' function but I have no clue on how to
> use it, therefore, could someone point me in the right direction please?
>
> Thank you,
>
> Kind regards,
> Sergiu
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/f5f18a03-cfd6-4057-b661-bec3ef1e6963%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.