I am trying to run queries against a mysql DB, for which I've been provided a uid & pwd, but for this I first have to login as:
Is there a way to access the DB directly from a *nix shell and automate the login/query execution process.
Code:
mysql -u xx -p
password: xxxx
use dbName;
query
Is there a way to access the DB directly from a *nix shell and automate the login/query execution process.