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 Tools page.
- Im Datenbanken Abschnitt, klicken Manage My Databases.
- Unter Add New User, enter a username.
- Set and confirm a strong password or use the password generator.
- Klicken Create User.
[Screenshot placeholder: Add New MySQL User]
Changing a user password
- Offen Manage My Databases.
- Unter Current Users, locate the user.
- Klicken Change Password.
- Set and confirm the new password.
- Save the changes.
Update application configuration files to match the new credentials.
Renaming a user
- Offen Manage My Databases.
- Unter Current Users, 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 Manage My Databases.
- Unter Current Users, klicken Löschen.
- Bestätigen Sie den Löschvorgang.
Ensure no applications rely on the user before removal.
Managing databases
After creating users, create databases and assign appropriate privileges.
Creating a database
- Offen Manage My Databases.
- 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 Add User to Database, select a user.
- Select the target database.
- Klicken Hinzufügen.
- Assign specific privileges or select ALL PRIVILEGES.
- Klicken Make Changes.
[Screenshot placeholder: 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.
Deleting a database
Deleting a database permanently removes its data.
- Offen Manage My Databases.
- Unter Current Databases, klicken Löschen next to the database.
- Bestätigen Sie den Löschvorgang.
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 or a Dedizierter Server provide greater control over database performance, Zugang, and recovery options.