In linux I can use ! to start a shell command: mysql >\\! ping localhost Is there a way to get the output of shell in MySQL?开发者_如何学CWhile in the mysql prompt, no. You can however pipe the