Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| centos:mariadb [08.03.2015 00:13. ] – angelegt django | centos:mariadb [22.07.2019 14:52. ] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 10: | Zeile 10: | ||
| * [[wetter: | * [[wetter: | ||
| * [[centos: | * [[centos: | ||
| + | * [[centos: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| Zeile 22: | Zeile 23: | ||
| < | < | ||
| Epoch : 1 | Epoch : 1 | ||
| - | Version | + | Version |
| - | Release | + | Release |
| Architecture: | Architecture: | ||
| - | Install Date: Sat 07 Mar 2015 09:24:40 PM CET | + | Install Date: Mon 20 Feb 2017 06:20:37 PM CET |
| Group : Applications/ | Group : Applications/ | ||
| - | Size : 58205155 | + | Size : 58204272 |
| License | License | ||
| - | Signature | + | Signature |
| - | Source RPM : mariadb-5.5.41-2.el7_0.src.rpm | + | Source RPM : mariadb-5.5.52-1.el7.src.rpm |
| - | Build Date : Thu 05 Feb 2015 05:12:40 PM CET | + | Build Date : Tue 15 Nov 2016 02:20:59 AM CET |
| - | Build Host : worker1.bsys.centos.org | + | Build Host : c1bm.rdu2.centos.org |
| Relocations : (not relocatable) | Relocations : (not relocatable) | ||
| Packager | Packager | ||
| Zeile 82: | Zeile 83: | ||
| / | / | ||
| / | / | ||
| - | / | ||
| / | / | ||
| / | / | ||
| Zeile 89: | Zeile 89: | ||
| / | / | ||
| / | / | ||
| - | / | ||
| / | / | ||
| / | / | ||
| Zeile 147: | Zeile 146: | ||
| / | / | ||
| / | / | ||
| - | / | + | / |
| - | </ | + | |
| ===== Konfiguration ===== | ===== Konfiguration ===== | ||
| Zeile 177: | Zeile 175: | ||
| Zusätzliche Beispiele finden sich übrigens auch im Verzeichnis // | Zusätzliche Beispiele finden sich übrigens auch im Verzeichnis // | ||
| # ll / | # ll / | ||
| - | < | + | < |
| - | -rw-r--r--. 1 root root 20438 Feb 5 15:44 / | + | -rw-r--r--. 1 root root 20438 Nov 15 00:14 / |
| - | -rw-r--r--. 1 root root 4907 Feb 5 15:44 / | + | -rw-r--r--. 1 root root 4907 Nov 15 00:14 / |
| - | -rw-r--r--. 1 root root 4920 Feb 5 15:44 / | + | -rw-r--r--. 1 root root 4920 Nov 15 00:14 / |
| - | -rw-r--r--. 1 root root 2846 Feb 5 15:44 / | + | -rw-r--r--. 1 root root 2846 Nov 15 00:14 / |
| </ | </ | ||
| Zeile 194: | Zeile 192: | ||
| ==== erster Start ==== | ==== erster Start ==== | ||
| Nun ist es an der Zeit unseren Datenbank-Server das erste mal zu starten. | Nun ist es an der Zeit unseren Datenbank-Server das erste mal zu starten. | ||
| - | # systemctl start mariadb | + | # systemctl start mariadb.service |
| Der Start wird im Logfile des Datenbankservers // | Der Start wird im Logfile des Datenbankservers // | ||
| # less / | # less / | ||
| - | < | + | < |
| - | 150307 22:10:14 InnoDB: The InnoDB memory heap is disabled | + | 170220 18:25:10 [Note] / |
| - | 150307 22:10:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins | + | 170220 18:25:10 InnoDB: The InnoDB memory heap is disabled |
| - | 150307 22:10:14 InnoDB: Compressed tables use zlib 1.2.7 | + | 170220 18:25:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins |
| - | 150307 22:10:14 InnoDB: Using Linux native AIO | + | 170220 18:25:10 InnoDB: Compressed tables use zlib 1.2.7 |
| - | 150307 22:10:14 InnoDB: Initializing buffer pool, size = 128.0M | + | 170220 18:25:10 InnoDB: Using Linux native AIO |
| - | 150307 22:10:14 InnoDB: Completed initialization of buffer pool | + | 170220 18:25:10 InnoDB: Initializing buffer pool, size = 128.0M |
| + | 170220 18:25:10 InnoDB: Completed initialization of buffer pool | ||
| InnoDB: The first specified data file ./ibdata1 did not exist: | InnoDB: The first specified data file ./ibdata1 did not exist: | ||
| InnoDB: a new database to be created! | InnoDB: a new database to be created! | ||
| - | 150307 22:10:14 | + | 170220 18:25:10 |
| InnoDB: Database physically writes the file full: wait... | InnoDB: Database physically writes the file full: wait... | ||
| - | 150307 22:10:14 | + | 170220 18:25:10 |
| InnoDB: Setting log file ./ | InnoDB: Setting log file ./ | ||
| InnoDB: Database physically writes the file full: wait... | InnoDB: Database physically writes the file full: wait... | ||
| - | 150307 22:10:14 | + | 170220 18:25:10 |
| InnoDB: Setting log file ./ | InnoDB: Setting log file ./ | ||
| InnoDB: Database physically writes the file full: wait... | InnoDB: Database physically writes the file full: wait... | ||
| Zeile 220: | Zeile 219: | ||
| InnoDB: Creating foreign key constraint system tables | InnoDB: Creating foreign key constraint system tables | ||
| InnoDB: Foreign key constraint system tables created | InnoDB: Foreign key constraint system tables created | ||
| - | 150307 22:10:15 | + | 170220 18:25:11 |
| - | 150307 22:10:16 Percona XtraDB (http:// | + | 170220 18:25:12 Percona XtraDB (http:// |
| - | 150307 22:10:16 [Note] Plugin ' | + | 170220 18:25:12 [Note] Plugin ' |
| - | 150307 22:10:16 [Note] Server socket created on IP: ' | + | 170220 18:25:12 [Note] Server socket created on IP: ' |
| - | 150307 22:10:16 [Note] Event Scheduler: Loaded 0 events | + | 170220 18:25:12 [Note] Event Scheduler: Loaded 0 events |
| - | 150307 22:10:16 [Note] / | + | 170220 18:25:12 [Note] / |
| - | Version: '5.5.41-MariaDB' | + | Version: '5.5.52-MariaDB' |
| </ | </ | ||
| Zeile 247: | Zeile 246: | ||
| Möchten wir überprüfen, | Möchten wir überprüfen, | ||
| - | - **systemctl** \\ < | + | - **systemctl** \\ < |
| - | | + | <font style=" |
| - | | + | |
| - | Process: | + | |
| - | Process: | + | Process: |
| - | Main PID: 27039 (mysqld_safe) | + | Process: |
| + | Main PID: 3098 (mysqld_safe) | ||
| | | ||
| - | | + | |
| - | | + | |
| - | Mar 07 22:10:13 vml000117.dmz.nausch.org mariadb-prepare-db-dir[26961]: The latest information about MariaDB is available | + | Feb 20 18:25:10 vml000117.dmz.nausch.org mariadb-prepare-db-dir[3019]: To start mysqld |
| - | Mar 07 22:10:13 vml000117.dmz.nausch.org mariadb-prepare-db-dir[26961]: You can find additional information about the MySQL part at: | + | Feb 20 18:25:10 vml000117.dmz.nausch.org mariadb-prepare-db-dir[3019]: support-files/ |
| - | Mar 07 22:10:13 vml000117.dmz.nausch.org mariadb-prepare-db-dir[26961]: http:// | + | Feb 20 18:25:10 vml000117.dmz.nausch.org mariadb-prepare-db-dir[3019]: PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER ! |
| - | Mar 07 22:10:13 vml000117.dmz.nausch.org mariadb-prepare-db-dir[26961]: Support MariaDB development by buying support/new features from MariaDB | + | Feb 20 18:25:10 vml000117.dmz.nausch.org mariadb-prepare-db-dir[3019]: To do so, start the server, then issue the following commands: |
| - | Mar 07 22:10:13 vml000117.dmz.nausch.org mariadb-prepare-db-dir[26961]: Corporation Ab. You can contact us about this at sales@mariadb.com. | + | Feb 20 18:25:10 vml000117.dmz.nausch.org mariadb-prepare-db-dir[3019]: '/ |
| - | Mar 07 22:10:13 vml000117.dmz.nausch.org mariadb-prepare-db-dir[26961]: Alternatively consider joining our community based development effort: | + | Feb 20 18:25:10 vml000117.dmz.nausch.org mariadb-prepare-db-dir[3019]: '/ |
| - | Mar 07 22:10:13 vml000117.dmz.nausch.org mariadb-prepare-db-dir[26961]: http:// | + | Feb 20 18:25:10 vml000117.dmz.nausch.org mariadb-prepare-db-dir[3019]: Alternatively you can run: |
| - | Mar 07 22:10:14 vml000117.dmz.nausch.org mysqld_safe[27039]: 150307 22:10:14 mysqld_safe Logging to '/ | + | Feb 20 18:25:10 vml000117.dmz.nausch.org mysqld_safe[3098]: 170220 18:25:10 mysqld_safe Logging to '/ |
| - | Mar 07 22:10:14 vml000117.dmz.nausch.org mysqld_safe[27039]: 150307 22:10:14 mysqld_safe Starting mysqld daemon with databases from / | + | Feb 20 18:25:10 vml000117.dmz.nausch.org mysqld_safe[3098]: 170220 18:25:10 mysqld_safe Starting mysqld daemon with databases from / |
| - | Mar 07 22:10:17 vml000117.dmz.nausch.org systemd[1]: Started MariaDB database server.</ | + | Feb 20 18:25:12 vml000117.dmz.nausch.org systemd[1]: Started MariaDB database server.</ |
| + | </ | ||
| - **ps** \\ < | - **ps** \\ < | ||
| mysql 27198 0.0 8.3 905348 84784 ? Sl | mysql 27198 0.0 8.3 905348 84784 ? Sl | ||
| Zeile 720: | Zeile 721: | ||
| ==== Datenbank-Dump ==== | ==== Datenbank-Dump ==== | ||
| Zur Sicherung unserer MariaDB-Tabellen legen wir uns ein kleines Script an, mit dessen Hilfe wir täglich eine Sicherung der kompletten Datenbank vornehmen können. | Zur Sicherung unserer MariaDB-Tabellen legen wir uns ein kleines Script an, mit dessen Hilfe wir täglich eine Sicherung der kompletten Datenbank vornehmen können. | ||
| - | # touch /root/bin/mysql_fulldump | + | # touch /root/bin/mariadb_fulldump |
| Damit das Script später auch nur vom User **root** gelesen udn ausgeführt werden kann, setzen wir noch kurz die Dateirechte entsprechend. | Damit das Script später auch nur vom User **root** gelesen udn ausgeführt werden kann, setzen wir noch kurz die Dateirechte entsprechend. | ||
| - | # chmod 700 /root/bin/mysql_fulldump | + | # chmod 700 /root/bin/mariadb_fulldump |
| Nun efüllen wir noch unser Script. | Nun efüllen wir noch unser Script. | ||
| - | # vim /root/bin/mysql_fulldump | + | # vim /root/bin/mariadb_fulldump |
| - | <file bash /root/bin/mysql_fulldump># | + | <file bash /root/bin/mariadb_fulldump># |
| ################################################################################## | ################################################################################## | ||
| # Script-Name : mysqldump.sh | # Script-Name : mysqldump.sh | ||
| # Description : Datenbank-Dump der kompletten (alle Tabellen) unserer | # Description : Datenbank-Dump der kompletten (alle Tabellen) unserer | ||
| - | # MySQL-Datenbank | + | # MariaDB |
| # Drei Datensicherungen werden aufgehoben, ältere werden gelöscht. # | # Drei Datensicherungen werden aufgehoben, ältere werden gelöscht. # | ||
| # # | # # | ||
| Zeile 757: | Zeile 758: | ||
| # Script-Name. | # Script-Name. | ||
| - | SCRIPT_NAME=' | + | SCRIPT_NAME=' |
| # Backup-Verzeichnis. | # Backup-Verzeichnis. | ||
| Zeile 832: | Zeile 833: | ||
| log "" | log "" | ||
| log " | log " | ||
| - | log "| .................... Start des MySQL-Datenbank-Dumps ........................ |" | + | log " |
| log " | log " | ||
| log "" | log "" | ||
| Zeile 985: | Zeile 986: | ||
| # Finish syncing. | # Finish syncing. | ||
| log " | log " | ||
| - | log "| ..................... Ende des MySQL-Datenbank-Dumps ........................ |" | + | log " |
| log " | log " | ||
| log "" | log "" | ||
| Zeile 998: | Zeile 999: | ||
| exit 0 | exit 0 | ||
| - | </file | + | </file> |
| + | |||
| + | |||
| + | Anschließend tragen wir noch in der Datei **/ | ||
| + | # vim / | ||
| + | |||
| + | <file bash / | ||
| + | PATH=/ | ||
| + | MAILTO=root | ||
| + | HOME=/ | ||
| + | |||
| + | # For details see man 4 crontabs | ||
| + | |||
| + | # Example of job definition: | ||
| + | # .---------------- minute (0 - 59) | ||
| + | # | .------------- hour (0 - 23) | ||
| + | # | | .---------- day of month (1 - 31) | ||
| + | # | | | .------- month (1 - 12) OR jan, | ||
| + | # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun, | ||
| + | # | | | | | | ||
| + | # * * * * * user-name command to be executed | ||
| + | |||
| + | # Django: 2013-05-13 täglicher MariaDB-Datenbankdump | ||
| + | 20 3 * * root / | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== phpMyAdmin ==== | ||
| + | Zur komfortablen Administration unserer [[centos: | ||
| + | |||
| + | ====== Links ====== | ||
| + | * **[[wiki: | ||
| + | * **[[http:// | ||
| + | |||