Results 1 to 2 of 2

Thread: Mysql Database connection

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Answers
    6

    Mysql Database connection

    Hello all, i'm getting an error when i use the below code to connect to mysql database. Would be great if anybody can try to solve this problem. Code : dim objconnection as new adodb.connection dim svlconnectstring as string svlconnectstring = "driver={mysql odbc 5.1 driver} ; server={192.168.4.208} ; port = {3306} ; database={chat2} ; user = {root} ; password= {}" objconnection.open svlconnectstring 'to open recordset dim rsusers as new adodb.recordset set rsusers = objconnection.execute("select * from user") if not rsusers.eof then msgbox ("first user name:" & rsusers.fields("user")) end if call rsusers.close set rsusers = nothing set objconnection = nothing thanks !


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Question Re: Mysql Database connection

    1. please send the details of the error.

    2. Please check the Connection String format supported by VBScript.


    Regards,
    Nawab


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact