mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-10-29 00:04:06 -07:00
docs(mysql): grant all privileges
This commit is contained in:
1 parent
0b10cb93d6
commit
e8be8df3d6
1 file changed
+2
@@ -6,3 +6,5 @@ mysqldump -h hostname -u username -p database_name -P port > file.sql # Export d
|
|||||||
mysql -u username -p database_name < file.sql # Import database
|
mysql -u username -p database_name < file.sql # Import database
|
||||||
|
|
||||||
SHOW PROCESSLIST; # Show you any queries that are currently running or in the queue to run
|
SHOW PROCESSLIST; # Show you any queries that are currently running or in the queue to run
|
||||||
|
|
||||||
|
GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'%' WITH GRANT OPTION; # Grant **all** privileges on database
|
||||||
Reference in new issue
Block a user