Skip to content

Commit 2f187fb

Browse files
authored
how exporting works with mysqldump
1 parent 672a5cf commit 2f187fb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

0_Azure/1_AzureData/1_Databases/demos/9_MySQL_BU_DR.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ https://github.com/user-attachments/assets/1c6efd8a-987a-46ac-a81d-6d4ae74b07fd
102102

103103
#### Exporting Data
104104

105+
> You can export your MySQL database using the `mysqldump` utility, which generates a logical backup of the database. This backup can be stored in Azure Blob Storage or downloaded locally for additional safety.
106+
107+
1. **Use `mysqldump` Command**: Open a terminal and run the following command. Click [here](https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-migrate-dump-restore#dump-and-restore-using-mysqldump-utility) to get more information.
108+
109+
```bash
110+
mysqldump -u [username] -p[password] [database_name] > [dump_file.sql]
111+
```
112+
113+
2. **Upload to Azure Blob Storage**: Use Azure CLI or Azure Portal to upload the dump file to Azure Blob Storage.
114+
105115
### Backup Storage
106116

107117
> [!IMPORTANT]

0 commit comments

Comments
 (0)