I'm not sure this is true anymore. The mysql client library (which your closed source product needs to talk to mysql) is GPL. Now you want your closed-source program to stay that way, so you have to either dig up the old public domain client library, or write your own. Now there is another option, the new libdrizzle library is BSD licensed and is MySQL compatible.