fatihturhan:
other words update a website for worldwide access through my arduino yun's database (sqlite or mysql). Do you think you can direct me somewhere for this?
Now you're stepping out of the realm of something that is specific to the Yun, and into the domain of general web programming. For the most part, web page programming with PHP and SQL should be pretty generic and equally applicable to the Yun.
Your best bet is to do some general web programming research, sticking to this forum will likely severely limit your audience. Years ago, I got the book PHP and MySQL Web Development by Luke Welling and Laura Thomson, published by Sams Publishing, and found it very helpful. While it's specific to MySQL, I would think most of the concepts would also apply to sqlite. Or, I'm sure that there are books out there dedicated to PHP and sqlite which may be equally valuable.
As others have suggested this is a new topic. However, sqlite is a library and mysql is a server - two different beasts. The SQL is standard, but sqlite is limited - the official website is also thin on information. And Mysql is now owned by Oracle. Yes, start a new thread.
I have tried to get this to work on my Yun, I manage to install Sqlite3 but when i put the code
nano /mnt/sda1/sensor.php
it says it cannot find nano…
-ash: nano: not found
So i created the php file with the code provided and saved it in the root part of the SD card. (which I think is correct??)
I then do:
Use
Code: [Select]
sqlite3 /mnt/sda1/sensor.db
Code: [Select]
sqlite> select * from sensor_data;
confirm insert is OK.
which all works perfectly…I then install the code into the ATmega32u4 with no issues.
The next part works fine:
Set uhttpd and php:
Code: [Select]
opkg update
opkg install php5-cgi
but I have the same problem when i put
nano /etc/config/uhttpd
It come up with
-ash: nano: not found
root@MD3000:~# /etc/config/uhttpd
-ash: /etc/config/uhttpd: Permission denied
root@MD3000:~# list interpreter “.php=/usr/bin/php-cgi”
-ash: list: not found
root@MD3000:~# # list interpreter “.cgi=/usr/bin/perl”
I definitely think I am doing something wrong and don’t quite understand the process, so any input would be great help!