title: Installing mysqld on Windows and unknown options
body: <p>I'm trying to install MySQL service on Windows with <a href="http://dev.mysql.com/doc/refman/5.6/en/mysqld.html" rel="nofollow noreferrer">mysqld</a>. This is my command:</p>
  
  <pre><code>mysqld --install test123 --defaults-file="C:\mysql\my.ini" --verbose --console --explicit_defaults_for_timestamp --innodb=off
  </code></pre>
  
  <p>So this is what I want:</p>
  
  <ul>
  <li><strong>mysql --install test123</strong> - install mysql service named test123</li>
  <li><strong>--defaults-file="C:\mysql\my.ini"</strong> - use defaults from config file C:\mysql\my.ini</li>
  <li><strong>--verbose --console</strong> - show me the output</li>
  <li><strong>--explicit_defaults_for_timestamp</strong> - don't show <a href="https://stackoverflow.com/questions/16832646/i-cant-start-mysql-5-6-server-due-to-timestamp-with-implicit-default-value-is">this annoying warning</a></li>
  <li><strong>--innodb=off</strong> - I don't need InnoDB storage engine</li>
  </ul>
  
  <p>When I run the command above I got error message <strong>unknown option '--install'</strong>. Whole output:</p>
  
  <pre><code>2013-09-09 14:17:06 3712 [Note] Plugin 'FEDERATED' is disabled.
  2013-09-09 14:17:06 3712 [Note] Plugin 'InnoDB' is disabled.
  2013-09-09 14:17:06 3712 [ERROR] mysqld: unknown option '--install'
  2013-09-09 14:17:06 3712 [ERROR] Aborting
  
  2013-09-09 14:17:06 3712 [Note] Binlog end
  2013-09-09 14:17:06 3712 [Note] Shutting down plugin 'partition'
  ...many "Shutting down plugin" lines...
  2013-09-09 14:17:06 3712 [Note] Shutting down plugin 'binlog'
  2013-09-09 14:17:06 3712 [Note] mysqld: Shutdown complete
  </code></pre>
  
  <p>Screen: <a href="http://prntscr.com/1q9ah2" rel="nofollow noreferrer">http://prntscr.com/1q9ah2</a></p>
  
  <p><strong>What should I do to mysqld.exe to know the option --install ?</strong></p>
  
  <p>I don't know if it matters but in <a href="https://dev.mysql.com/doc/refman/5.6/en/windows-start-service.html" rel="nofollow noreferrer">the manual</a> is written:</p>
  
  <blockquote>
    <p>On Windows, if the server is started with the <a href="http://dev.mysql.com/doc/refman/5.6/en/option-file-options.html#option_general_defaults-file" rel="nofollow noreferrer">--defaults-file</a> and <a href="http://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_install" rel="nofollow noreferrer">--install</a> options, --install must be first. Otherwise, mysqld.exe will attempt to start the MySQL server.</p>
  </blockquote>
  
  <p>And <a href="http://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_install" rel="nofollow noreferrer">in this part</a> also:</p>
  
  <blockquote>
    <p>If the server is started with the <a href="http://dev.mysql.com/doc/refman/5.6/en/option-file-options.html#option_general_defaults-file" rel="nofollow noreferrer">--defaults-file</a> and <a href="http://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_install" rel="nofollow noreferrer">--install</a> options, --install must be first.</p>
  </blockquote>