This is an old revision of the document!
MySQL is an open-source relational database management system. Its name is a combination of “My”, the name of co-founder Michael Widenius's daughter, and “SQL”, the abbreviation for Structured Query Language. Brimble.com uses MySQL to store the tables for most all things running on the server.
I used the official docker from Bungy's repository.
apt-get update apt-get install vim
vim /etc/mysql/my.cnf
secure-file-priv= /var/lib/mysql
docker cp /tmp/2021.csv mysql:/tmp/2021.csv
cp /tmp/2021.csv /var/lib/mysql/2021.csv
LOAD DATA LOCAL INFILE "/var/lib/mysql/2021.csv" INTO TABLE games COLUMNS TERMINATED BY ','; UPDATE games SET vscore = NULL where year = 2021; UPDATE games SET hscore = NULL where year = 2021;