From 4955d5bbf60d6a50d07211e93599d09064ff998d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EF=BB=BFghost-from-the-past?= Date: Wed, 21 Apr 2021 21:59:14 +0200 Subject: [PATCH] Updated MySQL tips (markdown) --- MySQL-tips.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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;