Logo

在线
客服

命令行执行MySQL SQL语句

  1. /usr/local/mysql/bin/mysql -uroot -p'mypass' -S/tmp/mysql.sock  -e "show processlist;"

执行结果:

+--------+------+-----------+------+---------+------+-------+------------------+
| Id     | User | Host      | db   | Command | Time | State | Info             |
+--------+------+-----------+------+---------+------+-------+------------------+
| 179830 | root | localhost | NULL | Query   |    0 | NULL  | show processlist |
+--------+------+-----------+------+---------+------+-------+------------------+

 

0

收藏

holy2009

777篇文章,264W+人气,6粉丝

Ctrl+Enter 发布

发布

取消

扫一扫,领取大礼包

0

分享
holy2009