Database

Some quick notes for MariaDB on the QNAP. Meant to be direct port of MySQL (but both are open-source…?)

Dump of everything I was working on today and yesterday. Still trying to figure out how to do RESTful APIs.

Setting up

  • Search for the binary using find / -name mysql
  • QNAP has aliases for the same directory: /usr/local/mysql and /usr/local/mariadb
  • Connect to the database using /usr/local/mariadb/bin/mysql -u root -p

MariaDB

SQL server

Sending and processing POST requests

  • mod_python is inactive, while mod_wsgi is currently uncompilable on the QNAP. Need to look for alternative scripting languages.
  • PHP seems appropriate: insert into SQL
  • HTML5 form examples: one, two, three

LAMP looks like the minimalist way to go.

Graph plotting