Method: MySQL#initialize
- Defined in:
-
lib/DrbDB/MyMultiSQL/jdbc.rb,
lib/DrbDB/MyMultiSQL/mysql-ruby.rb
Returns a new instance of MySQL.
16 17 18 19 20 21 22 |
# File 'lib/DrbDB/MyMultiSQL/jdbc.rb', line 16 def initialize(host,user,password,dbase) @host=host @user=user @password=password @dbase=dbase @conn = Jdbc::DriverManager.getConnection("jdbc:mysql://#{@host}/#{@dbase}?user=#{@user}&password=#{@password}&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false"); end |