Log in your cPanel -> MySQL Databases. Find the corresponding database and see which is the user attached to it. For example we will consider that your database is called yourusername_database and the database user attached to it is yourusername_user.
Scroll to the bottom of the page and you will see a field called Current Users. There is a little circle with X in it – press it to delete the database user yourusername_user.
You will be prompted to confirm this action:
Are you sure you wish to permanently remove user yourusername_user?
Click on the Delete User button in order for the database user to be successfully deleted.
Then you should create a new database user:
Go back to cPanel -> MySQL Databases and create a new user:
Type the same database username and type (or generate) the new password for it. Bear in mind that you will be able to change only the user part of the database name yourusername_user. The prefix yourusername_ is added by default by the system.
When the MySQL user is created you have to attach it to your database/s. On the same page you will find a section called Add User To Database – just assign the database user to the desired database/s and grant all privileges for it.
NB: Note that if the database is used by a script/web application (WordPress, Joomla etc.) you will have to reconfigure it and set the new password inside its configuration file. If you are not certain how to do this, you can open a new ticket to support department and we will gladly assist you with the re-configuration.
- 0 Utenti hanno trovato utile questa risposta
The name of a MySQL database consists of a prefix, which is your cPanel username, followed by a...
Usually you will be interested in changing your MySQL collation in order to solve problems with...
The easiest way to empty a MySQL database is through phpMyAdmin. Once in phpMyAdmin, select the...
In this article we will show you how to change the database engine of a MySQL table. Let's...
When you develop your website, you may have to compare a certain date/time with the current...