Se può essere utile eccola
codice:
' Stabilisco la connessione con il database My SQL del Forum.
Dim MySQLSVR, MySQLPRT, MySQLUID, MySQLPWD, CONN, MySQLOPT, DB_CONNECTIONSTRING, UploadPath, CSS
MySQLSVR = "xxx" ' enter IP or hostname of MySQL server
MySQLPRT = 3306 ' enter MySQL port (default 3306)
MySQLUID = "xxx" ' enter Username (between quotes)
MySQLPWD = "xxx" ' enter Password (between quotes)
MySQLDB = "xxx" ' enter Active DataBase (between quotes)
MySQLOPT = 16387 ' enter MyODBC options values (at least 16387)
CONN = "driver={MySQL};server="&MySQLSVR&";port="&MySQLPRT&";"_
& "uid="&MySQLUID&";pwd="&MySQLPWD&";database="&MySQLDB&";option="&MySQLOPT&""
Funzia perchè altre operazioni che faccio su sto DB vanno bene...