Where can I find the file my.ini file for windows mysql server?

一笑奈何 提交于 2019-12-01 04:15:52

To configure the client and utility applications, create a new my.ini file in the Windows installation directory. More info here

In MySQL 5.5 Windows the default path for my.ini is C:\ProgramData\MySQL\MySQL Server 5.5

You may need to change your file browser (windows explorer) options to show hidden files and directories.

I just checked my installation and located my.ini at C:\Program Files\MySQL\MySQL Server 5.5 which seems to be exactly the same like your installation path (and mysql version is the same for us). Are you sure it isn't there?

EDIT:

Possibly all you have to do is to rename one of example .ini files to my.ini (and optionally tune it to your needs), see: http://dev.mysql.com/doc/refman/5.1/en/option-files.html#option-files-preconfigured . These are: my-small.cnf, my-medium.cnf, my-large.cnf, and my-huge.cnf in your mysql installation dir. It is possible that this is just what I did in my case - it was a while ago when I installed mysql.

Under the Data folder my friend. Go one dir up from Mysql 5.5

Check variable datadir, in my default setup of 5.7 on Windows 7 it used:

C:\ProgramData\MySQL\MySQL Server 5.7

If you do not see my.ini file. Rename one of below file to my.ini

  • my-huge.ini
  • my-large.ini
  • my-medium.ini
  • my-small.ini

You can check the my.ini through the below process: 1. Through the command prompt. Type command as "Services.msc". 2. Go to MySQL56 service and right Click. Select Properties. 3. In the Properties area you will get the my.ini file path at the end.

I found the my.ini file by running SHOW VARIABLES LIKE "%datadir%"; and going one directory up.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!