This C# console application automates the export of all databases from a specified connection. It generates .sql files containing CREATE TABLE statements for each table and then compresses the files into a zip archive for easy storage and transfer.
- Database Export: Connects to a database server and exports the
CREATE TABLEstatements of all tables within each database. - SQL File Generation: Saves each table's schema as an
.sqlfile for easy review or backup. - Automated Zipping: Compresses the generated
.sqlfiles into a single zip archive for efficient storage and handling. - Configurable Connection: Set up the database connection parameters to export databases from any supported server.
- C# and .NET Core: For the console application and file generation.
- MySqlConnector: For database connections and executing queries.
- System.IO.Compression: For zipping the generated files.
- Clone this repository.
- Set the database connectionString in the Database Class.
- Set the path in the FileCreator Class.
- Run the console app to initiate the export process.
Contributions are welcome! Feel free to submit issues or pull requests to improve the functionality or add new features.