mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2025-01-03 06:10:15 +00:00
docs(mysql): Run SQL query in the background
This commit is contained in:
parent
f0d26648ae
commit
1c6d4ee480
@ -10,3 +10,5 @@ SHOW PROCESSLIST; # Show you any queries that are currently running or in the qu
|
||||
GRANT ALL PRIVILEGES ON prospectwith.* TO 'power'@'localhost' WITH GRANT OPTION; # Grant all privileges on database
|
||||
|
||||
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; # Create user
|
||||
|
||||
mysql -u root -pmypassword -e "MY SQL QUERY" &>> query.log & disown # Run SQL query in the background
|
||||
|
Loading…
Reference in New Issue
Block a user