2 Replies - 674 Views - Last Post: 06 October 2012 - 02:43 AM Rate Topic: -----

#1 DevanF  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 22-August 12

Reading And Writing To A MySQL Table?

Posted 03 October 2012 - 03:04 PM

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.

Is This A Good Question/Topic? 0
  • +

Replies To: Reading And Writing To A MySQL Table?

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

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.
Was This Post Helpful? 0
  • +
  • -

#3 jhouns  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 25
  • View blog
  • Posts: 100
  • Joined: 21-December 09

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1