hi all,
i am not able to connect to Mysql database using ruby on rails framework.
here is my running code.
dbh = DBI.connect("DBI:Mysql:testdb:localhost", "root", "root") # get server version string and display it row = dbh.select_one("SELECT VERSION()") puts "Server version: " + row[0]
i have installed gem for dbi,mysql,dbd-mysql
still i am getting following error: Could not load driver (uninitialized constant DBI::TypeUtil)..
please help, thanks and regards, Mahesh