Linux/Mysql

And did you test that line in a Linux console app?

Try move the code then to the OnCreate event of the Data Module. That would be a correct place to put it anyway.

I have the console app also working.