eclipse - Connection to database - MySQL -


i have problem connect database. had problem few days ago when started using mac instead of dell. connection still working on dell. i'm using eclipse, tomcat server, mysql. have displayed on console.

enter image description here

i hope helpful:

enter image description here enter image description here

you appear using non standard port number mysql command need reflect non standard port number.

i little rusty on java try this

string dataserviceurl = "jdbc:mysql://localhost:8889/majjane"; 

possibly using ip rather localhost help, woudl make faster if nothing else.

string dataserviceurl = "jdbc:mysql://127.0.0.1:8889/majjane"; 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -