How to send data to MySQL use Arduino YUN

My English is not so good, Sorry about that.
I want to send Arduino YUN's digital(2) and digital(3) data to my database through wifi,i have been create data base and table through XAMPP , but i don't know how to do next ,can anyone give some suggestion or example code?