I am going to kill mysql

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default I am going to kill mysql

    Hi

    I did the following in an effort to connect to mysql using VB.net on a
    windows XP pro machine.
    I made reference to and used the import statement as follows :

    Imports Microsoft.Data.Odbc

    I then created my connection with the following :

    Dim objConnection As New
    OleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr
    gplc;OPTION=17923")

    but I keep getting the folowing error :

    An OLE DB Provider was not specified in the ConnectionString. An example
    would be, 'Provider=SQLOLEDB;'.
    Any ideas as to where I am going wrong ??

    Thanks for the help so far.


    Paul Guest

  2. Similar Questions and Discussions

    1. How do I kill it?
      :mad; When tring to read pages from the UK Daily Tel, I am continually distracted by asinine animated adverts. PLEASE - How can I kill them?
    2. ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
      When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'...
    3. CFM will kill iis when off
      This is a note for development environments. Using WinXPPRO IIS. When CFMX7 is installed and turned off IIS will be very slow to respond or pages...
    4. Kill Halo
      I've been wading through all the information regarding component theme's, styles, etc. I think I'm more confused about it than when I started ...
    5. How to kill gdm??
      Every time when killed gdm will restart itself, so if I start with gdm and later I don't want to see gdm after logout how should I do?? Thanks --...
  3. #2

    Default Re: I am going to kill mysql

    Create a file with the extension .udl. Try to open it. It will open with
    the little "connection wizard" (I can't remember what the real name of it
    is.) Set up all your connection information, test the connection, and save.

    Then open the UDL file with notepad and that will be the connection string
    to use.

    HTH,

    bill
    "Paul" <paul@themedialounge.com> wrote in message
    news:OFoB2$pWDHA.1812@TK2MSFTNGP11.phx.gbl...
    > Hi
    >
    > I did the following in an effort to connect to mysql using VB.net on a
    > windows XP pro machine.
    > I made reference to and used the import statement as follows :
    >
    > Imports Microsoft.Data.Odbc
    >
    > I then created my connection with the following :
    >
    > Dim objConnection As New
    >
    OleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr
    > gplc;OPTION=17923")
    >
    > but I keep getting the folowing error :
    >
    > An OLE DB Provider was not specified in the ConnectionString. An example
    > would be, 'Provider=SQLOLEDB;'.
    > Any ideas as to where I am going wrong ??
    >
    > Thanks for the help so far.
    >
    >

    William F. Robertson, Jr. Guest

  4. #3

    Default Re: I am going to kill mysql

    Mysql uses its own providers which are oledb. You need to set references to
    bytefx and sharpziplib and then do the imports thing. That will make
    namespaces available to your code. All of them start with MYSQL.... etc.

    [url]http://www.able-consulting.com/dotnet/adonet/Data_Providers.htm#MySQLNETNativeProvider[/url]


    "Paul" <paul@themedialounge.com> wrote in message
    news:OFoB2$pWDHA.1812@TK2MSFTNGP11.phx.gbl...
    > Hi
    >
    > I did the following in an effort to connect to mysql using VB.net on a
    > windows XP pro machine.
    > I made reference to and used the import statement as follows :
    >
    > Imports Microsoft.Data.Odbc
    >
    > I then created my connection with the following :
    >
    > Dim objConnection As New
    >
    OleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr
    > gplc;OPTION=17923")
    >
    > but I keep getting the folowing error :
    >
    > An OLE DB Provider was not specified in the ConnectionString. An example
    > would be, 'Provider=SQLOLEDB;'.
    > Any ideas as to where I am going wrong ??
    >
    > Thanks for the help so far.
    >
    >

    Alvin Bruney Guest

  5. #4

    Default Re: I am going to kill mysql

    OLE DB and ODBC are 2 different technologies. You imported the Odbc library,
    but used the Oledb library in your code. If you need to use ODBC, use the
    ODBC library classes.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Complex things are made up of
    lots of simple things.

    "Paul" <paul@themedialounge.com> wrote in message
    news:OFoB2$pWDHA.1812@TK2MSFTNGP11.phx.gbl...
    > Hi
    >
    > I did the following in an effort to connect to mysql using VB.net on a
    > windows XP pro machine.
    > I made reference to and used the import statement as follows :
    >
    > Imports Microsoft.Data.Odbc
    >
    > I then created my connection with the following :
    >
    > Dim objConnection As New
    >
    OleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr
    > gplc;OPTION=17923")
    >
    > but I keep getting the folowing error :
    >
    > An OLE DB Provider was not specified in the ConnectionString. An example
    > would be, 'Provider=SQLOLEDB;'.
    > Any ideas as to where I am going wrong ??
    >
    > Thanks for the help so far.
    >
    >

    Kevin Spencer Guest

  6. #5

    Default Re: I am going to kill mysql

    Is there no way that I can connect to mysql using ODBC?


    "Kevin Spencer" <kevin@takempis.com> wrote in message
    news:exuqHiqWDHA.656@tk2msftngp13.phx.gbl...
    > OLE DB and ODBC are 2 different technologies. You imported the Odbc
    library,
    > but used the Oledb library in your code. If you need to use ODBC, use the
    > ODBC library classes.
    >
    > --
    > HTH,
    >
    > Kevin Spencer
    > Microsoft MVP
    > .Net Developer
    > [url]http://www.takempis.com[/url]
    > Complex things are made up of
    > lots of simple things.
    >
    > "Paul" <paul@themedialounge.com> wrote in message
    > news:OFoB2$pWDHA.1812@TK2MSFTNGP11.phx.gbl...
    > > Hi
    > >
    > > I did the following in an effort to connect to mysql using VB.net on a
    > > windows XP pro machine.
    > > I made reference to and used the import statement as follows :
    > >
    > > Imports Microsoft.Data.Odbc
    > >
    > > I then created my connection with the following :
    > >
    > > Dim objConnection As New
    > >
    >
    OleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr
    > > gplc;OPTION=17923")
    > >
    > > but I keep getting the folowing error :
    > >
    > > An OLE DB Provider was not specified in the ConnectionString. An example
    > > would be, 'Provider=SQLOLEDB;'.
    > > Any ideas as to where I am going wrong ??
    > >
    > > Thanks for the help so far.
    > >
    > >
    >
    >

    Paul Guest

  7. #6

    Default Re: I am going to kill mysql

    Of course there is. You just use the ODBC library classes
    (System.Data.Odbc), not the OleDb (System.Data.Oledb) classes.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Complex things are made up of
    lots of simple things.

    "Paul" <paul@themedialounge.com> wrote in message
    news:uuaTnMzWDHA.3404@tk2msftngp13.phx.gbl...
    > Is there no way that I can connect to mysql using ODBC?
    >
    >
    > "Kevin Spencer" <kevin@takempis.com> wrote in message
    > news:exuqHiqWDHA.656@tk2msftngp13.phx.gbl...
    > > OLE DB and ODBC are 2 different technologies. You imported the Odbc
    > library,
    > > but used the Oledb library in your code. If you need to use ODBC, use
    the
    > > ODBC library classes.
    > >
    > > --
    > > HTH,
    > >
    > > Kevin Spencer
    > > Microsoft MVP
    > > .Net Developer
    > > [url]http://www.takempis.com[/url]
    > > Complex things are made up of
    > > lots of simple things.
    > >
    > > "Paul" <paul@themedialounge.com> wrote in message
    > > news:OFoB2$pWDHA.1812@TK2MSFTNGP11.phx.gbl...
    > > > Hi
    > > >
    > > > I did the following in an effort to connect to mysql using VB.net on a
    > > > windows XP pro machine.
    > > > I made reference to and used the import statement as follows :
    > > >
    > > > Imports Microsoft.Data.Odbc
    > > >
    > > > I then created my connection with the following :
    > > >
    > > > Dim objConnection As New
    > > >
    > >
    >
    OleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr
    > > > gplc;OPTION=17923")
    > > >
    > > > but I keep getting the folowing error :
    > > >
    > > > An OLE DB Provider was not specified in the ConnectionString. An
    example
    > > > would be, 'Provider=SQLOLEDB;'.
    > > > Any ideas as to where I am going wrong ??
    > > >
    > > > Thanks for the help so far.
    > > >
    > > >
    > >
    > >
    >
    >

    Kevin Spencer Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139