2017-01-23 12 views
0

UPDATE: Gelöst! Hier ist meine Lösung:Problem mit MySql Installation unter Windows 10

Heutige Systeme laufen oft auf einem Datenträger, der in GPT formatiert ist. Dies liegt daran, dass Windows 10 eine solche Partition benötigt, um installiert zu werden. Das Problem ist, dass MySql nicht mit diesem Partitionsstil umgehen kann und so abstürzt. Hier ist meine Abhilfe:


  • Erstellen einer virtuellen Festplatte: manual here

  • Format dieses VHD mit MBR

  • Installieren Sie MySQL- benutzerdefinierte auf Ihrem neuen VHD (vergessen Sie nicht, erstellen ein Benutzer für DB)

Das sollte es sein! :)


Ich versuche MySql 13 9360 auf meinem Dell XPS zu installieren Windows 10. Wenn es um beim Start des Servers als Dienst kommt, startet der Dienst nicht. Wie bisher ist dieses Problem weithin bekannt und es gibt viele Versuche, dieses Problem zu lösen. Leider funktionieren diese nicht für mich. Hier ist, was ich versuchte:

  • Einsatz innodb_flush_method = normal in my.ini
  • Änderungsdienst auf lokales Konto
  • Kontrolle Firewall für Portregeln

Also meine Frage zu registrieren: Hat jemand das gleiche Problem erfahren und weiß, wie es funktioniert? Sie würden mir helfen, wirklich so viel :) Hier ist mein Fehlerprotokoll:

2017-01-23T14:11:44.458654Z 0 [Warning] option 'new': boolean value 't' wasn't recognized. Set to OFF. 
2017-01-23T14:11:44.458654Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 
2017-01-23T14:11:44.458654Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 
2017-01-23T14:11:44.459156Z 0 [Note] mysqld (mysqld 5.7.17) starting as process 5340 ... 
2017-01-23T14:11:44.468178Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2017-01-23T14:11:44.469212Z 0 [Note] InnoDB: Uses event mutexes 
2017-01-23T14:11:44.469713Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier 
2017-01-23T14:11:44.470716Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2017-01-23T14:11:44.471217Z 0 [Note] InnoDB: Number of pools: 1 
2017-01-23T14:11:44.471719Z 0 [Note] InnoDB: Not using CPU crc32 instructions 
2017-01-23T14:11:44.474727Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 
2017-01-23T14:11:44.481212Z 0 [Note] InnoDB: Completed initialization of buffer pool 
2017-01-23T14:11:44.546889Z 0 [ERROR] InnoDB: Header page consists of zero bytes in datafile: .\ibdata1, Space ID:0, Flags: 0. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting-datadict.html for how to resolve the issue. 
2017-01-23T14:11:44.548924Z 0 [ERROR] InnoDB: Corrupted page [page id: space=0, page number=0] of datafile '.\ibdata1' could not be found in the doublewrite buffer. 
2017-01-23T14:11:44.550425Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 
2017-01-23T14:11:44.771283Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 
2017-01-23T14:11:44.772134Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
2017-01-23T14:11:44.772635Z 0 [ERROR] Failed to initialize plugins. 
2017-01-23T14:11:44.773135Z 0 [ERROR] Aborting 
2017-01-23T14:11:44.773636Z 0 [Note] Binlog end 
2017-01-23T14:11:44.774138Z 0 [Note] Shutting down plugin 'CSV' 
2017-01-23T14:11:44.774640Z 0 [Note] mysqld: Shutdown complete 

Vielen Dank im Voraus!


@ Bill Karwin:

OK, so dass nach den Tabellen Entfernen das Ergebnis ist folgendes:

2017-01-23T15:39:39.874463Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 
2017-01-23T15:39:39.874965Z 0 [Note] mysqld (mysqld 5.7.17) starting as process 624 ... 
2017-01-23T15:39:39.880480Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2017-01-23T15:39:39.880980Z 0 [Note] InnoDB: Uses event mutexes 
2017-01-23T15:39:39.881484Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier 
2017-01-23T15:39:39.882022Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2017-01-23T15:39:39.882986Z 0 [Note] InnoDB: Number of pools: 1 
2017-01-23T15:39:39.882986Z 0 [Note] InnoDB: Not using CPU crc32 instructions 
2017-01-23T15:39:39.885491Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 
2017-01-23T15:39:39.891024Z 0 [Note] InnoDB: Completed initialization of buffer pool 
2017-01-23T15:39:39.914631Z 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created! 
2017-01-23T15:39:39.915071Z 0 [ERROR] InnoDB: redo log file '.\ib_logfile1' exists. Creating system tablespace with existing redo log files is not recommended. Please delete all redo log files before creating new system tablespace. 
2017-01-23T15:39:39.916074Z 0 [ERROR] InnoDB: InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again. 
2017-01-23T15:39:40.132668Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 
2017-01-23T15:39:40.132668Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
2017-01-23T15:39:40.134090Z 0 [ERROR] Failed to initialize plugins. 
2017-01-23T15:39:40.134590Z 0 [ERROR] Aborting 

2017-01-23T15:39:40.135594Z 0 [Note] Binlog end 
2017-01-23T15:39:40.136094Z 0 [Note] Shutting down plugin 'CSV' 
2017-01-23T15:39:40.136595Z 0 [Note] mysqld: Shutdown complete 

neue Fehler nach logdata1 löschen und 0:

2017-01-23T15:55:22.158765Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 
2017-01-23T15:55:22.159266Z 0 [Note] mysqld (mysqld 5.7.17) starting as process 2880 ... 
2017-01-23T15:55:22.165783Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2017-01-23T15:55:22.165783Z 0 [Note] InnoDB: Uses event mutexes 
2017-01-23T15:55:22.165783Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier 
2017-01-23T15:55:22.166284Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2017-01-23T15:55:22.166284Z 0 [Note] InnoDB: Number of pools: 1 
2017-01-23T15:55:22.166786Z 0 [Note] InnoDB: Not using CPU crc32 instructions 
2017-01-23T15:55:22.169292Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 
2017-01-23T15:55:22.178820Z 0 [Note] InnoDB: Completed initialization of buffer pool 
2017-01-23T15:55:22.202407Z 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created! 
2017-01-23T15:55:22.203383Z 0 [Note] InnoDB: Setting file '.\ibdata1' size to 12 MB. Physically writing the file full; Please wait ... 
2017-01-23T15:55:22.249691Z 0 [Note] InnoDB: File '.\ibdata1' size is now 12 MB. 
2017-01-23T15:55:22.263685Z 0 [Note] InnoDB: Setting log file .\ib_logfile101 size to 48 MB 
2017-01-23T15:55:22.342287Z 0 [Note] InnoDB: Setting log file .\ib_logfile1 size to 48 MB 
2017-01-23T15:55:22.452340Z 0 [ERROR] InnoDB: Operating system error number 87 in a file operation. 
2017-01-23T15:55:22.452842Z 0 [Note] InnoDB: Some operating system error numbers are described at http://dev.mysql.com/doc/refman/5.7/en/operating-system-error-codes.html 
2017-01-23T15:55:22.453346Z 0 [ERROR] InnoDB: File .\ib_logfile101: 'aio write' returned OS error 187. Cannot continue operation 
2017-01-23T15:55:22.453346Z 0 [ERROR] InnoDB: Cannot continue operation. 
+0

Es kann den InnoDB-Tablespace nicht lesen. Entweder wurde Ihr Tablespace durch eine defekte Festplatte beschädigt, oder Sie haben sich selbst mit Dateien im Datadir beschäftigt. Sie müssen möglicherweise nur Ihren Tablespace entfernen und den MySQL-Dienst neu starten. Es sollte einen neuen leeren Tablespace erstellen. Aber Sie werden alle Daten in Ihrem alten Tablespace verlieren. Wenn Sie unersetzbare Daten haben, wenden Sie sich an einen MySQL-Datenwiederherstellungsdienst wie twindb.com. –

+0

hey @ BillKarwin, danke für deine Hilfe. Können Sie mir sagen, wie Sie den Tablespace entfernen können? Nur zur Klarstellung: Ich habe nicht einmal mit dieser Installation von MySQL gearbeitet, weil sie nie installiert wird. – Jan

+0

Öffnen Sie den Datei-Explorer in dem Ordner, der Ihr MySQL Server-Datenverzeichnis ist. Unter Windows 10 ist dies wahrscheinlich 'C: \ ProgramData \ MySQL \ MySQL Server 5.7 \ data'. Wählen Sie die Datei 'ibdata1' und löschen Sie die Datei. Starten Sie dann Ihren MySQL-Server im Kontrollfeld "Dienste" neu. Das Fehlen der Tablespace-Datei führt dazu, dass MySQL Server einen brandneuen Tablespace erstellt. –

Antwort

1

Gefunden die Lösung:

Heutige Systeme laufen oft auf einem Datenträger, der in GPT formatiert ist. Dies liegt daran, dass Windows 10 eine solche Partition benötigt, um installiert zu werden. Das Problem ist, dass MySql nicht mit diesem Partitionsstil umgehen kann und so abstürzt.Hier ist meine Abhilfe:

  • Erstellen einer virtuellen Festplatte: manual here
  • Format dieses VHD mit MBR
  • Installieren Sie MySQL- benutzerdefinierte auf Ihrem neuen VHD (vergessen Sie nicht, einen Benutzer für DB erstellen)

Das sollte es sein! :)

Verwandte Themen