arduino yun connecting to MySQL Database on my PC

Hello,

I am trying to connect Arduni Yun to MySQL database which is running on my PC through Wifi. So far I have no idea where to start. I just want Yun to read a column and row from my database and display it on serial monitor.

I just some research and found some code but sadly it didn't work me.

Any help would be appreciated

Thanks.

mukul9999:
I just some research and found some code but sadly it didn't work me.

That doesn't exactly tell us much. What have you actually tried?

You can either connect directly from the ATmega via the serial USB port or connect via the Linux part of the Yun. Which approach are you trying to implement?

http://forum.arduino.cc/index.php?topic=206746.msg1524868#msg1524868

sonnyyu:
The list of programming language Yun support:

  • Erlang (a general-purpose concurrent, garbage-collected programming language and runtime system)
  • Java
  • JavaScript
  • Lua
  • PHP
  • Perl
  • Python
  • Ruby
  • 4th (an imperative stack-based computer programming language and programming environment)
  • eggdrop (Eggdrop is a popular IRC bot and the oldest still in active development)
  • sigscheme (SigScheme is a R5RS Scheme interpreter for embedded use.)
  • slsh (Interpreter for S-Lang scripts)
  • tcl (Tool Command Language)
  • vala (C-sharp like language for the GObje)

Last one might be most important one is C, by using cross compile.

as long as you are able to get mysql driver to work, feel free to select any above Language to connecting to Mysql.