Wednesday, October 5, 2016

Running a shell command while in the mysql prompt

Most applications in linux allow you to run a linux command while the application is running. MySQL is no exception. To run a linux command you just need to prefix it with "\! "


Usage: \! shell-command

mysql> \! hostname

vmware.db1_0

No comments:

Post a Comment