Conectarse ....
cServidor = "67.15.154.85"
cBasedatos = "Datos"
cUsuario = "prueba"
cPassword = "123"
cCadConn = "Driver={MySQL ODBC 3.51 Driver};Server=" + cServidor + ;
";Option=16834" + ;
";Database=" + cBasedatos + ;
";Uid=" + cUsuario + ;
";Pwd=" + cPassword
SQLSetprop(0,"DispLogin",3)
nH = Sqlstringconnect(cCadConn)
If nH > 0
=Messagebox("OK")
SQLDisconnect(nH)
Else
=Aerror(aSubError)
Messagebox("Error descripción:" + aSubError[2])
Endif
*****************************************
Also it reviews the functions: SQLExec, SQLPrepare, SQLRollback, SQLCommit