[Haskell-beginners] Example Connection String to MySQL via ODBC?

Christopher Howard christopher.howard at frigidcode.com
Sat May 14 07:04:10 CEST 2011


Hi. I'm trying to connect for the first time to a 5.1 MySQL database
with HDBC via the ODBC driver. Would someone be kind enough to show me
an example connect string to pass to connectODBC? I've tried to put
together what I can from the "example" at Hackage and old posts I found
on the Web, but all I ever get is

*** Exception: <<Database.HDBC.SqlError>>

If someone could give me a boilerplate example with the standard
elements (host, database, user, password) that would probably help.
Thank you.

-- 
frigidcode.com
theologia.indicium.us



More information about the Beginners mailing list