drop and re-create MySQL database using a ruby script -


is there way drop , re-create database within ruby script? gem (dbi, mysql2) should use?

with dbi have problem cannot connect mysql server when database has not yet been created.

thank you

mysql2 work, have @ rake tasks come rails db:create etc

edit :

rails rake tasks create / drop dbs

https://github.com/rails/rails/blob/master/activerecord/lib/active_record/railties/databases.rake


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -