Report this

What is the reason for this report?

How can I connect phpmyadmin in Java?

Posted on November 3, 2018

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?



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.