Solved

Linking MySQL datasource to Visual Studio 2012

Posted on 2013-01-21
11
2,119 Views
Last Modified: 2013-01-29
Hi All,

A simple question, but I can't seem to find anything useful on google.

I am struggling to create a connection to a MySQL db using visual studio web express 2012.


I found one answer on yahoo saying it was not to be added until 5.5.6.

Now I'm running MySQL server 5.5

and have the Net connector 6.1.6 installed on my machine.

I have added the reference to the MySQL.Data to the site, but when I go to

Database Explorer -> New Connection -> Select other data source and look at the dropdown MySQL is not appearing?

ANything I am doing wrong here?
0
Comment
Question by:flynny
  • 7
  • 4
11 Comments
 
LVL 18

Expert Comment

by:dj_alik
ID: 38800884
Can you try to  update your .net connector
to  Connector/Net 6.6.4:
http://dev.mysql.com/downloads/connector/net/

Connector/Net 6.6.4 must be work on 32 bit... machine
0
 

Author Comment

by:flynny
ID: 38801050
Ok,

I have removed the old version and installed the new 6.6.4 version onto my machine.

Now the only issue is I am running on a 64bit machine.

Will this be anissue?

The item in the dropdown is still not appearing. Do I need to refresh in visual studio?
0
 
LVL 18

Expert Comment

by:dj_alik
ID: 38801082
0
 

Author Comment

by:flynny
ID: 38812072
Hi,

Many thanks for the reply.

I have done the following but still it is not appearing in the dropdown selector?

1. Rebooted Machine
2. Uninstalled the MySQL 6.6.4 Net Driver
3. Reinstalled the driver.
4. Launched Visual Studio 2012 Express and tried to connect to the db.

I have attached a screenshot of the dropdown.

Is there anything else I can try please?
screenshot.jpg
0
 
LVL 18

Expert Comment

by:dj_alik
ID: 38813001
i think the problem exists because of 64 bit
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:flynny
ID: 38814216
OK, so what about using the older 64bit driver?

This did not work either
0
 
LVL 18

Expert Comment

by:dj_alik
ID: 38814456
sorry
see the answer
mySQL DataSource on Visual Studio 2012
We'll be adding support for VS 2012 in Connector/NET 6.5.5 and later 6.6.x version
http://stackoverflow.com/questions/12684047/mysql-datasource-on-visual-studio-2012
0
 

Author Comment

by:flynny
ID: 38816026
Ok I saw this but assumed because we are now on 6.6.4 it should be added?
0
 

Author Comment

by:flynny
ID: 38816032
this link suggests it has compatability

http://forums.mysql.com/read.php?47,571576,571576
0
 

Accepted Solution

by:
flynny earned 0 total points
ID: 38816182
Hi,

I have managed to solve the issue.

Downgrading to the 6.5.5 driver allows the connection to appear.
0
 

Author Closing Comment

by:flynny
ID: 38830351
I have managed to correct the issue myself
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now