user20681: How can I include mysql.h library in IDE of Arduino to connect Arduino to mysql database by using GSM shield?

user13594: You can turn on GPRS data connection on your GSM shield and perform HTTP GET or POST request to the web page script (for example PHP script), which in turn will access the MySQL database (write or read DB records). It is easier than implementing REST API.

user16458: You can't. Arduino is too small to run libmysqlclient directly. There are few other solutions:

You can expose your database using REST API and call that.
Change hardware platform to Raspberry Pi - it runs full Linux system
Run your app on PC and call Arduino using some RPC library


20681: <p>How can I include <code>mysql.h</code> library in IDE of Arduino to connect Arduino to mysql database by using GSM shield?</p>
 13594: <p>You can turn on GPRS data connection on your GSM shield and perform HTTP GET or POST request to the web page script (for example PHP script), which in turn will access the MySQL database (write or read DB records). It is easier than implementing REST API.</p>
 16458: <p>You can't. Arduino is too small to run <code>libmysqlclient</code> directly. There are few other solutions:</p>

<ol>
<li>You can expose your database using REST API and call that.</li>
<li>Change hardware platform to Raspberry Pi - it runs full Linux system</li>
<li>Run your app on PC and call Arduino using some RPC library</li>
</ol>
