cPanel provides a centralized interface for creating and maintaining MySQL databases, database users, and access permissions. Proper database management is essential for application stability, Sicherheit, und Leistung.
These features are available on standard cPanel-Hosting Umgebungen.
Managing database users
Database users authenticate applications and control access to data. Create users before assigning them to databases.
Creating a database user
- Melden Sie sich bei cPanel an.
- Öffnen Sie die Werkzeuge Seite.
- Im Datenbanken Abschnitt, klicken Meine Datenbanken verwalten.
- Unter Neuen Benutzer hinzufügen, enter a username.
- Set and confirm a strong password or use the password generator.
- Klicken Benutzer erstellen.
[Screenshot-Platzhalter: Add New MySQL User]
Changing a user password
- Offen Meine Datenbanken verwalten.
- Unter Aktuelle Benutzer, locate the user.
- Klicken Change Password.
- Set and confirm the new password.
- Speichern Sie die Änderungen.
Update application configuration files to match the new credentials.
Renaming a user
- Offen Meine Datenbanken verwalten.
- Unter Aktuelle Benutzer, klicken Rename next to the user.
- Enter the new name and proceed.
Deleting a user
Deleting a user removes all database privileges for that user.
- Offen Meine Datenbanken verwalten.
- Unter Aktuelle Benutzer, klicken Löschen.
- Confirm the deletion.
Ensure no applications rely on the user before removal.
Managing databases
After creating users, create databases and assign appropriate privileges.
Erstellen einer Datenbank
- Offen Meine Datenbanken verwalten.
- Unter Create New Database, enter a database name.
- Klicken Create Database.
Database names are automatically prefixed with your account username.
Adding a user to a database
- Unter Benutzer zur Datenbank hinzufügen, select a user.
- Select the target database.
- Klicken Hinzufügen.
- Assign specific privileges or select ALLE PRIVILEGIEN.
- Klicken Make Changes.
[Screenshot-Platzhalter: Assign User Privileges]
Checking and repairing a database
- Unter Modify Databases, select a database in Check Database.
- Klicken Check Database.
- If issues are found, select the database under Repair Database.
- Klicken Repair Database.
Revoking user privileges
- Unter Current Databases, locate the database.
- Click the remove icon next to the user.
- Confirm Revoke User Privileges from Database.
Löschen einer Datenbank
Deleting a database permanently removes its data.
- Offen Meine Datenbanken verwalten.
- Unter Current Databases, klicken Löschen next to the database.
- Confirm the deletion.
Create a backup before deletion if data retention is required.
Scaling and operational considerations
For applications with higher load, larger datasets, or custom backup strategies, environments such as Cloud-Server oder ein Dedizierter Server provide greater control over database performance, Zugang, and recovery options.
