unable to connect to mysql database
hi
i am getting
java.sql.SQLException: General error: Access denied for user: '@192.168.0.104' to database 'Drishtee'
exception
i am using mmsql driver
although when i try to connect test database provided by mysql it gets connected
also when i try to connect to System database mysql i get
java.sql.SQLException: General error: Access denied for user: '@192.168.0.104' to database 'mysql'
someone please help me
thanks
Your problem is with the access rights in your database. From the error, it seems that the host you are connecting from was not granted access rights into the database. Chapter 6 of the mysql manual (which is browsable at www.mysql.com) has detailed procedures to follow in enabling such access rights.
For the record, I had a similar problem a while ago which I fixed by inserting the host's ip I was connecting from on the HOST table, added the host on the DB table.
Be sure to read chapter 6 of the manual as it is extremely detailed on this subject.