tnthe wrote:
INFO: configuring from resource: /hibernate.cfg.xml
Dec 6, 2005 11:20:54 AM org.hibernate.cfg.Configuration getConfigurationInputSt
eam
INFO: Configuration resource: /hibernate.cfg.xml
Dec 6, 2005 11:20:54 AM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource: FileToSave.hbm.xml
Dec 6, 2005 11:20:55 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassComm
nValues
INFO: Mapping class: FileToSave -> filetosave
Dec 6, 2005 11:20:55 AM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
.................
.................
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: Access denied for user ''@'localhost' (using
assword: NO)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2926)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:771)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3647)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1176)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.jav
----------------
What's wrong with this ? java.sql.SQLException: Access denied for user ...
-------------
Problem solved: check hibernate.cfg.xml makes sure to have right connection.url, and etc... as the same as in: create database YourDatabase