MYSQL5.7 my.ini文件未反映

时间:2017-02-25 01:07:33

标签: mysql innodb

我正在使用MYSQL5.7,在Windows中使用msi选项安装。我想更改innodb_buffer_pool_size。我经历了stackoverflow并找出如何更改mysql.ini文件。

对于MYSQL5.7,我尝试按照stackoverflow中的描述更改以下位置的my.ini文件。

选项1;

C:\Program Files\MySQL\MySQL Server 5.7.  I made the changes in the my-default.ini file and stopped the mysql service and started again.  Its not working

So i copied the my-default.ini to my.ini and tried again. Its not working

选项2:

    I echo the programdata, then i found another location. C:\ProgramData\MySQL and in that i found 4 ini files. I changed everything and stopped and started the MYSQL service. Its also not working. 

Please help me to understand why the ini file is not reflected and how to resolve this issue

1 个答案:

答案 0 :(得分:-1)

将 my.ini 文件保留在 mysql 位置,然后运行 ​​developmentnet stop mysql。 如果 net run mysql 没问题,那么 my.ini 也没问题。