Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

Need Help VB6 + MYSQL

$
0
0
I am trying to create a remote database using MYSQL

PC #1 : Connected and NO PROBLEM : this is where the database located (can add,save and delete)
PC #2 : Cant connect to server. I'm getting error : Cant connect on mysql server on 192.168.1.196

I already use : Grant All Privileges on *.* to 'root'@'%' Identified by 'Password' with GRANT OPTION;


Database Connection :

Public Sub CONNECTION()

Set cn = New ADODB.CONNECTION

Set cn = New ADODB.CONNECTION
cn.CursorLocation = adUseClient

cn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=192.168.1.196;PORT=3306;" _
& "DATABASE=sample;" _
& "UID=root;" _
& "PWD=ssmpc1;" _
& "OPTION=16387"
cn.Open


End Sub


Any Help?

Viewing all articles
Browse latest Browse all 21273

Trending Articles



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