R Graham

Greenhorn
+ Follow
since Jun 11, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by R Graham

Hi,

I'm trying to get a project working with the above. When I run the hibernate3:hbm2cfgxml goal, I get two stack traces:
The topline of the first is:
'org.hibernate.exception.GenericJDBCException: Getting database metadata'

The topline of the second is:
'Caused by: java.sql.SQLException: Access denied for user 'rogergraham'@'localhost' (using password: YES)'

I do not understand what to put for hibernate.connection.username and hibernate.connection.password.

I have to sudo to run mysql (where it runs as root: yes I know this is bad, but I'm just starting with the Mac so please be forgiving!) But even if I put the root username/password combination in, I get the same error.

Is there something I'm missing here? When you have a JDBC connection and supply the username/password, this is the combination that is set on the database instance itself, right? I'm very confused...

Any help greatly appreciated!


Thanks,
Roger