Using MySql with Visual Web Developer Express
As a reforming PHP MySql developer, one thing i really love in LAMP development is the simplicity and no fuss approach. Mysql is small (22mb download) fast and quite capable of most website datastorage. Also the fact that it doesnt cost $5000.00 per processor… thats good too.
So it seems like a good choice to use the advantages of the .NET framework, with the power of MySql. Is this available for VWD Express users however?The answer is yes!
Due to restrictions on the pluginability (technically speaking) VWD Express cannot install the Native Mysql for .NET connectors (mysql conector .net) which would give the best performanc. If you use Visual Studio 2005 then this would be the best choice.
To use Mysql with Visual Web Developer 2005 install Mysql ODBC as follows:
1. Download the ODBC data drivers .
3. in your config.xml or connection .NET SqlDataSource Object use the mysql connection string found here
In your config.xml you will set up a connection similar to this:
<connectionstrings> <add name="ConnectionString" connectionString="Driver={MySQL ODBC 3.51 Driver}; Server=localhost; Database=test; User=root; Password=; Option=3;" providerName="System.Data.Odbc"> </add> </connectionstrings>
February 18th, 2009 at 2:55 am
Hey thanks!
This is exactly what I was looking for. However, I followed your instructions, and still, there is an error at the line:
Dim myConnection As MySqlConnection
saying: MySqlConnection is not defined.
I have altered the connection string, adding the password and removing the database line.
August 31st, 2009 at 2:25 am
How did it cost to start up this blog…I want to start my own.
December 25th, 2010 at 7:22 pm
Hey dude! Really loved that comment http://www.testthisblogtoseeifitworks.com/ . Keep me informed if you post any more.
May 16th, 2011 at 10:37 am
The subsequent time I read a weblog, I hope that it doesnt disappoint me as a lot as this one. I imply, I know it was my choice to learn, however I truly thought youd have one thing attention-grabbing to say. All I hear is a bunch of whining about one thing that you possibly can repair in case you werent too busy searching for attention.