12

I want to connect from java, to a database which i am currently managing from phpMyAdmin. I do not own the server which the database runs.

however, i want to find the connection string of that database, in order to be able to communicate with my database using java.

Does anyone knows how to find that connection string?

2 Answers 2

3

If you have access to the phpMyAdmin PHP files, then you can look into the config.inc.php file, there is the config of the database connection.

Sign up to request clarification or add additional context in comments.

2 Comments

Just a note, this file is located in the phpMyAdmin folder.
for wamp -> C:\wamp\apps\phpmyadmin4.1.14\config.inc.php
-1

Here is the string syntax for MySQL, the backend of phpMyAdmin.

"server = localhost; port = 3306; user = <phpMyAdminUsername>; password = <phpMyAdminPassword>; database = <database>"

Replace localhost with the IP address if using a remote database.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.