Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to connect F# to MySQL database?

Tags:

mysql

f#

Hello I am a newbie using F# and MySQL. I have a project that needs to retrive data from mySQL database.So far, i installed wamp, mySQL, mySQL connector, php. I don't know how to contribute F# and mySQL. Can you please give me a piece of information about the steps .

Thanks,

like image 482
opeliaa Avatar asked Feb 04 '11 19:02

opeliaa


People also ask

How does an F connector work?

A two-wire (signal and ground) coaxial cable connector used to connect antennas and set-top boxes to TVs, VCRs and DVDs. F connector cables typically carry analog NTSC TV signals, and the plug's socket is easily identified by its threads. Plugs come threaded and unthreaded, both of which fit the threaded socket.


1 Answers

You need a MySQL connector for .NET, this one, for example.

let connectionStr = "Data Source=localhost; Port=3306; User ID=root; Password=q1w2e3;"
let connection : IDbConnection = upcast new MySql.Data.MySqlClient.MySqlConnection(connectionStr)

See System.Data documentation for detailed information.

Hope this is helpful.

like image 76
khachik Avatar answered Nov 14 '22 22:11

khachik