Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Object Relational Mapping
Access denied for user 'root'@'localhost' (using password: YES)
Sree Kumari
Ranch Hand
Posts: 50
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I started using Hibernate4.5.1 wrote a simple program,created a new database but it is showing Access denied for user 'root'@'localhost' (using password: YES) error the previous versions are working fine with old databases
Jaikiran Pai
Sheriff
Posts: 10445
227
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It looks like your database credentials that you have configured in Hibernate are incorrect. Have you verified them?
[
My Blog
] [
JavaRanch Journal
]
Bin Smith
Ranch Hand
Posts: 514
1
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The defaults for mysql 5 are :
username = root
password is empty
string
.
In hibernate.cfg.xml:
<property name="hibernate.connection.username">root</property> <property name="hibernate.connection.password"></property>
To earn money on java go to upwork.com
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Unable to login as root in Php My admin
Null pointer exception in con.createStatement();
Connection refused, i can't log in to my SQL-Server
Exception: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect'
Regarding my project
More...