title: MySQL 8.0.3 can't start: Failed to open log
body: <p>Very similar problem to this:
  <a href="https://stackoverflow.com/questions/18443025/mamp-mysql-error-failed-to-open-log">MAMP Mysql Error - Failed to open log</a></p>
  
  <p>When I start mysqld I get this error:</p>
  
  <pre><code>2017-11-12T16:45:18.532594Z 0 [Note] Basedir set to D:\ProgramFiles\mysql-8.0.3-rc-winx64\
  2017-11-12T16:45:18.535678Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
  2017-11-12T16:45:18.535725Z 0 [Note] D:\ProgramFiles\mysql-8.0.3-rc-winx64\bin\mysqld.exe (mysqld 8.0.3-rc-log) starting as process 1888 ...
  2017-11-12T16:45:18.544007Z 0 [Note] Plugin 'FEDERATED' is disabled.
  2017-11-12T16:45:18.547052Z 1 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
  2017-11-12T16:45:18.547385Z 1 [Note] InnoDB: Uses event mutexes
  2017-11-12T16:45:18.547571Z 1 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
  2017-11-12T16:45:18.547864Z 1 [Note] InnoDB: Compressed tables use zlib 1.2.11
  2017-11-12T16:45:18.548397Z 1 [Note] InnoDB: Number of pools: 1
  2017-11-12T16:45:18.548682Z 1 [Note] InnoDB: Using CPU crc32 instructions
  2017-11-12T16:45:18.551490Z 1 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
  2017-11-12T16:45:18.560084Z 1 [Note] InnoDB: Completed initialization of buffer pool
  2017-11-12T16:45:18.574457Z 1 [Note] InnoDB: Using 'tablespaces.open.2' max LSN: 17207612
  2017-11-12T16:45:18.581017Z 1 [Note] InnoDB: Applying a batch of 0 redo log records ...
  2017-11-12T16:45:18.581293Z 1 [Note] InnoDB: Apply batch completed!
  2017-11-12T16:45:18.588909Z 1 [Note] InnoDB: Opened 2 existing undo tablespaces.
  2017-11-12T16:45:18.713439Z 1 [Note] InnoDB: Creating shared tablespace for temporary tables
  2017-11-12T16:45:18.713969Z 1 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
  2017-11-12T16:45:18.791833Z 1 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
  2017-11-12T16:45:18.803915Z 1 [Note] InnoDB: Created 128 and tracked 128 new rollback segment(s) in the temporary tablespace. 128 are now active.
  2017-11-12T16:45:18.805048Z 1 [Note] InnoDB: 8.0.3 started; log sequence number 17235597
  2017-11-12T16:45:18.908135Z 0 [Note] InnoDB: Loading buffer pool(s) from D:\ProgramFiles\mysql-8.0.3-rc-winx64\data\ib_buffer_pool
  2017-11-12T16:45:18.909158Z 0 [Note] InnoDB: Buffer pool(s) load completed at 171112 17:45:18
  2017-11-12T16:45:18.924130Z 1 [Note] Found data dictionary with version 1
  mysqld: File '2017-11-12T16:13:21.085592Z 0 [Note] Binlog end' not found (Errcode: 13 - Permission denied)
  2017-11-12T16:45:18.949600Z 0 [ERROR] Failed to open log (file '2017-11-12T16:13:21.085592Z 0 [Note] Binlog end', errno 13)
  2017-11-12T16:45:18.949966Z 0 [ERROR] Could not open log file
  2017-11-12T16:45:18.950149Z 0 [ERROR] Can't init tc log
  2017-11-12T16:45:18.950333Z 0 [ERROR] Aborting
  2017-11-12T16:45:18.950532Z 0 [Note] InnoDB: FTS optimize thread exiting.
  2017-11-12T16:45:18.951277Z 0 [Note] Binlog end
  2017-11-12T16:45:18.951697Z 0 [Note] Shutting down plugin 'ngram'
  2017-11-12T16:45:18.951900Z 0 [Note] Shutting down plugin 'BLACKHOLE'
  2017-11-12T16:45:18.952105Z 0 [Note] Shutting down plugin 'ARCHIVE'
  2017-11-12T16:45:18.952302Z 0 [Note] Shutting down plugin 'TempTable'
  2017-11-12T16:45:18.952503Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
  2017-11-12T16:45:18.952761Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
  2017-11-12T16:45:18.952969Z 0 [Note] Shutting down plugin 'MyISAM'
  2017-11-12T16:45:18.953167Z 0 [Note] Shutting down plugin 'INNODB_CACHED_INDEXES'
  2017-11-12T16:45:18.953403Z 0 [Note] Shutting down plugin 'INNODB_VIRTUAL'
  2017-11-12T16:45:18.953616Z 0 [Note] Shutting down plugin 'INNODB_COLUMNS'
  2017-11-12T16:45:18.953830Z 0 [Note] Shutting down plugin 'INNODB_TABLESPACES'
  2017-11-12T16:45:18.954054Z 0 [Note] Shutting down plugin 'INNODB_INDEXES'
  2017-11-12T16:45:18.954269Z 0 [Note] Shutting down plugin 'INNODB_TABLESTATS'
  2017-11-12T16:45:18.954491Z 0 [Note] Shutting down plugin 'INNODB_TABLES'
  2017-11-12T16:45:18.954703Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
  2017-11-12T16:45:18.954936Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
  2017-11-12T16:45:18.955184Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
  2017-11-12T16:45:18.955415Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
  2017-11-12T16:45:18.955653Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
  2017-11-12T16:45:18.955876Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
  2017-11-12T16:45:18.956124Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
  2017-11-12T16:45:18.956366Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
  2017-11-12T16:45:18.956603Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
  2017-11-12T16:45:18.956844Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
  2017-11-12T16:45:18.957083Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
  2017-11-12T16:45:18.957308Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
  2017-11-12T16:45:18.957556Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
  2017-11-12T16:45:18.957788Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
  2017-11-12T16:45:18.958017Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
  2017-11-12T16:45:18.958253Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
  2017-11-12T16:45:18.958472Z 0 [Note] Shutting down plugin 'INNODB_CMP'
  2017-11-12T16:45:18.958674Z 0 [Note] Shutting down plugin 'INNODB_TRX'
  2017-11-12T16:45:18.958876Z 0 [Note] Shutting down plugin 'InnoDB'
  2017-11-12T16:45:18.959079Z 0 [Note] InnoDB: Starting shutdown...
  2017-11-12T16:45:19.060124Z 0 [Note] InnoDB: Dumping buffer pool(s) to D:\ProgramFiles\mysql-8.0.3-rc-winx64\data\ib_buffer_pool
  2017-11-12T16:45:19.065546Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 171112 17:45:19
  2017-11-12T16:45:20.317846Z 0 [Note] InnoDB: Shutdown completed; log sequence number 17262731
  2017-11-12T16:45:20.318363Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
  2017-11-12T16:45:20.318697Z 0 [Note] Shutting down plugin 'MEMORY'
  2017-11-12T16:45:20.318901Z 0 [Note] Shutting down plugin 'CSV'
  2017-11-12T16:45:20.319092Z 0 [Note] Shutting down plugin 'sha2_cache_cleaner'
  2017-11-12T16:45:20.319353Z 0 [Note] Shutting down plugin 'caching_sha2_password'
  2017-11-12T16:45:20.319628Z 0 [Note] Shutting down plugin 'sha256_password'
  2017-11-12T16:45:20.319871Z 0 [Note] Shutting down plugin 'mysql_native_password'
  2017-11-12T16:45:20.320323Z 0 [Note] Shutting down plugin 'binlog'
  2017-11-12T16:45:20.320805Z 0 [Note] D:\ProgramFiles\mysql-8.0.3-rc-winx64\bin\mysqld.exe: Shutdown complete
  </code></pre>
  
  <p>I can't find any 'var' folder in my mysql folder, nor 'mysql-bin.index' file anywhere in my computer. I don't know where mysqld is expecting that file to be.</p>
  
  <p>How can I fix this and start my mysql server?</p>