How to run a remote mysql command

If you have a mysql client install you can run commands from the command line on a remote mysql server running the following command.

Remember you can use single quotes safely between the double quotes.

mysql -uusername -ppassword -h192.168.1.1 dbname -e "select * from dual ;" ;

Comments

Popular posts from this blog

Vim vi how to reload a file your editing