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

Christopher Howard christopher.howard at frigidcode.com
Sat May 14 07:17:47 CEST 2011


On 05/13/2011 09:04 PM, Christopher Howard wrote:
> 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.
> 

Heh, heh... oops... I see now I don't have the ODBC MySQL driver
installed on my system. That's probably important.

-- 
frigidcode.com
theologia.indicium.us



More information about the Beginners mailing list