Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. connect a mysql database to c# project

connect a mysql database to c# project

Scheduled Pinned Locked Moved C#
csharpdatabasemysqltutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chathu03j
    wrote on last edited by
    #1

    I'm quite new to c#. Can smbody pls tell me how to connect a mysql database to a c# project? Thanks

    S P 2 Replies Last reply
    0
    • C chathu03j

      I'm quite new to c#. Can smbody pls tell me how to connect a mysql database to a c# project? Thanks

      S Offline
      S Offline
      seee sharp
      wrote on last edited by
      #2

      You may like to have a look at this http://www.codeproject.com/cs/database/ConnectMySQL.asp[^]

      - ashish

      1 Reply Last reply
      0
      • C chathu03j

        I'm quite new to c#. Can smbody pls tell me how to connect a mysql database to a c# project? Thanks

        P Offline
        P Offline
        Polar22
        wrote on last edited by
        #3

        you need to install an ADO.NET driver for mysql, you can find one here: http://dev.mysql.com/downloads/connector/net/5.0.html[^] Once installed, new components, like MysqlDataset and MysqlDataTable, will appear in your toolbox in visual studio. Documentation on how to use them should also be included in the download, otherwise you can lookup the documentation for the ADO.NET components, like Dataset and DataTable, in the visual studio documentation, they are used the same way.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups