Results 1 to 3 of 3

Thread: problem in connetcion with MYSQL db ?

  1. #1

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    problem in connetcion with MYSQL db ?

    hi there
    when i try to connect using this code ::
    Code:
    <%
    Dim dbhost, username,dbname, dbpwd, oConn, sConnection
    
    dbhost = "localhost"
    dbname_and_username = "root"
    dbpwd = "Brinkster_Password"
    dbname="test"
    
    Set oConn = Server.CreateObject("ADODB.Connection")
    sConnection = "Driver={MySQL ODBC 3.51 Driver};" &_
    "Server="& dbhost &";uid="& username &";pwd="& dbpwd &";database="& dbname &";"
    oConn.Open(sConnection)
    response.write "<br><br><center>The MySQL connection has been opened.<br><br>"
    
    oConn.Close
    response.write "The MySQL connection has been closed.</center>"
    Set oConn = nothing
    %>
    an error rasie :

    Code:
    Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    how i can connect to this db :

    i try to connect local and then will connect on server .. hope to solve this case .. thanks
    In the name of allah , the beneficent , the merciful

    Say (O Muhammad ): We believe in allah and that which is revealed unto us and that which was revealed unto abraham and ishmael and isaac and jacob and the tribes , and that which was vouchsafed unto moses and jesus and the prophets from their lord . we make no distinction between any of them , and unto him we have surrendered


    ---- Great Sites For You -------------------

    If you want to know some small things about islam ?

  2. #2

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    Re: problem in connetcion with MYSQL db ?

    hi there

    any help plz ..
    plz ..
    In the name of allah , the beneficent , the merciful

    Say (O Muhammad ): We believe in allah and that which is revealed unto us and that which was revealed unto abraham and ishmael and isaac and jacob and the tribes , and that which was vouchsafed unto moses and jesus and the prophets from their lord . we make no distinction between any of them , and unto him we have surrendered


    ---- Great Sites For You -------------------

    If you want to know some small things about islam ?

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: problem in connetcion with MYSQL db ?

    See the "Fixing common DB related errors" link in my signature.

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