Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find connection string from a phpMyAdmin database?

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?

like image 841
Anonymous Avatar asked Dec 31 '12 12:12

Anonymous


People also ask

How do I find my database connection string?

Right-click on your connection and select "Properties". You will get the Properties window for your connection. Find the "Connection String" property and select the "connection string". So now your connection string is in your hands; you can use it anywhere you want.

How do I find MySQL connection string?

Driver={mySQL};Server=myServerAddress;Port=3306;Option=131072;Stmt=;Database=myDataBase;User=myUsername;Password=myPassword; The driver defaults to port value 3306, if not specified in the connection string, as 3306 is the default port for MySQL.


1 Answers

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.

like image 151
burna Avatar answered Nov 01 '22 11:11

burna