Check out example codes for "how to install mysql 8.0 windows service". It will help you in understanding the concepts better.

Code Example 1

Press CTRL+C to copy C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld"
          --install MySQL --defaults-file=C:\my-opts.cnf

Learn ReactJs, React Native from akashmittal.com