This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| unraid:dockers:mysql [2021/09/06 17:19] – dirk | unraid:dockers:mysql [2023/09/22 08:23] (current) – [Adjust Max Connections] dirk | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| * 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 [[unraid: | * See [[unraid: | ||
| + | |||
| + | ===== Connect ===== | ||
| + | < | ||
| ===== Load Football pool ===== | ===== Load Football pool ===== | ||
| - | * Go to mysql docker console | ||
| - | * install vim | ||
| - | * < | ||
| - | apt-get install vim</ | ||
| - | * Edit the conf file to add a directory | ||
| - | * < | ||
| - | * add < | ||
| * Create csv file | * Create csv file | ||
| * Cyberduck it over to tmp folder on unraid server | * Cyberduck it over to tmp folder on unraid server | ||
| * copy it to tmp folder on docker < | * copy it to tmp folder on docker < | ||
| - | * go back to docker console, copy it to mysql directory < | + | * go back to docker console, copy it to mysql-files |
| - | * log into mysql and use normal commands < | + | * 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 vscore = NULL where year = 2021; | ||
| UPDATE games SET hscore = 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 | ||
| + | |||