Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| wiki:mysql [2024/04/21 12:52] – 5.152.82.90 | wiki:mysql [2024/05/08 08:19] (current) – 5.152.82.90 | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| **Cut single table from dump** | **Cut single table from dump** | ||
| < | < | ||
| + | |||
| + | =====Useful commands==== | ||
| + | **Purge Binlog** | ||
| + | < | ||
| + | BINLOG_FILE=$(mysql -e "SHOW MASTER STATUS" | ||
| + | mysql -e "PURGE BINARY LOGS TO ' | ||
| + | |||
| + | **DB Size** | ||
| + | < | ||
| + | |||
| + | **Secure Installation** | ||
| + | < | ||
| + | mysql -e " | ||
| + | mysql -e "DROP USER '' | ||
| + | mysql -e "DROP USER '' | ||
| + | mysql -e "DROP DATABASE test" | ||
| + | mysql -e "FLUSH PRIVILEGES" | ||
| + | </ | ||