#Hibernate

22 messages · Page 1 of 1 (latest)

young pond
#

Hey!!!! I am creating a maven project using hibernate and I am not able to create a sessionfactory. I have added all the necessary dependencies in pom.xml and create a configuration file as well .This is the error i am getting:

rugged larkBOT
#

This post has been reserved for your question.

Hey @young pond! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

worthy zephyr
#

UnknownHostException: No such host is known (localhost:3306)

#

Check the JDBC URL you are using for connecting to MySQL

#

it seems like you are trying to connect to a nonexisting or unreachable server

young pond
#

I changed the port of mysql in commandline to 3306

#

still didnt work

worthy zephyr
#

Can you show the JDBC URL?

#

I guess it should be in the application.properties if you're using Spring

young pond
#

jdbc:mysql://localhost:3306:/Car

worthy zephyr
#

if you aren't, it might be in the persistence.xml

young pond
#

no im using hibernate

worthy zephyr
#

jdbc:mysql://localhost:3306/Car

young pond
#

ohhhhhh myy fffff god

#

how can i be so dumb

#

I didnt see the extra semi colon

#

Damnnn thankk youu sooooooooooo much

rugged larkBOT
# young pond Damnnn thankk youu sooooooooooo much

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

worthy zephyr
young pond
#

haha ikr