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.
docker exec -it mysql bash
docker cp /tmp/2021.csv mysql:/tmp/2021.csv
cp /tmp/2021.csv /var/lib/mysql-files/2021.csv
mysql> show global variables like 'local_infile';
mysql> set global local_infile=true;
mysql --local_infile=1 -u root -ppassword DB_name
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;
show processlist;
show variables like '%timeout';
docker cp mysql:/etc/my.cnf .
[mysqld] wait_timeout = 300 interactive_timeout = 300 max_connections = 300
cp my.cnf mysql:/etc/my.cnf