In the previous post, I have written about creating a MySQL database using control panel in linux hosting. Now lets see how to add users to the newly created database.
Here, two steps are involved. First is creating the user and second is adding the user to the database. So lets see how to do that.
#1. Creating MySQL User
- Login to your webhosting account.
- Go to control panel (cPanel).
- Select MySQL Databases
- Scroll down to MySQL Users
- Type in the desired username and password in the input form.
- And click on create user.
- This will create a new MySQL user.
But not that, this newly created MySQL user has no access to any MySQL database. So to associate this MySQL user to any database you’ll need to follow step 2.
#2. Adding MySQL User To MySQL Database
Once you create a new user, stay on the same page and scroll down. You can see Add User To Database option. This is where you will have to select the User and select the Database from a drop down menu. After selecting the user and database, just click on Add button and you are good to go.
You can now use this newly created database for installing WordPress, Joomla, etc.