Provider cannot be found error

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Provider cannot be found error

    Hello all

    Windows XP SP1

    I'm trying to connect to a local MySQL database through ASP (VBScript, also
    tried JScript, same result). IIS is on the same machine.

    connect = Server.CreateObject("ADODB.Connection");
    connect.Open("Provider=MySQL; Data Source=localhost; Initial Catalog=test;
    User ID=root");

    I get "Provider cannot be found. It may not be properly installed".
    Yet I can successfully connect to the database through sqlyog, Data Sources
    (ODBC) and winmysqladmin.

    Also tried different names for Provider both with and without the "{}", same
    result. The DSN is set to "MySQL" in Data Sources (ODBC)

    Any clues?
    --
    Regards
    Peter Akerstrom
    Network & Communication


    Peak Guest

  2. Similar Questions and Discussions

    1. Cryptographic service provider (CSP) could not be found for this algorithm.
      I'm running an ASP.NET webapplication on a Windows 2000 Server SP4 machine with .Net Framework 1.0 installed. The ASP.Net application uses...
    2. refresh causes Provider error '80004005'
      I have an ASP page running on IIS4 on a NT machine accessing a remote database server on the local network Windows 2000 with /AD and it runs fine....
    3. Provider error '80004005' Unspecified error - ARRRGGGHHH!!!!!
      I have searched usenet & dev sites to no avail although many have had similar problems, reckon its an issue with DSN but not sure.. error occurs...
    4. Provider error?
      What is GetConnectionString? A function? Where is it? What does it say? Ray at work "Dean J. Garrett" <deanj_garrett@yahoo.com> wrote in...
    5. Microsoft OLE DB Provider for ODBC Drivers error '80004005' Error
      Hi folks - i've got a windows 2000 server (SP3) i've run the IIS lockdown tool on it and set for dynamic websites - all the static pages within the...
  3. #2

    Default Re: Provider cannot be found error

    Take a look at the sample OLEDB connection string for MySQL here.
    [url]http://www.connectionstrings.com/[/url] Yours is different from that, although I
    cannot say that that means yours is wrong, but it is worth looking at and
    trying. Also, did you install the MySQL OLEDB drivers (which I assume
    exist)? Those other tools you're talking about may use ODBC.

    Ray at work

    "Peak" <peak.delete.this@europe.com> wrote in message
    news:%CjGb.26$zf2.81@news1.global-one.fi...
    > Hello all
    >
    > Windows XP SP1
    >
    > I'm trying to connect to a local MySQL database through ASP (VBScript,
    also
    > tried JScript, same result). IIS is on the same machine.
    >
    > connect = Server.CreateObject("ADODB.Connection");
    > connect.Open("Provider=MySQL; Data Source=localhost; Initial Catalog=test;
    > User ID=root");
    >
    > I get "Provider cannot be found. It may not be properly installed".
    > Yet I can successfully connect to the database through sqlyog, Data
    Sources
    > (ODBC) and winmysqladmin.
    >
    > Also tried different names for Provider both with and without the "{}",
    same
    > result. The DSN is set to "MySQL" in Data Sources (ODBC)
    >
    > Any clues?
    > --
    > Regards
    > Peter Akerstrom
    > Network & Communication
    >
    >

    Ray at Guest

  4. #3

    Default Re: Provider cannot be found error

    Once I installed MyOLEDB from [url]http://www.mysql.com/downloads[/url] I can
    successfully use this connection string:

    conn.open
    "Provider=MySQLProv;Server=SQLBOX;Database=test;ui d=root;pwd=;port=3306"




    "Peak" <peak.delete.this@europe.com> wrote in message
    news:%CjGb.26$zf2.81@news1.global-one.fi...
    > Hello all
    >
    > Windows XP SP1
    >
    > I'm trying to connect to a local MySQL database through ASP (VBScript,
    also
    > tried JScript, same result). IIS is on the same machine.
    >
    > connect = Server.CreateObject("ADODB.Connection");
    > connect.Open("Provider=MySQL; Data Source=localhost; Initial Catalog=test;
    > User ID=root");
    >
    > I get "Provider cannot be found. It may not be properly installed".
    > Yet I can successfully connect to the database through sqlyog, Data
    Sources
    > (ODBC) and winmysqladmin.
    >
    > Also tried different names for Provider both with and without the "{}",
    same
    > result. The DSN is set to "MySQL" in Data Sources (ODBC)
    >
    > Any clues?
    > --
    > Regards
    > Peter Akerstrom
    > Network & Communication
    >
    >

    Foo Man Chew Guest

  5. #4

    Default Re: Provider cannot be found error

    Thanks Foo Man Chew, finally it works!
    /Peter

    "Foo Man Chew" <foo@man.chew> wrote in message
    news:uONkMipyDHA.1272@TK2MSFTNGP12.phx.gbl...
    > Once I installed MyOLEDB from [url]http://www.mysql.com/downloads[/url] I can
    > successfully use this connection string:
    >
    > conn.open
    > "Provider=MySQLProv;Server=SQLBOX;Database=test;ui d=root;pwd=;port=3306"
    >
    >
    >
    >
    > "Peak" <peak.delete.this@europe.com> wrote in message
    > news:%CjGb.26$zf2.81@news1.global-one.fi...
    > > Hello all
    > >
    > > Windows XP SP1
    > >
    > > I'm trying to connect to a local MySQL database through ASP (VBScript,
    > also
    > > tried JScript, same result). IIS is on the same machine.
    > >
    > > connect = Server.CreateObject("ADODB.Connection");
    > > connect.Open("Provider=MySQL; Data Source=localhost; Initial
    Catalog=test;
    > > User ID=root");
    > >
    > > I get "Provider cannot be found. It may not be properly installed".
    > > Yet I can successfully connect to the database through sqlyog, Data
    > Sources
    > > (ODBC) and winmysqladmin.
    > >
    > > Also tried different names for Provider both with and without the "{}",
    > same
    > > result. The DSN is set to "MySQL" in Data Sources (ODBC)
    > >
    > > Any clues?
    > > --
    > > Regards
    > > Peter Akerstrom
    > > Network & Communication
    > >
    > >
    >
    >

    Peak 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