kromosome
13 years agoNew Contributor
Connect to MySQL database error
I tried to connect MySQL script, but its prompt out message saying that "Provider cannot be found. IT may not be properly installed."
i had downloaded and installed MySQL 5.1 and i'm able to create and connect to db through DNS settings.
Dim Connection
Dim ConnectionString
Dim SQL
ConnString = "Provider={MySQL ODBC 5.1 Driver}; SERVER=serverip; PORT=3306; DATABASE=Your_Mysql_DB; " &_
"UID=mysql_username;PASSWORD=mysql_password; OPTION=3"
Set Connection = CreateObject("ADODB.Connection")
Connection.Open ConnString
May i know is it i need to do somethings on the MySQL provider?
or another solutions on this?
i had downloaded and installed MySQL 5.1 and i'm able to create and connect to db through DNS settings.
Dim Connection
Dim ConnectionString
Dim SQL
ConnString = "Provider={MySQL ODBC 5.1 Driver}; SERVER=serverip; PORT=3306; DATABASE=Your_Mysql_DB; " &_
"UID=mysql_username;PASSWORD=mysql_password; OPTION=3"
Set Connection = CreateObject("ADODB.Connection")
Connection.Open ConnString
May i know is it i need to do somethings on the MySQL provider?
or another solutions on this?