Click the Start menu, search for cmd.exe, left-click Run as administrator.
C:\Users\Administrator>cd C:\Program Files\MySQL\MySQL Server 5.7\bin C:\Program Files\MySQL\MySQL Server 5.7\bin>mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --user=mysql
By default, MySQL database file is saved in C: / ProgramData / mysql / MySQL Server 5.7 / Data / Moreover, Win7, Win10 default is the C: / ProgramData directory hidden.
C: \ Program Files \ MySQL \ MySQL Server 5.7 \ bin> cd ../ C: \ Program Files \ MySQL \ MySQL Server 5.7 > dir drive C has no label volumes. Volume Serial Number is 562E - BB77 C: \ Program Files \ the MySQL \ the MySQL Server 5.7 directory 2019 / 07 / 22 is . 17 : 30 <the DIR> . 2019 / 07 / 22 is . 17 : 30 <the DIR> .. 2018 / 02 / 06 12 : 07 <DIR> bin 2017 / 12 / 28 04 : 46, 17 , 987 COPYING 2018 / 02 / 06 12 : 07 <DIR> docs 2018 / 02 / 06 12 : 07 <DIR> include 2018 / 02 / 06 12 : 07 <DIR> lib 2017 / 12 / 28 04 : 46 2 , 478The README 2018 / 02 / 06 12 is : 07 <the DIR> Share 2 files 20 , 465 bytes . 8 directory 15 , 910 , 883 , 328 bytes available