Before the new db tasks I used as anyone a custom task. It used
IO.popen(“mysql -u root -p”, ‘w’) to pipe SQL based on
ActiveRecord::Base.configurations[RAILS_ENV]. The new db tasks assume
the configured user can create and drop databases. Do you people
actually grant those privileges?