Debug School

rakesh kumar
rakesh kumar

Posted on

mysql:How to create a database and grant privileges for database user.

how-to-create-a-database-and-grant-privileges-for-database-user
1.How to create a database and grant privileges for database user.
2.Login using username root and root password

Image description

3.Click on Databases tab

Image description
4.Enter database name, select collation (you may leave it to default) and click create.

Image description
5.Click on Privileges tab and select "Add user account".

Image description
6.You can select localhost if the connection is made only form local. Select "any host" if you are planing to connect from different hosts.
Enter new username and password.

Image description
7.Enter new username and password.

Image description
8.Select the privileges you need for that user.
9.Click on Database tab and select the database for which you need to give access(in our case the newly created database in step 4). Click Go.

Top comments (0)