Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Connecting VBA with MySQL 5.7 (no replies)

$
0
0
I am trying to connect newly installed MySQL Community version to VBA in Excel 2016. I have tried:

Dim oConn As ADODB.Connection

Set oConn = New ADODB.Connection
Dim str As String
'I have tried all of these

'str = "DRIVER={MySQL ODBC 5 Driver};"
'str = "DRIVER={MySQL ODBC 5.7 Driver};"
'str = "DRIVER={MySQL ODBC 5.7-Log Driver};"
'str = "DRIVER={MySQL ODBC 5.7-log Driver};"
'str = "DRIVER={MySQL ODBC MySQL57};"

str = "DRIVER={MySQL ODBC MySQL Server 5.7 Driver};" & _
"SERVER=ALIEN;" & _
"PORT=3306;" & _
"DATABASE=World;" & _
"Uid=Rhcase;" & _
"Pwd=2174;" & _
"Option=3"
oConn.Open str

Nothing works and I have tried using Regedit to find the right version without success.

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>