I am trying to deal with the dreaded "The total number of locks exceeds the lock table size" error. Many entries in Stack Overflow suggest increasing innodb_buffer_pool_size from its default 8 MB.
I verify the current buffer pool size with SELECT @@innodb_buffer_pool_size;
and get the default 8388608. I get the same result in the output of mysqld --help --verbose
Following other stack overflow entries and the MySQL documentation I create a file c:\my.cnf that contains
[mysqld]
innodb_buffer_pool_size=67108864
and then I restart the Windows service MySQL80.
This does not solve the problem. In addition SELECT @@innodb_buffer_pool_size;
still gives 8388608.
However mysqld --help --verbose
gives innodb-buffer-pool-size 67108864
So it seems that the configuration file did take effect but an individual client process still sees the old value although that sounds impossible.
What do I do to actually increase the buffer pool size for my program?