#geminstallmysql或者geminstallruby-mysql或geminsdbd-mysql,拷贝mysql安装目录中的libmySQL.dll到ruby的lib目录#mysql连接数据库#~require'mysql'#~db=Mysql.connect("192.168.1.40","root","123456","op",)#~query=db.query('select*fromt_serverinfo')#~query.each_hashdo|h|#~putsh...
查看全文