MySQL 如何从 phpMyAdmin 数据库中查找连接字符串?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14101352/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to find connection string from a phpMyAdmin database?
提问by Anonymous
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.
我想从 java 连接到我目前从 phpMyAdmin 管理的数据库。我不拥有数据库运行的服务器。
however, i want to find the connection string of that database, in order to be able to communicate with my database using java.
但是,我想找到该数据库的连接字符串,以便能够使用 java 与我的数据库进行通信。
Does anyone knows how to find that connection string?
有谁知道如何找到该连接字符串?
回答by burna
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.
如果您有权访问 phpMyAdmin PHP 文件,那么您可以查看该config.inc.php
文件,其中有数据库连接的配置。