How to send Arduino Yun datas wirelessly into Raspberry Pi MySQL Database.

I currently have the database in Pi and i dunno how can i get the data from Yun's serial monitor and send it via wirelessly into my Raspberry Pi MySQL database.Then extract it and store it as a txt file or somewhere.

Storing is the later part but sending is what i needed to do now for the project.
Please help me i just started on Yun for only 3 days and I am stuck.

Just my two cents...if this is just a one time transfer WinSCP is a great way to move files.

I would break down the problem into parts and work on getting the data on to the Pi first. If it were my project, I would save the data to a text file or CSV file and then send it to the Pi where I would then add it to the MySQL database. It might be easier to do some of the heavy lifting from the Linux side of the Yun or on the Pi.