Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Integrate Visual Web Developer 2010 Express with MySql

Posted on 2012-04-12
12
Medium Priority
?
1,735 Views
Last Modified: 2012-04-23
Hello Experts!

Do any of you know how to integrate MySql to Visual Web Developer 2010 Express. According to MySql Documentation (http://dev.mysql.com/doc/refman/5.1/en/connector-net-visual-studio-making-a-connection.html) it is posible to crate a new MySql Connection from its Add Connection wizard, like this:

Choose Data Source window
However, I'm not getting the MySQL Database option on my list.

Are there any steps I might be missing?
0
Comment
Question by:Dermofit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
12 Comments
 
LVL 13

Expert Comment

by:Philip Pinnell
ID: 37836555
I would suspect this is the step you are missing

"Once the connector is installed, "

or the connector has not installed correctly
0
 
LVL 13

Expert Comment

by:Philip Pinnell
ID: 37836556
0
 

Author Comment

by:Dermofit
ID: 37836739
Thanks Andy.

I forgot to mention. I've already run the following installers, making sure the "Visual Studio Integration" option was checked:

mysql-connector-odbc-5.1.10-winx64.msi
mysql-connector-net-6.5.4.msi

So obviously, it didn't get installed correctly. Anything like that has happend to you?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Expert Comment

by:Philip Pinnell
ID: 37836783
No, afraid not. The next suggestion is shut everthing down, reboot etc bu you may already have done that.

I also assume that your Visual studio was installed before the connector.

I am using a full version of 2008. I don't know if this might be a limitation of the Express edition?
0
 

Author Comment

by:Dermofit
ID: 37836865
I'm starting to think that might be true, and MySql can't be integrated to VWD IDE.

If that is the case, Is there another way of connecting to MySql?
0
 
LVL 13

Expert Comment

by:Philip Pinnell
ID: 37836895
You can use odbc I think there was a download for a MySQL odbc. install that and then set up an odbc connection
0
 
LVL 13

Expert Comment

by:Philip Pinnell
ID: 37836917
No I am pretty sure you can do it. Just give a while to dig out an example
0
 

Author Comment

by:Dermofit
ID: 37836939
Do you know if I can access .net Entity Fremework using and ODBC connection?
0
 
LVL 13

Expert Comment

by:Philip Pinnell
ID: 37836943
Don't know I'm afraid
0
 
LVL 13

Accepted Solution

by:
Philip Pinnell earned 2000 total points
ID: 37837587
Yeah it looks like you can't connect the way you intended.

Have a look hear http://dev.mysql.com/doc/refman/5.1/en/connector-net.html

This is what I have used in the past install make a reference to the mysql.data.dll  and  add using MySql.Data.MySqlClient; then

some code like
      MySqlConnection conn;

      conn = new MySqlConnection(connectionString);

			try
			{

   			        string sql = "insert into userlogins " ;
				sql += "(logindate,username,password,success) ";
				sql += "values( '" ;
				sql += DateTime.Now.ToString("yyyy-MM-dd");
				sql += "', '" + this.UserName.Text + "', '" + this.Password.Text ;
				sql += "','" + intSuccess + "')" ;

                                conn.Open();

                                MySqlCommand cmd = new MySqlCommand(sql, conn);
                                MySqlDataAdapter da = new MySqlDataAdapter(cmd);
				cmd.CommandType = CommandType.Text;
				cmd.ExecuteNonQuery();
                        }
...

Open in new window

0
 

Author Closing Comment

by:Dermofit
ID: 37879985
That can work too... Thank you Andy!
0
 
LVL 13

Expert Comment

by:Philip Pinnell
ID: 37880139
Thanks
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question