Hum, read the instructions here and the steps https://wiki.labriqueinter.net/doku.php%3Fid=howto:fix_self_corrupt_mysq, but is quite technical…
I am not sure is relevant… Take care, is with an Odroid, not a rRaspberry Pi…
If you have no swap space, the easiest is to create a swap file. You can do it like this for a swap file of half a GB:
fallocate -l 512M /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile
It will give you an idea how much RAM you would need extra to cover your needs. Keep in mind that swap on disk is much slower than RAM.
Add it to /etc/fstab
to have it mounted automatically on boot.