Wie man Adminer zur Verwaltung von Datenbanken verwendet
Was ist Adminer
Adminer ist ein leichtgewichtiges Datenbankverwaltungstool, das mehrere Datenbanksysteme wie MySQL, MariaDB, PostgreSQL, SQLite usw. unterstützt. Im Vergleich zu anderen Datenbankverwaltungstools bietet Adminer die folgenden bemerkenswerten Vorteile:
- Einzeldatei-Deployment: Adminer kann mit nur einer PHP-Datei betrieben werden, was die Bereitstellung und Nutzung erheblich vereinfacht.
- Unterstützung für mehrere Datenbanken: Adminer kann mehrere Datenbanksysteme verwalten, was es zu einem multifunktionalen Werkzeug für Entwickler macht.
- Einfache Benutzeroberfläche: Adminer bietet eine intuitive und übersichtliche Benutzeroberfläche, die es Entwicklern erleichtert, verschiedene Datenbankoperationen durchzuführen.
- Leistungsfähige Funktionen: Adminer bietet umfassende Datenbankverwaltungsfunktionen, einschließlich Erstellen, Ändern, Löschen von Datenbanken und Tabellen, Ausführen von SQL-Abfragen, Importieren und Exportieren von Daten usw.
Für Entwickler erhöht Adminer nicht nur die Arbeitseffizienz, sondern vereinfacht auch die Komplexität der Datenbankverwaltung.
Adminer aufrufen
ServBay hat bereits Adminer integriert. Sie können Adminer über die folgende Adresse aufrufen: https://servbay.host/adminer.php
Verwaltung der integrierten MariaDB (MySQL) Datenbank von ServBay mit Adminer
In den Server einloggen
- Öffnen Sie Ihren Browser und rufen Sie die URL von Adminer auf.
- Wählen Sie im Login-Bildschirm den Datenbanktyp "MySQL" aus.
- Geben Sie die Verbindungsinformationen des Servers ein:
- Benutzername und Passwort: Diese können Sie unter 'Einstellungen' -> 'Datenbank' in ServBay erhalten.
- Server:
localhost
oder/Applications/ServBay/tmp/mysql.sock
- Klicken Sie auf die Schaltfläche "Login", um zur Datenbankverwaltungsoberfläche zu gelangen.
Datenbank erstellen
- Nach erfolgreichem Login klicken Sie im linken Menü auf "Datenbank erstellen".
- Geben Sie den Namen der Datenbank ein.
- Klicken Sie auf die Schaltfläche "Speichern", um die Datenbank zu erstellen.
Daten hinzufügen
- Wählen Sie die soeben erstellte Datenbank aus.
- Klicken Sie auf "Tabelle erstellen".
- Geben Sie den Tabellennamen und die Feldinformationen ein.
- Klicken Sie auf die Schaltfläche "Speichern", um die Tabelle zu erstellen.
- Wählen Sie die erstellte Tabelle aus und klicken Sie auf "Einfügen".
- Geben Sie die Daten ein und klicken Sie auf die Schaltfläche "Speichern".
Daten löschen
- Wählen Sie die Tabelle aus, in der Sie arbeiten möchten.
- Klicken Sie auf die Schaltfläche "Auswählen" und wählen Sie die zu löschenden Datenzeilen aus.
- Klicken Sie auf die Schaltfläche "Löschen", um die Löschung zu bestätigen.
Datenbank löschen
- Wählen Sie die zu löschende Datenbank in der Datenbankliste aus.
- Klicken Sie auf die Schaltfläche "Löschen".
- Bestätigen Sie den Löschvorgang.
Verwaltung der integrierten PostgreSQL-Datenbank von ServBay mit Adminer
In den Server einloggen
- Öffnen Sie Ihren Browser und rufen Sie die URL von Adminer auf.
- Wählen Sie im Login-Bildschirm den Datenbanktyp "PostgreSQL" aus.
- Geben Sie die Verbindungsinformationen des Servers ein:
- Benutzername und Passwort: Diese können Sie unter 'Einstellungen' -> 'Datenbank' in ServBay erhalten.
- Server:
/Applications/ServBay/tmp
- Datenbank:
postgres
oder andere Datenbanken, die Sie verwalten dürfen
- Klicken Sie auf die Schaltfläche "Login", um zur Datenbankverwaltungsoberfläche zu gelangen.
Datenbank erstellen
- Nach erfolgreichem Login klicken Sie im linken Menü auf "Datenbank erstellen".
- Geben Sie den Namen der Datenbank ein.
- Klicken Sie auf die Schaltfläche "Speichern", um die Datenbank zu erstellen.
Daten hinzufügen
- Wählen Sie die soeben erstellte Datenbank aus.
- Klicken Sie auf "Tabelle erstellen".
- Geben Sie den Tabellennamen und die Feldinformationen ein.
- Klicken Sie auf die Schaltfläche "Speichern", um die Tabelle zu erstellen.
- Wählen Sie die erstellte Tabelle aus und klicken Sie auf "Einfügen".
- Geben Sie die Daten ein und klicken Sie auf die Schaltfläche "Speichern".
Daten löschen
- Wählen Sie die Tabelle aus, in der Sie arbeiten möchten.
- Klicken Sie auf die Schaltfläche "Auswählen" und wählen Sie die zu löschenden Datenzeilen aus.
- Klicken Sie auf die Schaltfläche "Löschen", um die Löschung zu bestätigen.
Datenbank löschen
- Wählen Sie die zu löschende Datenbank in der Datenbankliste aus.
- Klicken Sie auf die Schaltfläche "Löschen".
- Bestätigen Sie den Löschvorgang.
Verwaltung der SQLite 3-Datenbank mit Adminer
In den Server einloggen
- Öffnen Sie Ihren Browser und rufen Sie die URL von Adminer auf.
- Wählen Sie im Login-Bildschirm den Datenbanktyp "SQLite 3" aus.
- Geben Sie den Pfad zur Datenbankdatei ein: Es wird empfohlen, die DB-Datei im Verzeichnis
/Applications/ServBay/db/sqlite
abzulegen. - Klicken Sie auf die Schaltfläche "Login", um zur Datenbankverwaltungsoberfläche zu gelangen.
Datenbank erstellen
- Geben Sie im Feld für den Datenbankdateipfad den Namen der neuen Datenbankdatei ein.
- Klicken Sie auf die Schaltfläche "Speichern", um die Datenbank zu erstellen.
Daten hinzufügen
- Wählen Sie die soeben erstellte Datenbank aus.
- Klicken Sie auf "Tabelle erstellen".
- Geben Sie den Tabellennamen und die Feldinformationen ein.
- Klicken Sie auf die Schaltfläche "Speichern", um die Tabelle zu erstellen.
- Wählen Sie die erstellte Tabelle aus und klicken Sie auf "Einfügen".
- Geben Sie die Daten ein und klicken Sie auf die Schaltfläche "Speichern".
Daten löschen
- Wählen Sie die Tabelle aus, in der Sie arbeiten möchten.
- Klicken Sie auf die Schaltfläche "Auswählen" und wählen Sie die zu löschenden Datenzeilen aus.
- Klicken Sie auf die Schaltfläche "Löschen", um die Löschung zu bestätigen.
Datenbank löschen
- Wählen Sie die zu löschende Datenbankdatei im Datenbankdateipfad aus.
- Löschen Sie die Datei manuell oder verwenden Sie ein Dateiverwaltungstool.
Durch die oben genannten Schritte können Sie Adminer zur Verwaltung verschiedener Datenbanksysteme, die in ServBay integriert sind, problemlos nutzen. Die einfache Benutzeroberfläche und die leistungsfähigen Funktionen von Adminer werden Ihre Effizienz bei der Datenbankverwaltung erheblich steigern.