## 查询mysql 并且执行循环
```
#!/usr/bin/ruby -w
# -*- coding: UTF-8 -*-
require 'mysql2'
client= Mysql2::Client.new(
:host => "127.0.0.1",
:username => "root",
:password => "123456",
:database => 'abc',
:port => '3306'
)
puts client
results= client.query("SELECT * FROM xes_student_feed_test")
results.eachdo |x|
putsx
end
```