try this..
note:
xserver,xdatabase,xuser,xpass is a variable
example:
xserver="192.168.215.3"
xdatabase="customer"
xuser="reuben"
xpass="none"
also check the character case either lower/upper case of your mysql database,user,password design
connStr = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=" & xserver & ";" _
& "DATABASE=" & xdatabase & ";" _
& "UID=" & xuser & ";" _
& "PWD=" & xpass & ";" _
& "OPTION=18475"
Quote:
Originally posted by baburajv
hi
i could nt connect to mysql from my client app using the connection str
DRIVER={MySQL ODBC 3.51 Driver};SERVER=192.168.1.212;DATABASE=DB1;UID=MyUs er1;PWD=MyPasswd1;OPTION=18475
but when i give 'localhost' instead of IP it gets connected to the database
the ADO error message is
error no -2147467259
[MySQL][ODBC 3.51 Driver]Access denied for user: 'MyUser1@MySystem' (Using password: YES
pl explain this
|