In addition to the hint / solution presented by @ AndréRibeiro , after some tests, I could observe that:
Checking my.cnf locations
There is no method to find where the my.cnf
file is located, but the common locations are:
/etc/my.cnf
/etc/mysql/my.cnf (no meu caso estava aqui)
$MYSQL_HOME/my.cnf
[datadir]/my.cnf
~/.my.cnf
Source: link
Find correct variable name
Effectively, not knowing whether the variable was correct or not, and given the error itself to suggest that the variable is unknown, through phpMyAdmin I ran the following command:
SHOW VARIABLES LIKE '%key_buffer%';
Having obtained the variable name key_buffer_size
with the value 8388608
.
Source: link
Documentation
In depth, the documentation references key_buffer_size
, a bit strange because my.cnf
on this and other servers is with key_buffer
. I assume this is some MySQL change, with my.cnf
outdated.
The problem has been overcome by changing the name of key_buffer
to key_buffer_size
.