title: MySQL 8.0 'C:\Program Files\MySQL\MySQL Server 8.0\data\' (OS errno 2 - No such file or directory) - can't find data for db from cmd
body: <p>So, I'm looking to start a MYSQL server using CMD, and do some small simple tasks on it (hence why I'm using it that way and not a GUI) </p>
  
  <p>I was told the best method for this, would be to run this command:</p>
  
  <pre><code>C:\Program Files\MySQL\MySQL Server 8.0\bin&gt;mysqld --console --standalone
  </code></pre>
  
  <p>Which I did, however, I am getting this error:</p>
  
  <pre><code>C:\Program Files\MySQL\MySQL Server 8.0\bin&gt;mysqld --console --standalone
  mysqld: Can't change dir to 'C:\Program Files\MySQL\MySQL Server 8.0\data\' 
  (OS errno 2 - No such file or directory)
  2018-10-30T17:43:27.385678Z 0 [System] [MY-010116] [Server] C:\Program 
  Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.12) starting as 
  process 4676
  2018-10-30T17:43:27.420966Z 0 [Warning] [MY-010091] [Server] Can't create 
  test file C:\Program Files\MySQL\MySQL Server 8.0\data\DESKTOP- 
  HITD28G.lower-test
  2018-10-30T17:43:27.421409Z 0 [Warning] [MY-010091] [Server] Can't create 
  test file C:\Program Files\MySQL\MySQL Server 8.0\data\DESKTOP- 
  HITD28G.lower-test
  2018-10-30T17:43:27.423273Z 0 [ERROR] [MY-010172] [Server] failed to set 
  datadir to C:\Program Files\MySQL\MySQL Server 8.0\data\
  2018-10-30T17:43:27.434694Z 0 [ERROR] [MY-010119] [Server] Aborting
  2018-10-30T17:43:27.442047Z 0 [System] [MY-010910] [Server] C:\Program 
  Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 
  8.0.12)  MySQL Community Server - GPL.
  </code></pre>
  
  <p>I have MySQL 8.0 installed, with the server, workbench etc, but apparently the data isn't there.</p>
  
  <p>Have I installed it wrongly then?</p>