EN
MySQL - change max memory size on windows
5 points
Quick solution, change innodb_buffer_pool_size
in my.ini
file:
xxxxxxxxxx
1
innodb_buffer_pool_size=20G
Steps:
1. Location in my case:
xxxxxxxxxx
1
C:\Program Files\MariaDB 10.3\data\my.ini
2. Default settings of my.ini
xxxxxxxxxx
1
[mysqld]
2
datadir=C:/Program Files/MariaDB 10.3/data
3
port=3306
4
innodb_buffer_pool_size=4083M
5
[client]
6
port=3306
7
plugin-dir=C:/Program Files/MariaDB 10.3/lib/plugin
3. Change value of innodb_buffer_pool_size
property to 20G
.
my.ini
after changes:
xxxxxxxxxx
1
[mysqld]
2
datadir=C:/Program Files/MariaDB 10.3/data
3
port=3306
4
innodb_buffer_pool_size=20G
5
[client]
6
port=3306
7
plugin-dir=C:/Program Files/MariaDB 10.3/lib/plugin
Example after chaning MySQL max memory size to 20 GB and making RAM heavy operations on MySQL:
