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?

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.

Submit an Answer
1 answer

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.