MySQL - default-file path mysql does not match the path of the file my.cnf

0

When I access the database

mysql -u userAdmin -p --help

I get the following client variable data:

Asyoucanseemostofthevariableshavenodefaultvalue.Ialsohaveaccesstothefilesthatarebeingusedtoreadthevaluesofsuchvariables.

Sincemymy.cnffileisin:

C:\ProgramData\MySQL\MySQLServer8.0

Whatdoesnotmatchwiththeirimage

In short: I want to change the path of the files that are read as default files to my my.cnf that are in C: \ ProgramData \ MySQL \ MySQL Server 8.0 < = > Location that was granted after installing .exe mysql installer

Notes: I just installed mysql with the installer .exe, that is, everything automatic. I do not understand why my.cnf was placed in a different path to the one I read when accessing the database?

Edited: New Information I am aware of the --login-path option but I do not know how to keep this option permanently

    
asked by anonymous 20.11.2018 / 08:06

0 answers