Ruby 读取 mysql 命令输出 2015/07/10 37180 清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>> require 'socket' client = TCPSocket.open('127.0.0.1', 'finger') client.send("mysql\n", 0) # 0 means standard packet puts client.readlines client.close