diff --git a/MySQL-tips.md b/MySQL-tips.md index 2f7f0fb..c4badb0 100644 --- a/MySQL-tips.md +++ b/MySQL-tips.md @@ -100,17 +100,14 @@ This tips were prepared for [[Install Tracks 2.5 on Ubuntu 20.10]]

>mysql -u daniel -p tempe < ~/tracks.sql

Assign privileges for a user on a database

+

refman/8.0/ grant-privileges

These are examples on how to grant some privileges

- -mysql> GRANT USAGE ON *.* TO thisuser/strong> @localhost;
-mysql> GRANT ALL PRIVILEGES ON thisdb .* TO thisuser/strong> @localhost;
-mysql> GRANT GRANT OPTION ON thisdb .* TO thisuser/strong> @localhost; # Enables you to grant to or revoke from other users those privileges that you yourself possess.
+mysql> GRANT USAGE ON *.* TO user_name @localhost;
+mysql> GRANT ALL PRIVILEGES ON thisdb .* TO user_name @localhost;
+mysql> GRANT GRANT OPTION ON thisdb .* TO user_name @localhost; # Enables you to grant to or revoke from other users those privileges that you yourself possess.
+mysql>GRANT PROCESS ON *.* TO user_name @localhost;
mysql>quit; -
-

Note: for the dump of the database (using mysqldump) you need to add the global PROCESS privilege to the user running the command

-
-mysql>GRANT PROCESS ON *.* TO thisuser/strong> @localhost;