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

[334 byte] By [chand_vinoa] at [2007-11-27 1:45:09]
# 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.

masijade.a at 2007-7-12 1:05:09 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
hii tried with this GRANT ALL PRIVILEGES ON [dbname].* to [user]'@'[hostname] identified by '[password]' but it still in same state
chand_vinoa at 2007-7-12 1:05:09 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
Access denied for user ' '@'localhost'There is no username (I may assume that a space is not a valid username). Is the username actually filled and supplied to the getConnection()?
BalusCa at 2007-7-12 1:05:09 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...