MySQL
Learn how to upload MySQL database backups to Filebase.
MySQL is a popular and widely used open-source relational database management system.
Read below to learn how to upload a MySQL database backup to Filebase.
- Have data stored in a MySQL database.
mysqldump -u [user] \
-p [password] \
-h [host] \
--single-transaction \
--routines --triggers \
--all-databases
mysqldump -u [user] \
-p [password] \
-h [host] \
--single-transaction \
--routines --triggers \
--all-databases | gzip > mysql_backup.sql.gz
You can use a variety of tools for this, but this guide will use AWS CLI.
aws configure
This command will generate a series of prompts, asking for the Access Key ID and Secret Access Key. It will also ask for a region and an output format, though you can leave both of these fields blank by pressing enter when prompted for them.
aws --endpoint https://s3.filebase.com s3 cp mysql_backup.sql.gz s3://filebase-bucket
If you have any questions, please join our Discord server, or send us an email at [email protected]
Last modified 1yr ago