How can I connect phpmyadmin in Java?

November 3, 2018 886 views
MySQL 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?

Be the first one to answer this question.