Hi, I would like to know how to backup my data from 2 separate tables (CATEGORIES and SUBCATEGORIES, where SUBCATEGORIES belong to a CATEGORY) in such a way that I can restore the relationship at a later time. I am not sure if mysqldump --opt db_name
would suffice.
Example:
Categories:
| ID | name
-----------
| 1 | Audio
| 9 | Video
Subcategories:
| ID | category_id | name
-------------------------
| 1 | 1 | Guitar
| 2 | 1 | Piano
| 3 | 9 | Video Camera
Thanks