没有,你只能利用操作系统的命令。 在MYSQL中没有此功能 [coolwind@localhost ~]$ mysql -uroot -S /usr/local/mysql/data/3307/mysql.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 72144 Server version: 5.1.40-community-log MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select version(); +----------------------+ | version() | +----------------------+ | 5.1.40-community-log | +----------------------+ 1 row in set (0.00 sec)