How to access mysql database from remote system having different ip series

My MySQL server is installed at XX60.X and is accessing it via JDBC from XX80.X. I can connect it via MySQL Workbench, but when connected via a program, it displays the following error message.

java.sql.SQLException: Access denied for user 'user'@'X.X.80.X' (using password: NO).

I have granted all the privileges' user'@'XX80.X on the server.

+3


source to share


1 answer


Is the password for user 'user' set on your MySQL server? If so, check your program, do not use a password:(using password: NO)



+2


source







All Articles