Results 1 to 7 of 7

Thread: [2008] Connect to MySql.Data.dll Read / Write?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    [2008] Connect to MySql.Data.dll Read / Write?

    I've been looking for anything that can help me figure this out and so far it's not going so well. I have a .dll file ( MySql.Data.dll ) that I'd like to be able to open, view and possibly edit the database but I can't find any examples or documentation on doing so.

    Does anyone have the code that can share it with me so I can learn how to construct this type of application or point me in the right direction? I'd really appreciate it.

    Chris

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2008] Connect to MySql.Data.dll Read / Write?

    Any ADO.NET examples will do. Follow the ADO.NET Examples link in my signature. The code uses SQL Server-specific classes but you simply substitute the MySQL-specific equivalents, e.g. MySqlConnection instead of SqlConnection. You can get the connection string format from www.connectionstrings.com.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Connect to MySql.Data.dll Read / Write?

    Thanks jmcilhinney. Been having issues connecting here. I will check it out and hopefully find something useful.

    Chris

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2008] Connect to MySql.Data.dll Read / Write?

    Quote Originally Posted by cmmorris1
    Thanks jmcilhinney. Been having issues connecting here. I will check it out and hopefully find something useful.

    Chris
    Me too. Must have been a server issue or something at that end.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [2008] Connect to MySql.Data.dll Read / Write?

    Hey,

    What jm said is perfectly correct, but if you are looking for some specific examples of using MySQL with VB.Net, have a look at the link in my signature, there is a very good set of articles describing just how to do it.

    Hope this helps!!

    Gary

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Posts
    159

    Re: [2008] Connect to MySql.Data.dll Read / Write?

    Thanks Gary...I was trying to make it work using jm's stuff but haven't figured it out yet.

    Chris

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [2008] Connect to MySql.Data.dll Read / Write?

    Hey,

    You should be able to get it to work using jm's suggestion, the techniques are exactly the same, but the tutorial I linked to shows specific MySQL examples.

    You might want to post some code though to see if we can help out.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width