You will need to do the same things as if you were using DPM Lite:
[list][*]Create a read-only user with access to MySQL
[*]Create a script to run queries to gather performance data. I'd recommend you check the MySQL documentation
[*]Publish metrics to EPA as simple pairs or in XML format. Information is available in the EPA guide.[list]
You can use whatever language suits you, as long it is supported by the host OS where EPA is installed. We already have a Perl module in EPA that can create XML data.