Skip to content

Commit

Permalink
mysql - Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
at-github committed Sep 21, 2022
1 parent 313c7ff commit 3c5afd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
`GRANT ALL ON databasename.* TO 'username'@'localhost';`

### Delete user
DROP USER 'username';
`DROP USER 'username';`

## Export database
`mysqldump -u username -p databasename > export.sql`

## Restore database
`mysql -u username -p databasename < filename.sql`

0 comments on commit 3c5afd5

Please sign in to comment.