This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| unraid:dockers:mysql [2021/01/30 12:35] – created dirk | unraid:dockers:mysql [2023/09/22 08:23] (current) – [Adjust Max Connections] dirk | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| * User standard SQL commands to import databases from back up, allow privileges, etc. | * User standard SQL commands to import databases from back up, allow privileges, etc. | ||
| - | * See Install MySql section of installing ubuntu pages for most commands. | + | * See [[unraid: |
| + | |||
| + | ===== Connect ===== | ||
| + | < | ||
| + | |||
| + | ===== Load Football pool ===== | ||
| + | * Create csv file | ||
| + | * Cyberduck it over to tmp folder on unraid server | ||
| + | * copy it to tmp folder on docker < | ||
| + | * go back to docker console, copy it to mysql-files directory < | ||
| + | * log into mysql | ||
| + | * check LOCAL INFILE var < | ||
| + | * fix it if need be < | ||
| + | * log out of mysql and back in with proper option < | ||
| + | * Use normal commands < | ||
| + | UPDATE games SET vscore = NULL where year = 2021; | ||
| + | UPDATE games SET hscore = NULL where year = 2021;</ | ||
| + | |||
| + | ===== Adjust Max Connections ===== | ||
| + | * < | ||
| + | * < | ||
| + | * Either use vs-code setup to edit my.cnf from /etc folder OR copy my.cnf from /etc folder in the docker to the server for editing < | ||
| + | * add following lines to my.cnf (put them just under the [mysqld] line... putting them under [client] is no bueno!< | ||
| + | |||
| + | wait_timeout = 600 | ||
| + | interactive_timeout = 600 | ||
| + | max_connections = 500</ | ||
| + | * copy my.cnf back to docker < | ||
| + | * restart docker | ||