click to investigate imitation watches.Up To 90% Off rolexrolexwatches.At Discount Price off replica rolex.Under $200 replicas relojes.try this website richard mille replica.65% off swiss replica watches.see replica rolex.resource perfect replica watches.see it here swiss watches replica.his explanation replica 1:1 watches.pop over to this site replica patek philipe.their explanation information about richard mille replica ebay.check this site out hints rolex replications for sale.Related Site tag heuer monaco replica.browse around these guys replica breitling.

How to Grant Permissions to a MySQL User on Linux

by Ismail.EL
0 comment

The GRANT statement grants privileges to MySQL user accounts.

To use GRANT, you must have the GRANT OPTION privilege, and you must have the privileges that you are granting. GRANT additionally requires the SUPER privilege.

Step 1: Login to MySQL:

To begin, sign into MySQL with the following command:

Enter the administrator password you set up during installation.

Step 2: Grant Permissions to MySQL User :

Here is a short list of commonly used permissions :

  • ALL : Allow complete access to a specific database. If a database is not specified, then allow complete access to the entirety of MySQL.
  • CREATE : Allow a user to create databases and tables.
  • DELETE : Allow a user to delete rows from a table.
  • DROP : Allow a user to drop databases and tables.
  • EXECUTE : Allow a user to execute stored routines.
  • GRANT OPTION : Allow a user to grant or remove another user’s privileges.
  • INSERT : Allow a user to insert rows from a table.
  • SELECT : Allow a user to select data from a database.
  • SHOW DATABASES : Allow a user to view a list of all databases.
  • SHOW VIEW : Enable use of SHOW CREATE VIEW. Levels: Global, database, table.
  • UPDATE : Allow a user to update rows in a table.
  • CREATE VIEW  :  Enable views to be created or altered. Levels: Global, database, table.

Example 1: To grant TestUser the ability to drop tables in the specific database tutorials_space_db , use the DROP permission:

Example 2: To grant CREATE permissions for all databases * and all tables * to the user TestUser (we created in the previous tutorial) use the CREATE permission:

Example 3: To grant  CREATE USER to User ‘TestUser’ use the CREATE USER permission:

Step 3: View Grants for MySQL User :

After you’ve granted permissions to a MySQL user if you want to know and check them you can use the following command to check the grants for TestUser :


IIn this post, i have explained hHow to Grant Permissions to a MySQL User on Linux.
If you have any questions or feedback, feel free to leave a comment.
As always, if you found this post useful, then click like and share it 🙂

19450cookie-checkHow to Grant Permissions to a MySQL User on Linux

Related Posts

Leave a Comment