I'd like to change which database the Mysql2::Client is using (e.g. the same as typing "use X" in the mysql command-line) without having to establish a new connection to the DB server.
Is this possible? How?
Use select_db
db = Mysql2::Client.new
db.select_db('test')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With