请以英语的形式，并用markdown表格的形式，回答MySQL如何进行完整的备份和恢复。
user
Here is the answer in English, formatted as a markdown table:

| Step | Description |
|------|-------------|
| **1. Full Backup** | Create a .sql file containing all database structures and data. |
| **2. Backup Command** | Use the mysqldump command: `mysqldump -u username -p database_name > backup.sql` |
| **3. Full Restore** | Restore a MySQL database from a .sql file. |
| **4. Restore Command** | Use the mysql command: `mysql -u username -p database_name < backup.sql` |
assistant