Jump to content

Recommended Posts

Posted

hi everyone

let me know how to connect remote sql database on mypc vb6.0 software

i use in mycode

server: johnny.heliohost.org

db:mysqldatabase

username:dbusername

password:dbpassword

port:3306

 

Set cn = New ADODB.Connection
                cn.CursorLocation = adUseClient
                cn.Open "DRIVER={MySQL ODBC 3.51 Driver};SERVER=" & isServer & ";DATABASE=" & isDatabase & ";UID=" & isUsername & ";PWD=" & isPASSWORD & ";PORT=" & isPORT & ";OPTION=3"

 

i am also following in my code but did't get success every get response access denied for user 

please tell me anyone how to resolve and what i going wrong

Posted

Remote mysql is disabled by default for security reasons. Have you enabled remote mysql by clicking the button labeled "Remote Mysql" in cpanel and then entering your ip address or putting % to allow all ips to connect?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...