Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

The same question is repeated again and again and i am another one repeating this question . I have already set up my mysql server . Its location is C:\Program Files\MySQL\MySQL Server 5.5 but i am not able to find the my.ini file inside the above path . When i type the command c:>mysql --help The output looks like

Default options are read from the following files in the given order: C:\Windows\my.ini C:\Windows\my.cnf C:\my.ini C:\my.cnf C:\Program Files\MySQL\M ySQL Server 5.5\my.ini C:\Program Files\MySQL\MySQL Server 5.5\my.cnf The following groups are read: mysql client

But when I opened the above locations from where it is reading these files ,I am unable to locate the file . Can anyone tell me what is the exact way to retireve the my.ini file for WINDOWS?

like image 878
gaurav Avatar asked Dec 06 '11 17:12

gaurav


People also ask

Where is MySQL ini file located?

3, “MySQL Installer for Windows”. Although MySQL Installer places most files under PROGRAMDIR , it installs my. ini under the C:\ProgramData\MySQL\MySQL Server 8.0\ directory by default. DATADIR represents the MySQL data directory.

What is the My ini file?

my.ini. There is a small text file called my. ini that is part of the MySQL or MariaDB installation. For MySQL 5.5 users, it is usually found at C:\Program Files (x86)\MySQL\MySQL Server 5.5\ For MySQL 5.6 users, it is usually found at C:\Program Files\MySQL\MySQL Server 5.6\


3 Answers

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.

like image 54
Iván Quiñones Avatar answered Sep 21 '22 21:09

Iván Quiñones


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

like image 20
Bala Avatar answered Sep 23 '22 21:09

Bala


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.

like image 37
Piotr Sobczyk Avatar answered Sep 22 '22 21:09

Piotr Sobczyk