This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-02-24 11:07:47 +00:00
|
|
|
#encoding: utf-8
|
|
|
|
|
|
|
|
require 'mysql2'
|
|
|
|
|
|
|
|
|
|
|
|
mid_host = {
|
2012-03-20 06:38:01 +00:00
|
|
|
:host => 'mruling.nccu.edu.tw', #mruling.nccu.edu.tw or 127.0.0.1
|
|
|
|
:port => 3306, #3306 or 8005
|
2012-02-24 11:07:47 +00:00
|
|
|
:username => "root",
|
|
|
|
:password => "a3G6yWd9",
|
|
|
|
:database => "RSS23_NCCU_MIDDLE",
|
|
|
|
:encoding => "UTF8"
|
|
|
|
}
|
2012-05-09 05:58:19 +00:00
|
|
|
MID_CLIENT = Mysql2::Client.new(mid_host)
|