MySQL data reading ??

Hi,
In my project I want to read data in MySQL, how can I do?
Value in the data base "X" is output if the pin 1, "y" must be disabled
Thank you

You're running MySQL on an Arduino?!?!

I think you want to implement some kind of protocol between the Arduino and a PC - the fact that it's MySQL is irrelevant, that's PC software and outside the remit of this forum.

majenko:
You're running MySQL on an Arduino?!?!

I think you want to implement some kind of protocol between the Arduino and a PC - the fact that it's MySQL is irrelevant, that's PC software and outside the remit of this forum.

No, that's imposible. I think he meant mysql on an external server.

I would serve the mysql data in some format like xml via php. Have the arduino parse the data.

I would serve the mysql data in some format like xml via php

Embedding the data in xml, and expecting the Arduino to parse that, is a waste of bandwidth. The PHP script should simply send the value as text.