Results 1 to 7 of 7

Thread: Error when configuring a dataadapter

  1. #1
    chime is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Jul 2005
    Location
    wexford, Ireland
    Posts
    22
    Reputation
    98

    Question Error when configuring a dataadapter

    Hi

    I get the following error when I try to configure my dataadapter

    I have tested the connections in the server explorer and they work

    "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=myDatabase;USER= myUsername;PASSWORD=myPassword;OPTION=3;"




    I am new at this so its probably something obvious

  2. #2
    MESDM is offline VB.NET Forum Newbie
    .NET Framework
    Join Date
    Mar 2005
    Posts
    3
    Reputation
    0
    I take it your using Visual Studio..

    Try using the wizard to make the connection then copy the code it produces.

  3. #3
    chime is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Jul 2005
    Location
    wexford, Ireland
    Posts
    22
    Reputation
    98
    This is the error when I try using the wizard

    (yep its visual studio on windows xp)

  4. #4
    Paszt's Avatar
    Paszt is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2004
    Location
    Raleigh, NC - USA
    Posts
    1,502
    Reputation
    308
    Unless I'm missing it, I beleive you have failed to include the error message.
    — Stephen Paszt

  5. #5
    kulrom's Avatar
    kulrom is offline VB.NET Forum All-Mighty
    .NET Framework
    .NET 3.5
    Join Date
    May 2005
    Location
    Republic of Macedonia
    Posts
    2,855
    Reputation
    248
    Evidently you are trying to establish an ODBC connection but as Paszt noted you haven't included the Exception/Error message ... btw have you checked that certain ODBC connection is existing on your machine? Waiting for your feedback

    Cheers

    added: Also be sure that you are entering the right UID and PWD as when you first install MySQL, it creates a " root " user account (in the sys datbase's user table) with a blank password.
    Last edited by kulrom; 07-25-2005 at 4:46 PM.

  6. #6
    chime is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Jul 2005
    Location
    wexford, Ireland
    Posts
    22
    Reputation
    98

    Lightbulb

    Hi

    It seems to be working again after I restarted the pc.
    The connections were correct as I was able to see the tables in server explorer

    I have attached the error message
    (I mustent have uploaded the file previously)

    Thanks
    Attached Files Attached Files

  7. #7
    kulrom's Avatar
    kulrom is offline VB.NET Forum All-Mighty
    .NET Framework
    .NET 3.5
    Join Date
    May 2005
    Location
    Republic of Macedonia
    Posts
    2,855
    Reputation
    248
    Evidently you haven't installed the appropriate driver ... google for "Install mySQL driver"

    Cheers

Bookmarks

Posting Permissions

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