I'm in need of a reusable script that can read data from my MySQL database and export it to a CSV file. The script should include all database fields in the export.
The script will only need to be run once, so it will not need to be run on a scheduled basis or triggered by an event.