A dash-based frontend that interacts with a MySQL backend.
-
Install MySQL using
sudo apt install mysql-server
-
Secure your installation with
sudo mysql_secure_installation
-
Enter MySQL with
mysql -u root -p
-
Create a non-root account
create user 'reader'@'localhost' identified by 'PASSWORD';
-
Create a database with
CREATE DATABASE meerkat;
-
Create a table inside this database
CREATE TABLE meerkat (name varchar(20), coordinates varchar(20), calibrator varchar(20), obs_date DATE, status varchar(20));
-
Give read and edit access to user reader
GRANT SELECT, UPDATE ON meerkat.meerkat TO 'reader'@'localhost';
-
As root, you can add pointings to meerkat.meerkat with
INSERT INTO meerkat(name, status) values('Point 3', 'None');
Column name | Description | MySQL type |
---|---|---|
name | Pointing name | varchar |
coordinates | Coordinates (J2000) | varchar |
calibrator | Calibrator name | varchar |
obs_date | Observation date | date |
status | Current status | varchar |
- Login to MySQL as root.
- Add the new column with USE meerkat; ALTER TABLE meerkat ADD COLUMN calibrator varchar(20) AFTER name;