I am having difficulty setting the timeout value on a database backup. I am getting an error during backups on one of my databases “took too long to fetch query result row” so to fix this I am trying to set the TIMEOUT value as specified in the docs.
BACKUP [DATABASE] <database_name> [TIMEOUT <timeout_value>] TO S3 "bucket/path"
For example:
BACKUP DATABASE mydb TIMEOUT 600000 TO S3 “mybucket/mypath”
The query only works when I omit the TIMEOUT element otherwise I get “Error 1064: You have an error in your SQL syntax;”
Any help would be appreciated on how to correctly set the TIMEOUT parameter.
Thanks a lot - that solved the syntax issue by putting TIMEOUT 600000 at the end.
Initially this didn’t help with the original issue of “took too long to fetch query result row” error. I realized that it was because of a timeout on the memsqlctl query --sql "BACKUP DATABASE…
I resolve by: memsqlctl query --row-timeout 10m --sql "BACKUP DATABASE…