What command in MySQL is like the command "host" in oracle sqlplus

0

Oracle sqlplus allows you to drop down to a system command line shell which lets you run operating system command like ls, cd, cp, etc.

Here are examples SQL*Plus_FAQ, docs.oracle.com

Is there some thing that does the same in mysql.

nelaaro

Posted 2012-05-22T13:37:49.740

Reputation: 9 321

Answers

2

http://www.electrictoolbox.com/shell-commands-mysql-command-line-client/

From the mysql help

mysql> ?
...
system (\!) Execute a system shell command.

mysql> \! bash
mysql> system bash
mysql> \! ls
mysql> system ls

nelaaro

Posted 2012-05-22T13:37:49.740

Reputation: 9 321