The "my.ini" file in mysql: 1. In the Linux system, the location of the file is "/etc/mysql/my.cnf"; 2. In the Windows system, the location of the file is "C :\Program Files\MySQL\MySQL Server\my.ini".
The operating environment of this tutorial: windows7&&linux 7.3 system, mysql5.1 version, Dell G3 computer.
The Linux version is my.cnf, which is usually placed in /etc/my.cnf, /etc/mysql/my.cnf;
The one under win is my.ini, which is usually in the root directory of the installation directory. Mysql can run even without this configuration file, unlike the php language, which must have php.ini in the window directory to run correctly.
Specific search method under windows:
The MySQL configuration file is called my.ini under Windows and is in the root directory of MySQL installation;
1. Run | Search | Enter the file name my.ini
2, then right-click | Properties to see the save location of the file
Generally it should be C:\Program Files\MySQL\MySQL Server 5.1\my. ini
## Recommended learning:The above is the detailed content of Where is my.ini in mysql. For more information, please follow other related articles on the PHP Chinese website!