Run Shell Commands from the MySQL Client

Written by James McDonald

May 13, 2021

Saw a post that says you need to put a ! to run a shell command in the MySQL but found in my mysql client that it was \! <shell-command-here>

To drop to a shell. use \! bash

To return to the the mysql> prompt type in exit

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…