How to set Innodb Buffer Pool Size
Adding the values to a new my.cnf file inside, /etc/mysql/conf.d solved the issue. Added only the value we wanted to override. For some reason, values added elsewhere were ignored by mysql.

Note:
Make sure /etc/mysql/conf.d is included in my.cnf file located at /etc/mysql/my.cnf.
It included by default.