Access Denied for user @
hi
I m new jsp+mysql environment
my connection url is jdbc:mysql://localhost/mobicent
jsp raises an exception as Exception is java.sql.SQLException: Access denied for user ' '@'localhost' (using password: YES)
what 's the problem
its very urgent , Thanks in advance
regards
vinio
# 1
For every user that you define in MySQL, you also have to define from where that user can connect. By default, it is only from localhost over the "sock" file (not over the network). So, you need to allow the user you are using to connect from localhost over the network.
Read the MySQL documentation, paying particular attention to the "GRANT" statement.