MySQL stoppt direkt nach Start

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

MySQL stoppt direkt nach Start

Postby KarinHö » 20. November 2021 18:36

Hallo, ich habe ein ähnliches Problem, allerdings steht in der ersten Zeile des logs noch eine Warnung. - Den fix von Altrea habe ich schon probiert, der hat leider nichts gebracht.

2021-11-20 18:34:10 0 [Warning] The parameter innodb_file_format is deprecated and has no effect. It may be removed in future releases. See https://mariadb.com/kb/en/library/xtradbinnodb-file-format/
2021-11-20 18:34:10 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-11-20 18:34:10 0 [Note] InnoDB: Uses event mutexes
2021-11-20 18:34:10 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-11-20 18:34:10 0 [Note] InnoDB: Number of pools: 1
2021-11-20 18:34:10 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-11-20 18:34:10 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-11-20 18:34:10 0 [Note] InnoDB: Completed initialization of buffer pool
2021-11-20 18:34:10 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile101 size to 5242880 bytes
2021-11-20 18:34:10 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile1 size to 5242880 bytes
2021-11-20 18:34:10 0 [Note] InnoDB: Renaming log file C:\xampp\mysql\data\ib_logfile101 to C:\xampp\mysql\data\ib_logfile0
2021-11-20 18:34:10 0 [Note] InnoDB: New log files created, LSN=301117
2021-11-20 18:34:11 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-11-20 18:34:11 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-11-20 18:34:11 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-11-20 18:34:11 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-11-20 18:34:11 0 [Note] InnoDB: Waiting for purge to start
2021-11-20 18:34:11 0 [Note] InnoDB: 10.4.21 started; log sequence number 301580; transaction id 195
2021-11-20 18:34:11 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-11-20 18:34:11 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-11-20 18:34:11 0 [Note] Zerofilling moved table: '.\mysql\plugin'
2021-11-20 18:34:11 0 [Note] Zerofilling moved table: '.\mysql\servers'
2021-11-20 18:34:11 0 [Note] InnoDB: Buffer pool(s) load completed at 211120 18:34:11
2021-11-20 18:34:11 0 [Note] Server socket created on IP: '::'.

ich habe x64-8.0.12-0-VS16 auf einem win 10 pro installiert, gestern nach der Installation lief alles bis heute nachmittag, dann war auf einmal Schluss. Ich habe innodb_file_format= Barracuda
KarinHö
 
Posts: 17
Joined: 20. November 2021 17:41
XAMPP version: x64-8.0.12-0-VS16
Operating System: win 10 pro

Re: MySQL stoppt direkt nach Start

Postby Altrea » 20. November 2021 20:29

KarinHö wrote:Hallo, ich habe ein ähnliches Problem, allerdings steht in der ersten Zeile des logs noch eine Warnung. - Den fix von Altrea habe ich schon probiert, der hat leider nichts gebracht.

Hallo,
Natürlich hat das nichts gebracht. Das hat dieselbe Qualität wie "Mein Auto startet nichtmehr, ich habe bei einem anderen Kunden mit demselben Problem in einer Werkstatt mitbekommen, dass der Tank befüllt werden musste"

Zurück zum Statt. Wenn du schon einen Beitrag findest, dann lies ihn dir doch bitte komplett durch und fange mit dem ersten Schritt der Fehleranalyse ein. "Auto startet nicht" Kann am Tank, an der Batterie, am Motor, an der Lichtmaschine, an der Zündung, an der Elektrik oder am Steuergerät liegen. Da einfach ohne Anhaltspunkte etwas auszuprobieren hilft nicht.

Versuche mit folgendem Kommand MariaDB in der XAMPP Shell als Konsolenanwendung zu starten und berichte uns, was für Rückmeldungen es dort gibt:
Code: Select all
mysqld --defaults-file=mysql\bin\my.ini --standalone --console
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: MySQL stoppt direkt nach Start

Postby KarinHö » 21. November 2021 10:08

ok, ich starte also mit der Fehleranalyse, die shell gibt folgendes aus

Setting environment for using XAMPP for Windows.
User@DESKTOP-FOASM6G c:\xampp
# mysqld --defaults-file=mysql\bin\my.ini --standalone --console
2021-11-21 9:42:35 0 [Note] Using unique option prefix 'key_buffer' is error-prone and can break in the future. Please use the full name 'key_buffer_size' instead.
2021-11-21 9:42:35 0 [Note] mysqld (mysqld 10.4.21-MariaDB) starting as process 10420 ...
2021-11-21 9:42:35 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-11-21 9:42:35 0 [Note] InnoDB: Uses event mutexes
2021-11-21 9:42:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-11-21 9:42:35 0 [Note] InnoDB: Number of pools: 1
2021-11-21 9:42:35 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-11-21 9:42:35 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-11-21 9:42:35 0 [Note] InnoDB: Completed initialization of buffer pool
2021-11-21 9:42:35 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-11-21 9:42:35 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-11-21 9:42:35 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-11-21 9:42:35 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-11-21 9:42:35 0 [Note] InnoDB: Waiting for purge to start
2021-11-21 9:42:35 0 [Note] InnoDB: 10.4.21 started; log sequence number 302110; transaction id 195
2021-11-21 9:42:35 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-11-21 9:42:35 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-11-21 9:42:35 0 [Note] Server socket created on IP: '::'.
2021-11-21 9:42:35 0 [ERROR] mysqld: Index for table '.\mysql\db' is corrupt; try to repair it
2021-11-21 9:42:35 0 [ERROR] Couldn't repair table: mysql.db
2021-11-21 9:42:35 0 [ERROR] Fatal error: Can't open and lock privilege tables: Index for table 'db' is corrupt; try to repair it
2021-11-21 9:42:35 0 [ERROR] Aborting
KarinHö
 
Posts: 17
Joined: 20. November 2021 17:41
XAMPP version: x64-8.0.12-0-VS16
Operating System: win 10 pro

Re: MySQL stoppt direkt nach Start

Postby Altrea » 21. November 2021 13:08

KarinHö wrote:2021-11-21 9:42:35 0 [ERROR] mysqld: Index for table '.\mysql\db' is corrupt; try to repair it
2021-11-21 9:42:35 0 [ERROR] Couldn't repair table: mysql.db
2021-11-21 9:42:35 0 [ERROR] Fatal error: Can't open and lock privilege tables: Index for table 'db' is corrupt; try to repair it
2021-11-21 9:42:35 0 [ERROR] Aborting

Deine mysql Datenbank ist nichtmehr funktionsfähig und muss repariert werden.

Um diese Datenbank zu reparieren, öffne bitte eine XAMPP Shell und führe folgendes Command aus:
Code: Select all
mysqld --console --skip-grant-tables --skip-external-locking


Lasse die Shell offen und öffne bitte eine zweite XAMPP Shell und führe dort folgendes Command aus:
Code: Select all
mysqlcheck -r --databases mysql --use-frm


Anschließend kannst du beide Shell Fenster schließen und versuchen die Datenbank auf normalem Wege zu starten
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: MySQL stoppt direkt nach Start

Postby KarinHö » 21. November 2021 21:35

Vielen Dank! Das hat funktioniert. Jetzt kann ich mich dem zweiten Fehler widmen, ich suche mal nach einem Thema zu dem er passt.
KarinHö
 
Posts: 17
Joined: 20. November 2021 17:41
XAMPP version: x64-8.0.12-0-VS16
Operating System: win 10 pro


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 139 guests