Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Guys,

I'm trying to have an desktop app that will connect my website MySQL database. I have done some research, and I have found the use of SSH.

My problem is I don't know how to integrate it to my desktop app.

Please help.

Thanks in advance...
Posted
Updated 4-Feb-11 5:37am
v2

If you have a mysql database on a server somewhere all you need to do is get the MySql.Data.dll and MySql.Web.dll and place them in your bin directory, add a reference to them, add the Import statements at the top, and get the connection string for the database. If it is a client side app you can create a app.config file and store your connections in it and use ConfigurationManager to get the connection you need when creating a new connection.

If this doesn't answer your question please let me know. Also, this is based on the assumption that you have a mysql database running on a server somewhere. If I'm mistaken or have misinterpreted your question please let me know.
 
Share this answer
 
Comments
jleonorlane 5-Feb-11 11:58am    
Thanks..so where can i get the MySql.Web.dll?and does my connection string change?or just the same?
GregWyatt 7-Feb-11 8:14am    
Your response to the below answer indicated you used the .net connector. When you installed that it placed the MySql.Web.dll in your Global Assembly Cache, navigate there and copy it. As for your connection string I would have to see an example of what you are doing to be able to answer you. Also, the mysql website has examples of connection strings.
Why you are going to connect your mysql database using SSH, where the database resides,
no need to connect using SSH to your mysql(either it is on LINUX,Windows). you can connect with
mysql odbc connecter.
 
Share this answer
 
Comments
jleonorlane 5-Feb-11 12:00pm    
i want to INSERT some data on my website MySQL database. I have already done using the MySQL OBDC Connector and Connector/NET...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900