This error: 1041 – Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use ‘ulimit’ to allow mysqld to use more memory or you can add more swap space.
See the article here:
How to solve error 1041 Out of memory. Check is mysqld or some other …