Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MySQL ini file

  1. Feb 29, 2016 #1
    I found this before out on the interwebs, but alas can't find it today.

    How can you print the location of the .ini file that MySQL is using from the MySQL command line??
  2. jcsd
  3. Feb 29, 2016 #2


    User Avatar
    Science Advisor
    Gold Member
    2017 Award

  4. Feb 29, 2016 #3
    Note quite,
    I thought there was a way you could use SHOW. Maybe I've found it but the setup I have here is different...

    Issue came when I installed a MySQL server, it put the executable in c:\program files\MySQL
    but the ini and data directories were in c:\Program Data\MySQL\

    Some how I used the command line to figure that out :)
  5. Feb 29, 2016 #4
    So yeah you can just do mysql --help and it will tell you in the middle of the wall of text it outputs :)
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook