PHPMyAdmin is n visual system for the management of a MySQL database. It is written in PHP and serves to display the contents of the databases on the server (or client) on which MySQL is installed. Through this interface you can create new databases, modify existing ones and modify the contents of single fields (see Figure 11-1).
Please read first the Section called How to install the DB of PHP-Nuke with PHPMyadmin in Chapter 5 for the basic installation procedure of the PHP-Nuke MySQL database through PHPMyAdmin. In this section we will discuss some more advanced PHPMyAdmin topics:
PHPMyAdmin gives you also the possibility to do a backup of the data in your database (or only of the structure). If you choose "Structure Only and the "Send" option, you will save on your PC the database structure without the data. Choosing "Structure and Data" instead, you will be sent a real whole backup of your DB.
Yet another couple of instructions: In order to see the structure of a table, you only need to click on the one that is marked in the left bar and you will see all its fields and modification options appear in the central part (Figure 11-2).
The DROP command eliminates all the contents of the DB, the table or the single field, use it with caution.
Generally, the management interface of PHPMyAdmin is supplied by the provider who sells you the hosting or, if you install it on Windows in order to work locally, does not need any particular tweaking in its configuration.
In case you want to install it on Windows in order to read databases that are online or to install it on your webspace because your hosting supplier does not include it in your tools, you can configure everything by editing the config.inc.php file as follows:
IP DB Server: 126.96.36.199
Database Name: Minnie
$cfgServers["host"] = "188.8.131.52"; // MySQL hostname $cfgServers["port"] = ""; // MySQL port - leave blank for default port $cfgServers["adv_auth"] = false; // Use advanced authentication? $cfgServers["stduser"] = ""; // MySQL standard user (only needed with advanced auth) $cfgServers["stdpass"] = ""; // MySQL standard password (only needed with advanced auth) $cfgServers["user"] = "Pippo"; // MySQL user (only needed with basic auth) $cfgServers["password"] = "Topolino"; // MySQL password (only needed with basic auth) $cfgServers["only_db"] = "Minnie"; // If set to a db-name, only this db is accessible $cfgServers["verbose"] = ""; // Verbose name for this host - leave blank to show the hostname $cfgServers["bookmarkdb"] = ""; // Bookmark db - leave blank for no bookmark support $cfgServers["bookmarktable"] = ""; // Bookmark table - leave blank for no bookmark support
In the config.inc.php you will find more configuration parameters that are repeated. They serve to manage DBs in various hosts with the same interface.