Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

connecting to mysql databse in asp (without dsn)

  • 19-12-2004 10:34am
    #1
    Closed Accounts Posts: 5,284 ✭✭✭


    Trying to adapt the openwiki configuration asp script to work for me. What values should I be putting in for the driver and the server? Does anyone have any example code excerpts for doing this by any chance? Do I need the full pathname to the database file on the server?


Comments

  • Closed Accounts Posts: 5,284 ✭✭✭pwd


    here's the bit of the asp doc that I need to change. "this page cannot be displayed" is shown when I've tried all sorts of values in the string. (these are the default sample values below only)

    ' OPENWIKI_DB = "Driver={Microsoft Access Driver (*.mdb)};DBQ=e:\data\openwiki\OpenWiki.mdb"
    ' OPENWIKI_DB = "Driver={SQL Server};server=mymachine;uid=openwiki;pwd=openwiki;database=OpenWiki"
    ' OPENWIKI_DB = "Driver={Microsoft ODBC for Oracle};Server=OW;Uid=laurens;Pwd=aphex2twin;"
    ' OPENWIKI_DB = "MySystemDSName"
    OPENWIKI_DB = "MySQLOpenWiki"
    ' OPENWIKI_DB = "PostgreSQLOpenWiki"
    'OPENWIKI_DB = "OpenWikiDist"


  • Moderators, Politics Moderators Posts: 41,240 Mod ✭✭✭✭Seth Brundle


    <%
    Dim myConn, connection
    set myConn = server.createobject("adodb.connection") 
    connection = "Driver={Mysql}; Server=localhost; Database=test; UID=root; PWD=root" 
    myConn.open(connection) 
    %>
    
    You may also need these after PWD=root
    Port=3306; Option=0; Socket=; Stmt=;
    


Advertisement