Progress Programmer Progress Programmer - 1 year ago 90
SQL Question

Execute shell command from within MySQL client?

In oracle database, command "host" can be used to run bash command from database command window. Is there a equivalent command as "host" in mySql?

Answer Source

You can use the system command.

system command, \! command

Executes the given command using your default command interpreter.

The system command works only in Unix.


system ls -l