Back
I'm looking to be able to run a single query on a remote server in a scripted task.
For example, intuitively, I would imagine it would go something like:
mysql -uroot -p -hslavedb.mydomain.com mydb_production "select * from users;"
Try the below query:
mysql -u <user> -p -e "select * from schema.table"
31k questions
32.8k answers
501 comments
693 users