MySQL my.ini location

前端 未结 14 2278
梦如初夏
梦如初夏 2020-11-27 12:17

I have already seen http://dev.mysql.com/doc/refman/4.1/en/mysql-config-wizard-file-location.html

how to know mysql my.cnf location

and

http://dev.

相关标签:
14条回答
  • 2020-11-27 13:00

    on Windows if MySQL is install as a service you can change the binpath of the service. For example

    sc config MySQL57 binPath= "\"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe\" --defaults-file=\"<myini path>" MySQL57"
    

    space after binpath is important. You must escape double quotes

    0 讨论(0)
  • 2020-11-27 13:01

    I've found mine in

    \ProgramData\MySQL\MySQL Server 8.0\
    

    (It is a hidden folder)

    You can type win+R and write %PROGRAMDATA% to access that folder, or just enable show hidden folder.

    0 讨论(0)
  • 2020-11-27 13:02
    1. Enter "services.msc" on the Start menu search box.
    2. Find MySQL service under Name column, for example, MySQL56.
    3. Right click on MySQL service, and select Properties menu.
    4. Look for "Path To Executable" under General tab, and there is your .ini file, for instance, "C:\Program Files (x86)\MySQL\MySQL Server 5.6\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.6\my.ini" MYSQL56
    0 讨论(0)
  • 2020-11-27 13:04

    I met with the same problem when I did MSI install of MySQL and there were no my-medium.ini files too when I tried the above steps. Only installing the ZIP file of MySQL helped me. So, I suggest you to uninstall the MSI installed folder and reinstall using the ZIP file.

    0 讨论(0)
  • 2020-11-27 13:05

    Start MySQL Workbench, then Server -> Options File and look at bottom of the window; it will say something like "Configuration File: C:\ProgramData\MySQL\MySQL Server 5.6\my.ini"

    (And note the subtle difference between "ProgramData" and "Program Files" - easy to gloss over if you're looking for a quick answer.)

    0 讨论(0)
  • 2020-11-27 13:05

    Open your run console type: services.msc look for: mysql right click properties where is written "path to executable", click and move the cursor to the right until you see the directory of my.ini, it's written "defaults-file-". to reach it manually on your explore folders you have to enable the visualization of hidden elements (explore folder>top menu>visualize>visualize hidden elements)

    as explained by this video

    https://www.youtube.com/watch?v=SvCAa2XuQhg

    0 讨论(0)
提交回复
热议问题