Arduino Yun - Sensor Data logging to MYSQL on External Server
Yes, you can do that using python as well as other languages, or you can use Temboo: there's an example bundled with the Arduino IDE, it's called "SendDataToMySQL"