SQLSTATE[HY001]: Memory allocation error: 1038

Hi everyone!

Impediment after hindrance I am “trying” to install nextcloud.
The last problem that I cannot solve is that I get an “Internal Server Error” message and when I look at the Nextcloud log it says:

SQLSTATE [HY001]: Memory allocation error: 1038

I have gone to MaríaDB’s file
and I modify the line:

sort_buffer_size = 20M


sort_buffer_size = 512M

I restart MariaDB and try but I keep getting the same problem.

Can anybody help me solved?

Thank you!! =)