Create a database and assign a dedicated user for an application on your hosting account.
Before you start
Identify the application and known database references. Export a copy before renaming or removing a live database or changing access.
What to do
- In cPanel open Database Wizard or the MySQL database management screen, depending on your version.
- Create the database and a dedicated database user. Note the full names, including any account prefix.
- Assign the user to the database and grant the privileges the application requires. Use the supplied hostname and update the application’s configuration securely.
- Before retiring or renaming a database, check which applications use it. Do not delete the old database until the replacement is tested.
Check that it worked
Run a normal task in the application that reads and writes data. Confirm it uses the intended database.
If it does not work
Check the database and user prefixes, hostname, password, and assigned permissions if the app cannot connect. Avoid granting unrelated accounts access just to clear an error.