Locating MySQL .ini File from the Command Line - Dave's Search

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
cpscdave
Messages
402
Reaction score
120
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??
Thanks,
-Dave
 
Physics news on Phys.org
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 :)
 
So yeah you can just do mysql --help and it will tell you in the middle of the wall of text it outputs :)