I am trying to make a login for my program that will connect to the same MySQL table that my website uses. The table itself only consists of three columns ("id", "username" and "passcode"). I want the user to also be able to register an account from the program itself as well as the website so it will need to be able to read from and write to the MySQL table. I have searched Google and wasn't able to find anything that worked for me so I have come here for help.
Reading And Writing To A MySQL Table?
Page 1 of 12 Replies - 281 Views - Last Post: 06 October 2012 - 02:43 AM
Replies To: Reading And Writing To A MySQL Table?
#2
Re: Reading And Writing To A MySQL Table?
Posted 03 October 2012 - 04:18 PM
I can say you're chances of getting a solution here are great but that you will have to show some effort on what you have tried.
There are a couple of tutorials that should help, although they are based around SQLServer and OleDb, the concepts that they show are the same for mysql.
Take a look at those, make an attempt and post where you're stuck.
There are a couple of tutorials that should help, although they are based around SQLServer and OleDb, the concepts that they show are the same for mysql.
Take a look at those, make an attempt and post where you're stuck.
#3
Re: Reading And Writing To A MySQL Table?
Posted 06 October 2012 - 02:43 AM
I do this frequently at work and in multiple projects.
Firstly you want to download the MySQL .NET connector/MySQL .NET DLL file (from their website). Then add a reference to it and use the MySQLConnection class. If you provide a sample of your code I'd be happy to look for you.
Firstly you want to download the MySQL .NET connector/MySQL .NET DLL file (from their website). Then add a reference to it and use the MySQLConnection class. If you provide a sample of your code I'd be happy to look for you.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|