Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| centos:web_c7:phpmyadmin [29.01.2015 18:05. ] – [Datenbank(tabellen) erstellen] django | centos:web_c7:phpmyadmin [22.07.2019 14:43. ] (aktuell) – django | ||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| {{: | {{: | ||
| \\ \\ | \\ \\ | ||
| - | Zur komfortablen Administration unseres [[centos:mysql|mySQL-Datenbankserver unter CentOS 7.x]] greifen wir auf das PHP-Projekt [[http:// | + | Zur komfortablen Administration unseres [[centos:mariadb|MariaDB-Datenbankserver unter CentOS 7.x]] greifen wir auf das PHP-Projekt [[http:// |
| ===== Installation ===== | ===== Installation ===== | ||
| Zeile 1417: | Zeile 1417: | ||
| </ | </ | ||
| - | ===== Konfiguration ===== | + | ===== grundlegende |
| ==== Apache vHOST ==== | ==== Apache vHOST ==== | ||
| Im ersten Konfigurationsbeispiel richten wir uns einen vHOST für unseren Apache-Webserver ein. Hier wurde bei der Installation bereits eine passende Konfigurationsdatei in den Apache-Konfigurationspfad eingestellt. Diese Konfigurationsdatei passen wir unseren Gegebenheiten entsprechend an. | Im ersten Konfigurationsbeispiel richten wir uns einen vHOST für unseren Apache-Webserver ein. Hier wurde bei der Installation bereits eine passende Konfigurationsdatei in den Apache-Konfigurationspfad eingestellt. Diese Konfigurationsdatei passen wir unseren Gegebenheiten entsprechend an. | ||
| Zeile 1572: | Zeile 1572: | ||
| | mysql | | | mysql | | ||
| | opendmarc | | opendmarc | ||
| - | | opendocman | ||
| | phpmyadmin | | phpmyadmin | ||
| | postfix | | postfix | ||
| Zeile 1626: | Zeile 1625: | ||
| - **neuen Benutzer anlegen** \\ Mit folgendem Befehl legen wir uns einen neuen Nutzer an: \\ < | - **neuen Benutzer anlegen** \\ Mit folgendem Befehl legen wir uns einen neuen Nutzer an: \\ < | ||
| - **Datenbankverbindung beenden** \\ Unsere Konfiguration unseres neuen Datenbanknutzers ist hiermit beendet und wir können die Verbindung zur Datenbank wieder schließen. \\ < | - **Datenbankverbindung beenden** \\ Unsere Konfiguration unseres neuen Datenbanknutzers ist hiermit beendet und wir können die Verbindung zur Datenbank wieder schließen. \\ < | ||
| + | |||
| + | |||
| + | === Datenbank(tabellen) erstellen === | ||
| + | Zum Erstellen der benötigten Tabelle greifen wir auf die Datei // | ||
| + | # cp / | ||
| + | |||
| + | <WRAP round important> | ||
| + | |||
| + | Anschließend passen wir den Inhalt unseren lokalen Gegebenheiten an. | ||
| + | # vim / | ||
| + | |||
| + | Hier fügen wir beim Abschnitt **//-- Privileges// | ||
| + | <code sql>- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Privileges | ||
| + | -- | ||
| + | -- (activate this statement if necessary) | ||
| + | -- GRANT SELECT, INSERT, DELETE, UPDATE, ALTER ON `phpmyadmin`.* TO | ||
| + | -- ' | ||
| + | |||
| + | -- Grant privileges to phpMyAdmin controluser. | ||
| + | GRANT SELECT, INSERT, DELETE, UPDATE, ALTER ON `phpmyadmin`.* TO ' | ||
| + | GRANT SELECT, INSERT, DELETE, UPDATE, ALTER ON `phpmyadmin`.* TO ' | ||
| + | |||
| + | -- Reload privileges. | ||
| + | FLUSH PRIVILEGES; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | </ | ||
| + | |||
| + | Somit ergibt sich folgende komplette Datei. | ||
| + | <file sql / | ||
| + | -- SQL Commands to set up the pmadb as described in the documentation. | ||
| + | -- | ||
| + | -- This file is meant for use with MySQL 5 and above! | ||
| + | -- | ||
| + | -- This script expects the user pma to already be existing. If we would put a | ||
| + | -- line here to create him too many users might just use this script and end | ||
| + | -- up with having the same password for the controluser. | ||
| + | -- | ||
| + | -- This user " | ||
| + | -- | ||
| + | -- Please don't forget to set up the tablenames in config.inc.php | ||
| + | -- | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Database : `phpmyadmin` | ||
| + | -- | ||
| + | CREATE DATABASE IF NOT EXISTS `phpmyadmin` | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | USE phpmyadmin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Privileges | ||
| + | -- | ||
| + | -- (activate this statement if necessary) | ||
| + | -- GRANT SELECT, INSERT, DELETE, UPDATE, ALTER ON `phpmyadmin`.* TO | ||
| + | -- ' | ||
| + | |||
| + | -- Grant privileges to phpMyAdmin controluser. | ||
| + | GRANT SELECT, INSERT, DELETE, UPDATE, ALTER ON `phpmyadmin`.* TO ' | ||
| + | GRANT SELECT, INSERT, DELETE, UPDATE, ALTER ON `phpmyadmin`.* TO ' | ||
| + | |||
| + | -- Reload privileges. | ||
| + | FLUSH PRIVILEGES; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__bookmark` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__bookmark` ( | ||
| + | `id` int(11) NOT NULL auto_increment, | ||
| + | `dbase` varchar(255) NOT NULL default '', | ||
| + | `user` varchar(255) NOT NULL default '', | ||
| + | `label` varchar(255) COLLATE utf8_general_ci NOT NULL default '', | ||
| + | `query` text NOT NULL, | ||
| + | PRIMARY KEY (`id`) | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__column_info` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__column_info` ( | ||
| + | `id` int(5) unsigned NOT NULL auto_increment, | ||
| + | `db_name` varchar(64) NOT NULL default '', | ||
| + | `table_name` varchar(64) NOT NULL default '', | ||
| + | `column_name` varchar(64) NOT NULL default '', | ||
| + | `comment` varchar(255) COLLATE utf8_general_ci NOT NULL default '', | ||
| + | `mimetype` varchar(255) COLLATE utf8_general_ci NOT NULL default '', | ||
| + | `transformation` varchar(255) NOT NULL default '', | ||
| + | `transformation_options` varchar(255) NOT NULL default '', | ||
| + | `input_transformation` varchar(255) NOT NULL default '', | ||
| + | `input_transformation_options` varchar(255) NOT NULL default '', | ||
| + | PRIMARY KEY (`id`), | ||
| + | UNIQUE KEY `db_name` (`db_name`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__history` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__history` ( | ||
| + | `id` bigint(20) unsigned NOT NULL auto_increment, | ||
| + | `username` varchar(64) NOT NULL default '', | ||
| + | `db` varchar(64) NOT NULL default '', | ||
| + | `table` varchar(64) NOT NULL default '', | ||
| + | `timevalue` timestamp NOT NULL, | ||
| + | `sqlquery` text NOT NULL, | ||
| + | PRIMARY KEY (`id`), | ||
| + | KEY `username` (`username`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__pdf_pages` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__pdf_pages` ( | ||
| + | `db_name` varchar(64) NOT NULL default '', | ||
| + | `page_nr` int(10) unsigned NOT NULL auto_increment, | ||
| + | `page_descr` varchar(50) COLLATE utf8_general_ci NOT NULL default '', | ||
| + | PRIMARY KEY (`page_nr`), | ||
| + | KEY `db_name` (`db_name`) | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__recent` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__recent` ( | ||
| + | `username` varchar(64) NOT NULL, | ||
| + | `tables` text NOT NULL, | ||
| + | PRIMARY KEY (`username`) | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__favorite` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__favorite` ( | ||
| + | `username` varchar(64) NOT NULL, | ||
| + | `tables` text NOT NULL, | ||
| + | PRIMARY KEY (`username`) | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__table_uiprefs` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__table_uiprefs` ( | ||
| + | `username` varchar(64) NOT NULL, | ||
| + | `db_name` varchar(64) NOT NULL, | ||
| + | `table_name` varchar(64) NOT NULL, | ||
| + | `prefs` text NOT NULL, | ||
| + | `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
| + | PRIMARY KEY (`username`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__relation` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__relation` ( | ||
| + | `master_db` varchar(64) NOT NULL default '', | ||
| + | `master_table` varchar(64) NOT NULL default '', | ||
| + | `master_field` varchar(64) NOT NULL default '', | ||
| + | `foreign_db` varchar(64) NOT NULL default '', | ||
| + | `foreign_table` varchar(64) NOT NULL default '', | ||
| + | `foreign_field` varchar(64) NOT NULL default '', | ||
| + | PRIMARY KEY (`master_db`, | ||
| + | KEY `foreign_field` (`foreign_db`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__table_coords` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__table_coords` ( | ||
| + | `db_name` varchar(64) NOT NULL default '', | ||
| + | `table_name` varchar(64) NOT NULL default '', | ||
| + | `pdf_page_number` int(11) NOT NULL default ' | ||
| + | `x` float unsigned NOT NULL default ' | ||
| + | `y` float unsigned NOT NULL default ' | ||
| + | PRIMARY KEY (`db_name`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__table_info` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__table_info` ( | ||
| + | `db_name` varchar(64) NOT NULL default '', | ||
| + | `table_name` varchar(64) NOT NULL default '', | ||
| + | `display_field` varchar(64) NOT NULL default '', | ||
| + | PRIMARY KEY (`db_name`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__tracking` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__tracking` ( | ||
| + | `db_name` varchar(64) NOT NULL, | ||
| + | `table_name` varchar(64) NOT NULL, | ||
| + | `version` int(10) unsigned NOT NULL, | ||
| + | `date_created` datetime NOT NULL, | ||
| + | `date_updated` datetime NOT NULL, | ||
| + | `schema_snapshot` text NOT NULL, | ||
| + | `schema_sql` text, | ||
| + | `data_sql` longtext, | ||
| + | `tracking` set(' | ||
| + | `tracking_active` int(1) unsigned NOT NULL default ' | ||
| + | PRIMARY KEY (`db_name`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__userconfig` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__userconfig` ( | ||
| + | `username` varchar(64) NOT NULL, | ||
| + | `timevalue` timestamp NOT NULL, | ||
| + | `config_data` text NOT NULL, | ||
| + | PRIMARY KEY (`username`) | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__users` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__users` ( | ||
| + | `username` varchar(64) NOT NULL, | ||
| + | `usergroup` varchar(64) NOT NULL, | ||
| + | PRIMARY KEY (`username`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__usergroups` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__usergroups` ( | ||
| + | `usergroup` varchar(64) NOT NULL, | ||
| + | `tab` varchar(64) NOT NULL, | ||
| + | `allowed` enum(' | ||
| + | PRIMARY KEY (`usergroup`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__navigationhiding` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__navigationhiding` ( | ||
| + | `username` varchar(64) NOT NULL, | ||
| + | `item_name` varchar(64) NOT NULL, | ||
| + | `item_type` varchar(64) NOT NULL, | ||
| + | `db_name` varchar(64) NOT NULL, | ||
| + | `table_name` varchar(64) NOT NULL, | ||
| + | PRIMARY KEY (`username`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__savedsearches` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__savedsearches` ( | ||
| + | `id` int(5) unsigned NOT NULL auto_increment, | ||
| + | `username` varchar(64) NOT NULL default '', | ||
| + | `db_name` varchar(64) NOT NULL default '', | ||
| + | `search_name` varchar(64) NOT NULL default '', | ||
| + | `search_data` text NOT NULL, | ||
| + | PRIMARY KEY (`id`), | ||
| + | UNIQUE KEY `u_savedsearches_username_dbname` (`username`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | |||
| + | -- -------------------------------------------------------- | ||
| + | |||
| + | -- | ||
| + | -- Table structure for table `pma__central_columns` | ||
| + | -- | ||
| + | |||
| + | CREATE TABLE IF NOT EXISTS `pma__central_columns` ( | ||
| + | `db_name` varchar(64) NOT NULL, | ||
| + | `col_name` varchar(64) NOT NULL, | ||
| + | `col_type` varchar(64) NOT NULL, | ||
| + | `col_length` text, | ||
| + | `col_collation` varchar(64) NOT NULL, | ||
| + | `col_isNull` boolean NOT NULL, | ||
| + | `col_extra` varchar(255) default '', | ||
| + | `col_default` text, | ||
| + | PRIMARY KEY (`db_name`, | ||
| + | ) | ||
| + | COMMENT=' | ||
| + | DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | ||
| + | </ | ||
| + | |||
| + | Unser angepasstes Script laden wir dann auf unserem Datenbankhost mit nachfolgendem Befehl. | ||
| + | # mysql -h 127.0.0.1 -u root -p < / | ||
| + | |||
| + | Enter password: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | === Zugriff testen === | ||
| + | Zum Schluß überprüfen wir, ob der zuvor angelegt User/Zugang auch vom Webserver aus funktioniert. | ||
| + | # mysql -h mysql.dmz.nausch.org -D phpmyadmin -u controluser -p | ||
| + | |||
| + | < | ||
| + | Welcome to the MariaDB monitor. | ||
| + | Your MySQL connection id is 14121972 | ||
| + | Server version: 5.1.73 Source distribution | ||
| + | |||
| + | Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others. | ||
| + | |||
| + | Type ' | ||
| + | |||
| + | MariaDB [(none)]> | ||
| + | </ | ||
| + | | ||
| + | < | ||
| + | | Tables_in_phpmyadmin | ||
| + | +-----------------------+ | ||
| + | | pma__bookmark | ||
| + | | pma__central_columns | ||
| + | | pma__column_info | ||
| + | | pma__favorite | ||
| + | | pma__history | ||
| + | | pma__navigationhiding | | ||
| + | | pma__pdf_pages | ||
| + | | pma__recent | ||
| + | | pma__relation | ||
| + | | pma__savedsearches | ||
| + | | pma__table_coords | ||
| + | | pma__table_info | ||
| + | | pma__table_uiprefs | ||
| + | | pma__tracking | ||
| + | | pma__userconfig | ||
| + | | pma__usergroups | ||
| + | | pma__users | ||
| + | +-----------------------+ | ||
| + | 17 rows in set (0.00 sec) | ||
| + | |||
| + | MariaDB [(none)]> | ||
| + | </ | ||
| + | |||
| + | Da der Test positiv ausgefallen ist, können wie uns wieder von unserem Datenbankserver abmelden. | ||
| + | | ||
| + | |||
| + | Bye | ||
| + | |||
| + | |||
| + | |||
| + | |||
| ===== Anwendungskonfiguration ===== | ===== Anwendungskonfiguration ===== | ||
| ==== manueller Weg ==== | ==== manueller Weg ==== | ||
| - | Möchte man die PHP-Anwendung per Hand editieren | + | Möchte man die PHP-Anwendung per Hand editieren |
| + | $ firefox http:// | ||
| + | |||
| + | Zum Bearbeiten der Konfigurationsdatei nutzen wir z.B. **vim**. | ||
| # vim / | # vim / | ||
| - | <file php / | + | <file php / |
| - | /** | + | /** |
| - | * phpMyAdmin configuration file, you can use it as base for the manual | + | * phpMyAdmin configuration file, you can use it as base for the manual |
| - | * configuration. For easier setup you can use " | + | * configuration. For easier setup you can use " |
| - | | + | * |
| - | * All directives are explained in Documentation.html and on phpMyAdmin | + | * All directives are explained in Documentation.html and on phpMyAdmin |
| - | * wiki < | + | * wiki < |
| - | | + | */ |
| /* | /* | ||
| * This is needed for cookie based authentication to encrypt password in | * This is needed for cookie based authentication to encrypt password in | ||
| - | * cookie | + | * cookie |
| - | | + | */ |
| $cfg[' | $cfg[' | ||
| /** | /** | ||
| * Server(s) configuration | * Server(s) configuration | ||
| - | | + | */ |
| - | $i = 0; | + | $i = 0; |
| // The $cfg[' | // The $cfg[' | ||
| // $cfg[' | // $cfg[' | ||
| - | // to '' | + | // to '' |
| - | // (including $i incrementation) serveral times. There is no need to define | + | // (including $i incrementation) serveral times. There is no need to define |
| - | // full server array, just define values you need to change. | + | // full server array, just define values you need to change. |
| - | $i++; | + | $i++; |
| $cfg[' | $cfg[' | ||
| $cfg[' | $cfg[' | ||
| $cfg[' | $cfg[' | ||
| - | $cfg[' | + | $cfg[' |
| $cfg[' | $cfg[' | ||
| - | $cfg[' | + | $cfg[' |
| - | // (requires PHP >= 4.3.0) | + | // (requires PHP >= 4.3.0) |
| - | $cfg[' | + | $cfg[' |
| - | // (this user must have read-only | + | // (this user must have read-only |
| - | $cfg[' | + | $cfg[' |
| - | // and " | + | // and " |
| - | // The controluser is also | + | // The controluser is also |
| - | // used for all relational | + | // used for all relational |
| - | // features (pmadb) | + | // features (pmadb) |
| $cfg[' | $cfg[' | ||
| - | $cfg[' | + | $cfg[' |
| - | $cfg[' | + | $cfg[' |
| - | // with ' | + | // with ' |
| - | $cfg[' | + | $cfg[' |
| - | // this db is displayed in left frame | + | // this db is displayed in left frame |
| // It may also be an array of db-names, where sorting order is relevant. | // It may also be an array of db-names, where sorting order is relevant. | ||
| - | $cfg[' | + | $cfg[' |
| - | $cfg[' | + | $cfg[' |
| $cfg[' | $cfg[' | ||
| - | // (see scripts/ | + | // (see scripts/ |
| - | // - leave blank for no support | + | // - leave blank for no support |
| - | // | + | // |
| - | $cfg[' | + | $cfg[' |
| - | // - leave blank for no bookmark support | + | // - leave blank for no bookmark support |
| - | // | + | // |
| $cfg[' | $cfg[' | ||
| - | // - leave blank for no relation-links support | + | // - leave blank for no relation-links support |
| - | // | + | // |
| $cfg[' | $cfg[' | ||
| // - leave blank for no display fields | // - leave blank for no display fields | ||
| Zeile 1700: | Zeile 2126: | ||
| // | // | ||
| $cfg[' | $cfg[' | ||
| - | // - leave blank if you don't want to | + | // - leave blank if you don't want to |
| // | // | ||
| $cfg[' | $cfg[' | ||
| Zeile 1750: | Zeile 2176: | ||
| $ firefox http:// | $ firefox http:// | ||
| - | {{ : | + | {{ : |
| Als erstes definieren wir unseren Datenbank-Server. Hierzu klicken wir auf die Schaltfläche **[ Neuer Server ]**. | Als erstes definieren wir unseren Datenbank-Server. Hierzu klicken wir auf die Schaltfläche **[ Neuer Server ]**. | ||
| - | {{ : | + | {{ : |
| - | Haben wir die entsprechenden Daten eingegeben, klicken wir auf die grün markierte Schaltfläche **[ Übernehmen | + | Haben wir die entsprechenden Daten eingegeben, klicken wir auf die grün markierte Schaltfläche **[ Übernehmen ]**. |
| - | {{ : | + | {{ : |
| - | Bei Bedarf | + | Beim Reiter **Serverkonfiguration** |
| - | {{ : | + | {{ : |
| - | Die mit der Web-GUI erstellte Konfigurationsdatei finden | + | Die Einstellungen zum Konfigurationsspeicher **PMADB** legen wir auf dem Reiter |
| - | # less / | + | |
| - | <file php / | + | Datenbankname |
| - | /* | + | pmadb Host [ ] |
| - | * Generated configuration file | + | |
| - | * Generated by: phpMyAdmin 4.3.6 setup script | + | pmadb Benutzer |
| - | * Date: Thu, 22 Jan 2015 12:02:20 +0100 | + | pmadb Benutzer Passwort |
| - | */ | + | Lesezeichen Tabelle |
| + | Relation Tabelle | ||
| + | Tabelle für Benutzereinstellungen | ||
| + | Benutzer-Tabelle | ||
| + | Benutzergruppen-Tabelle | ||
| + | Tabelle für ausgeblendete Navigations-Elemente | ||
| + | Tabelle für Anzeigespalten | ||
| + | Spalten Informationen Tabelle | ||
| + | SQL Abfragehistorien Tabelle | ||
| + | Kürzlich verwendete Tabellen | ||
| + | Tabelle für Oberflächeneinstellungen | ||
| + | Tabelle mit Verfolgung der SQL-Abfragen | ||
| + | Designer- und PDF Schema: Tabellenkoordinaten | ||
| + | | ||
| + | Beispielabfragentabelle | ||
| + | Central columns tabele | ||
| + | | ||
| - | /* Servers configuration */ | + | {{ : |
| - | $i = 0; | + | |
| - | /* Server: mysql.dmz.nausch.org [1] */ | + | Auf dem Reiter **Grundeinstellungen** setzen wir den Haken **✔** beim Punkt **Benutze SSL**. |
| - | $i++; | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | /* End of servers configuration */ | + | {{ : |
| - | $cfg[' | + | Wie haben den Konfigurationspunkte **Übersicht** erfolgreich fertiggestellt. Nun Wählen wir den nächsten Konfigurationskapitel **Funktionen** am linken Bildschirmrand an. |
| - | $cfg[' | + | Auf dem Reiter **Import/Export** legen wir die beiden Verzeichnisse zum **Upload Verzeichnis** und **Speicher Verzeichnis** fest. |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | $cfg[' | + | |
| - | ?> | + | |
| - | </ | + | |
| - | ===== erweiterte Konfiguration ===== | + | {{ : |
| + | Upload Verzeichnis | ||
| + | Speicher Verzeichnis | ||
| + | Auf den Reiter **Sicherheit** setzen wir den Haken **✔** beim Punkt **SSL-Verbindung erzwingen**. | ||
| - | === Zugriff testen === | + | {{ : |
| - | Zum Schluß überprüfen wir, ob der zuvor angelegt User/Zugang auch vom Webserver aus funktioniert. | + | |
| - | # mysql -h mysql.dmz.nausch.org -D phpmyadmin -u controluser -p | + | |
| - | < | + | Beim Konfigurationskapitel **SQL-Abfragen** setzen wir den **✔** beim Punkt **Abfragelog speichern**. |
| - | Welcome to the MariaDB monitor. | + | |
| - | Your MySQL connection id is 14121972 | + | |
| - | Server version: 5.1.73 Source distribution | + | |
| - | Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others. | + | {{ : |
| - | Type ' | + | Auf den Reitern des Konfigurationskapitel **Navigationspanel** übernehmen wir die Defaultwerte. |
| - | MariaDB [(none)]> | + | Reiter **Navigationspanel**: |
| - | </ | + | |
| - | | + | |
| - | < | + | |
| - | | Tables_in_phpmyadmin | + | |
| - | +-----------------------+ | + | |
| - | | pma__bookmark | + | |
| - | | pma__central_columns | + | |
| - | | pma__column_info | + | |
| - | | pma__favorite | + | |
| - | | pma__history | + | |
| - | | pma__navigationhiding | | + | |
| - | | pma__pdf_pages | + | |
| - | | pma__recent | + | |
| - | | pma__relation | + | |
| - | | pma__savedsearches | + | |
| - | | pma__table_coords | + | |
| - | | pma__table_info | + | |
| - | | pma__table_uiprefs | + | |
| - | | pma__tracking | + | |
| - | | pma__userconfig | + | |
| - | | pma__usergroups | + | |
| - | | pma__users | + | |
| - | +-----------------------+ | + | |
| - | 17 rows in set (0.00 sec) | + | |
| - | MariaDB [(none)]> | + | {{ : |
| - | </ | + | |
| - | Da der Test positiv ausgefallen ist, können wie uns wieder von unserem Datenbankserver abmelden. | + | Reiter **Server**: |
| - | | + | |
| - | Bye | + | {{ : |
| + | Reiter **Datenbanken**: | ||
| - | FIXME //do geds weida ...// FIXME | + | {{ : |
| + | Reiter **Tabellen**: | ||
| + | {{ : | ||
| - | <file php config.inc.php><? | + | Wie auch schon beim Kapitel **Navigationspanel** übernehmen wir beim Kapitel **Hauptpanel** die Defaultwerte. |
| + | |||
| + | {{ : | ||
| + | |||
| + | Zum Speichern der Konfigurationswerte klicken wir im Konfigurationskapitel **Übersicht** auf die schaltfläche **[ Speichern ]** am unteren linke ende des Fensters. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Wollen wir die Konfigurationsdatei gesondert sichern, klicken wir auf die Schaltfläche **[ Download ]**. Bei Bedarf können wir uns die erstellte und gespeicherte Konfigurationsdaten auch anzeigen lassen; hierzu klicken wir auf die Schaltfläche **[ Anzeigen ]**. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Die mit der Web-GUI erstellte Konfigurationsdatei finden wir im Verzeichnis // | ||
| + | # less / | ||
| + | <file php / | ||
| /* | /* | ||
| * Generated configuration file | * Generated configuration file | ||
| * Generated by: phpMyAdmin 4.3.6 setup script | * Generated by: phpMyAdmin 4.3.6 setup script | ||
| - | * Date: Thu, 29 Jan 2015 15:51:43 +0100 | + | * Date: Thu, 29 Jan 2015 15:50:25 +0100 |
| */ | */ | ||
| Zeile 1904: | Zeile 2315: | ||
| /* End of servers configuration */ | /* End of servers configuration */ | ||
| - | $cfg[' | + | $cfg[' |
| $cfg[' | $cfg[' | ||
| $cfg[' | $cfg[' | ||
| Zeile 1910: | Zeile 2321: | ||
| $cfg[' | $cfg[' | ||
| $cfg[' | $cfg[' | ||
| + | $cfg[' | ||
| + | $cfg[' | ||
| + | $cfg[' | ||
| ?> | ?> | ||
| </ | </ | ||
| + | ==== abschließende Konfiguration ==== | ||
| - | ===== abschließende Konfiguration ===== | + | Die erstelle Konfigurationsdatei |
| - | + | ||
| - | Diese Datei verschieben wir nun in das Konfigurationsverzeichnis // | + | |
| # mv / | # mv / | ||
| Zeile 1926: | Zeile 2339: | ||
| # rmdir / | # rmdir / | ||
| - | Nun können | + | Für die **Import / Export** Funktion benötigen |
| - | $ firefox http:// | + | # yum install recode php-recode -y |
| - | {{ : | + | Haben wir eine mySQL-Datenbank, |
| - | + | ||
| - | Nach erfolgter Anmeldung befinden wir uns im Hauptadministrationsfenster von **phpMyAdmin**. | + | |
| - | {{ : | + | {{ : |
| <WRAP center round tip 80%> | <WRAP center round tip 80%> | ||
| **Hinweis: | **Hinweis: | ||
| - | |||
| Fehlermeldung **phpMyAdmin - Fehler** | Fehlermeldung **phpMyAdmin - Fehler** | ||
| //Sie sollten auf MySQL 5.5.0 oder neuer aktualisieren.// | //Sie sollten auf MySQL 5.5.0 oder neuer aktualisieren.// | ||
| + | Damit wir unsere alte Datenbank mit **phpMyAdmin** administrieren können, ändern wir wie nachfolgend aufgezeigt, die Datei **common.inc.php**. | ||
| # vim / | # vim / | ||
| Zeile 1955: | Zeile 2366: | ||
| </ | </ | ||
| - | # yum install php-recode | + | ===== Programmstart/ |
| - | + | Nun können wir die Applikation **phpMyAdmin** mit dem Browser unserer Wahl starten. | |
| + | $ firefox http:// | ||
| + | {{ : | ||
| + | Nach erfolgter Anmeldung befinden wir uns im Hauptadministrationsfenster von **phpMyAdmin**. | ||
| + | {{ : | ||
| + | ====== Links ====== | ||
| + | * **[[centos: | ||
| + | * **[[wiki: | ||
| + | * **[[http:// | ||