Hi I'm looking for some direction on how to use the SetSSL method of
MySQLMBS.

I'm getting the following error: "SQLNotInitializeExceptionMBS" when I call
SetSSL.

I looked for a good example/sample code and couldn't find it. If there's
one out there please point me to it. Otherwise, any tips would be
appreciated!

Here's the entire code:

  dim con as SQLConnectionMBS
  dim msql as new MySQLMBS

  try
    con = new SQLConnectionMBS // connection object

    // where is the library?
    con.SetFileOption con.kOptionLibraryMySQL,
SpecialFolder.UserHome.Child("libmysqlclient.dylib")

    msql.SetSSL(con, key_path, certificate_path, authority_path,
authority_folder_path, cipher)
    // connect to database (mySQL in our example)
    // server: 192.168.1.80
    // port: 3306
    // database: test
    // name: root
    // no password
    con.Connect("server.fake.com:3306
@test","root","",SQLConnectionMBS.kMySQLClient)
    // associate a command with connection
    // connection can also be specified in SACommand constructor

    Return con

  catch r as SQLErrorExceptionMBS
    // SAConnection::Rollback()
    // can also throw an exception
    // (if a network error for example),
    // we will be ready
    try

      // on error rollback changes
      if con <> nil then
        con.rollback
      end if
    catch x as SQLErrorExceptionMBS
      // ignore
    end try

    // show error message
    MsgBox r.message

  end try
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to