I’m a freser to ruby and i’m trying to workout certain database related
examples using dbi. But when i run the file i receive an error :
Unable to load driver ‘Mysql’ (underlying error: uninitialized constant
synchronize' from /home/arunkumar/.gem/ruby/1.8/gems/dbi-0.4.1/lib/dbi.rb:236:inload_driver’
_get_full_driver' from /home/arunkumar/.gem/ruby/1.8/gems/dbi-0.4.1/lib/dbi.rb:139:inconnect’
The error occurs from the line given to connect the mysql database. ie.
dbh = DBI.connect(“DBI:MySql:Project:localhost”,
Can anybody please help me to solve this problem.
Arun K. .C.M.