Read mysql command output : HTTP Reponse « Network « Ruby
- Ruby
- Network
- HTTP Reponse
Read mysql command output
require 'socket'
client = TCPSocket.open('127.0.0.1', 'finger')
client.send("mysql\n", 0) # 0 means standard packet
puts client.readlines
client.close
Related examples in the same category