Question

How can I connect phpmyadmin in Java?

I tried like this, but didnt work:

private final String DB_URL = “jdbc:mysql://PHPMYADMINURL:8080/company?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=utf8”;

private static final String USER = "admin";
private static final String PASSWORD = "password";

How can I do this?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @mreorhan,

phpMyAdmin is not actually a running service, so you’ll need to use your MySQL port. Usually MySQL listens on port 3306 unless you have made any modifications to it.

Regards, KDSys