Mysql (xampp) kann nach der Installation auf einem externen Laufwerk nicht gestartet werden

11488
Klikerko

Ich beschloss, meine XAMPP-Installation auf ein externes Laufwerk zu verschieben. Es ist USB3 3 TB Seagate-Laufwerk. Leider will mysql nicht starten. Alles funktioniert gut, wenn ich XAMPP auf Laufwerk C installiere, aber nicht funktioniert, wenn ich es auf einem externen Laufwerk versuche. Ich habe den Computer mehrmals deinstalliert und neu gestartet, alle Spuren von Mysql vom Computer entfernt und ich bekomme immer noch die gleiche Fehlermeldung.

Dies ist eine Neuinstallation und ich habe keine Daten in der Datenbank. Ich habe auch eine Null-Byte-Datendatei gelöscht, wie im Fehlerprotokoll vorgeschlagen, aber die Datei wird bei jedem Neustart erneut erstellt.

Dies ist der Inhalt der Protokolldatei:

131003 11:36:20 [Note] Plugin 'FEDERATED' is disabled. 131003 11:36:20 InnoDB: The InnoDB memory heap is disabled 131003 11:36:20 InnoDB: Mutexes and rw_locks use Windows interlocked functions 131003 11:36:20 InnoDB: Compressed tables use zlib 1.2.3 131003 11:36:20 InnoDB: Initializing buffer pool, size = 16.0M 131003 11:36:20 InnoDB: Completed initialization of buffer pool InnoDB: Error: space header page consists of zero bytes in data file F:\design\code\mysql\data\ibdata1 131003 11:36:20 InnoDB: Could not open or create data files. 131003 11:36:20 InnoDB: If you tried to add new data files, and it failed here, 131003 11:36:20 InnoDB: you should now edit innodb_data_file_path in my.cnf back 131003 11:36:20 InnoDB: to what it was, and remove the new ibdata files InnoDB created 131003 11:36:20 InnoDB: in this failed attempt. InnoDB only wrote those files full of 131003 11:36:20 InnoDB: zeros, but did not yet use them in any way. But be careful: do not 131003 11:36:20 InnoDB: remove old data files which contain your precious data! 131003 11:36:20 [ERROR] Plugin 'InnoDB' init function returned error. 131003 11:36:20 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 131003 11:36:20 [ERROR] Unknown/unsupported storage engine: InnoDB 131003 11:36:20 [ERROR] Aborting  131003 11:36:20 [Note] f:\design\code\mysql\bin\mysqld.exe: Shutdown complete 

Ich habe bereits einige Vorschläge aus anderen Themenbereichen ausprobiert

innodb_buffer_pool_size = 256M innodb_log_file_size = 256M innodb_thread_concurrency = 16 innodb_flush_log_at_trx_commit = 2 

Immer noch keine Veränderung. Jede Hilfe wäre dankbar.

BEARBEITEN: Gelöst (siehe unten)

4
How did you install? With the installer? Or copying files from one drive to another? Did you uninstall the previous installation? ernie vor 10 Jahren 0
Ich verwende das neueste XAMPP-Installationsprogramm. Ich habe nichts von der alten Installation kopiert. Dies ist eine Neuinstallation. Klikerko vor 10 Jahren 0

2 Antworten auf die Frage

3
Klikerko

Nach einigem Nachforschen, Experimentieren und Kopfschmerzen (das stört mich seit gestern Nacht), habe ich die Lösung gefunden. Zusätzlich zu den oben genannten Änderungen an der my.iniDatei

innodb_buffer_pool_size = 256M innodb_log_file_size = 256M innodb_thread_concurrency = 16 innodb_flush_log_at_trx_commit = 2 

Ich habe diese Zeile auch am Ende der my.iniDatei hinzugefügt

innodb_flush_method=normal 

Jetzt funktioniert alles super. Anscheinend handelt es sich um einen Fehler im Zusammenhang mit der großen Sektorgröße auf 2 TB + Festplatten. Quelle für diese Lösung finden Sie auf dieser Seite .

Für jeden, der sein Datadir unter Linux zu ZFS bewegt (wie ich es tat), stellen Sie sicher, dass Sie Folgendes hinzufügen: `innodb_use_native_aio = 0` im Abschnitt [[mysqld]] Ihrer` my.cnf'-Datei, da ZFS auf Linux nicht unterstützt AIO. https://dev.mysql.com/doc/refman/5.5/de/innodb-parameters.html#sysvar_innodb_use_native_aio Andrew Ensley vor 9 Jahren 0
0
PersianGulf

Ändern Sie Ihre Backend MyISAMaus InnoDB, Ihre mysqlkompilierte ohneInnoDB