MYSQL not working- can you please helo with what i can do

Problems with the Windows version of XAMPP, questions, comments, and anything related.

MYSQL not working- can you please helo with what i can do

Postby mbenic » 04. January 2022 07:04

Hi im having the same problem as one of the previous posts
i am running the prgram as administrator
and the mysql server wont start


this is the what is in the error log says


2022-01-04 14:06:45 0 [ERROR] mysqld.exe: File 'C:\xampp\mysql\data\aria_log.00000001' not found (Errcode: 2 "No such file or directory")
2022-01-04 14:06:45 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-01-04 14:06:45 0 [Note] InnoDB: Uses event mutexes
2022-01-04 14:06:45 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-01-04 14:06:45 0 [Note] InnoDB: Number of pools: 1
2022-01-04 14:06:45 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-01-04 14:06:45 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-01-04 14:06:45 0 [Note] InnoDB: Completed initialization of buffer pool
2022-01-04 14:06:45 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-01-04 14:06:45 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-01-04 14:06:45 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-01-04 14:06:45 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-01-04 14:06:45 0 [Note] InnoDB: Waiting for purge to start
2022-01-04 14:06:45 0 [Note] InnoDB: 10.4.20 started; log sequence number 495298579; transaction id 233337
2022-01-04 14:06:45 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2022-01-04 14:06:45 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-01-04 14:06:45 0 [Note] Server socket created on IP: '::'.


i also ran the command :
mysqld --defaults-file=mysql\bin\my.ini --standalone --console

and this is the result

mysqld --defaults-file=mysql\bin\my.ini --standalone --console
2022-01-04 14:09:55 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.
2022-01-04 14:09:55 0 [Note] mysqld (mysqld 10.4.20-MariaDB) starting as process 1620 ...
2022-01-04 14:09:55 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-01-04 14:09:55 0 [Note] InnoDB: Uses event mutexes
2022-01-04 14:09:55 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-01-04 14:09:55 0 [Note] InnoDB: Number of pools: 1
2022-01-04 14:09:55 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-01-04 14:09:55 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-01-04 14:09:55 0 [Note] InnoDB: Completed initialization of buffer pool
2022-01-04 14:09:55 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-01-04 14:09:55 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-01-04 14:09:55 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-01-04 14:09:55 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-01-04 14:09:55 0 [Note] InnoDB: Waiting for purge to start
2022-01-04 14:09:55 0 [Note] InnoDB: 10.4.20 started; log sequence number 495298588; transaction id 233337
2022-01-04 14:09:55 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2022-01-04 14:09:55 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-01-04 14:09:55 0 [Note] Server socket created on IP: '::'.
2022-01-04 14:09:56 7 [Note] Reading Master_info: 'master-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020reading@0020of@0020all@0020master_info@0020entries@0020succeeded@000d.info' Relay_info:'relay-log-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020reading@0020of@0020all@0020master_info@0020entries@0020succeeded@000d.info'
2022-01-04 14:09:56 7 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MariaDB server acts as a replica and has its hostname changed. Please use '--log-basename=#' or '--relay-log=mysql-relay-bin' to avoid this problem.
2022-01-04 14:09:56 7 [Note] Initialized Master_info from 'master-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020reading@0020of@0020all@0020master_info@0020entries@0020succeeded@000d.info'
2022-01-04 14:09:56 7 [Note] Added new Master_info '2021-12-08 21:32:24 0 [Note] Reading of all Master_info entries succ' to hash table
': Slave I/O thread: Start asynchronous replication to master '@:3306' in log '' at position 4ntries succeeded
2022-01-04 14:09:56 7 [Note] Started replication for '2021-12-08 21:32:24 0 [Note] Reading of all Master_info entries su'ceeded
': Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
': Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '.\mysql-relay-bin-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020reading@0020of@0020all@0020master_info@0020entries@0020succeeded@000d.000034' position: 4
2022-01-04 14:09:56 7 [Note] Reading Master_info: 'master-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020added@0020new@0020master_info@0020@0027@0027@0020to@0020hash@0020table@000d.info' Relay_info:'relay-log-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020added@0020new@0020master_info@0020@0027@0027@0020to@0020hash@0020table@000d.info'
': Slave I/O thread killed while connecting to master:24 0 [Note] Reading of all Master_info entries succeeded
': Slave I/O thread exiting, read up to log 'FIRST', position 4e] Reading of all Master_info entries succeeded
': master was :3306 8 [Note] Master '2021-12-08 21:32:24 0 [Note] Reading of all Master_info entries succeeded
2022-01-04 14:09:56 7 [ERROR] Failed to open the relay log '.\mysql-relay-bin-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020added@0020new@0020master_info@0020@0027@0027@0020to@0020hash@0020table@000d.000001' (relay_log_pos 4)
2022-01-04 14:09:56 7 [ERROR] Could not find target log during relay log initialization
2022-01-04 14:09:56 7 [ERROR] Initialized Master_info from 'master-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020added@0020new@0020master_info@0020@0027@0027@0020to@0020hash@0020table@000d.info' failed
' to hash table9:56 7 [Note] Added new Master_info '2021-12-08 21:32:24 0 [Note] Added new Master_info '' to hash table
2022-01-04 14:09:56 7 [Note] Reading Master_info: 'master-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020c@003a@005cxampp@005cmysql@005cbin@005cmysqld@002eexe@003a@0020ready@0020for@0020connections@002e@000d.info' Relay_info:'relay-log-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020c@003a@005cxampp@005cmysql@005cbin@005cmysqld@002eexe@003a@0020ready@0020for@0020connections@002e@000d.info'
2022-01-04 14:09:56 0 [Note] InnoDB: Buffer pool(s) load completed at 220104 14:09:56
2022-01-04 14:09:56 7 [Note] Initialized Master_info from 'master-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020c@003a@005cxampp@005cmysql@005cbin@005cmysqld@002eexe@003a@0020ready@0020for@0020connections@002e@000d.info'
2022-01-04 14:09:56 7 [Note] Added new Master_info '2021-12-08 21:32:24 0 [Note] c:\xampp\mysql\bin\mysqld.exe: ready fo' to hash table
': Slave I/O thread: Start asynchronous replication to master '@:3306' in log '' at position 4xe: ready for connections.2022-01-04 14:09:56 7 [Note] Started replication for '2021-12-08 21:32:24 0 [Note] c:\xampp\mysql\bin\mysqld.exe: ready 'or connections.
2022-01-04 14:09:56 10 [ERROR] Master '2021-12-08 21:32:24 0 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections': Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
': Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '.\mysql-relay-bin-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020c@003a@005cxampp@005cmysql@005cbin@005cmysqld@002eexe@003a@0020ready@0020for@0020connections@002e@000d.000001' position: 4
2022-01-04 14:09:56 7 [Note] Reading Master_info: 'master-version@003a@0020@002710@002e4@002e20@002dmariadb@0027@0020@0020socket@003a@0020@0027@0027@0020@0020port@003a@00203306@0020@0020mariadb@002eorg@0020binary@0020distribution@000d.info' Relay_info:'relay-log-version@003a@0020@002710@002e4@002e20@002dmariadb@0027@0020@0020socket@003a@0020@0027@0027@0020@0020port@003a@00203306@0020@0020mariadb@002eorg@0020binary@0020distribution@000d.info'
': Slave I/O thread killed while connecting to master2:24 0 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.': Slave I/O thread exiting, read up to log 'FIRST', position 4te] c:\xampp\mysql\bin\mysqld.exe: ready for connections.': master was :3306 10 [Note] Master '2021-12-08 21:32:24 0 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.2022-01-04 14:09:56 7 [Note] Initialized Master_info from 'master-version@003a@0020@002710@002e4@002e20@002dmariadb@0027@0020@0020socket@003a@0020@0027@0027@0020@0020port@003a@00203306@0020@0020mariadb@002eorg@0020binary@0020distribution@000d.info'
2022-01-04 14:09:56 7 [Note] Added new Master_info 'Version: '10.4.20-MariaDB' socket: '' port: 3306 mariadb.org bina' to hash table
2022-01-04 14:09:56 12 [Note] Master 'Version: '10.4.20-MariaDB' socket: '' port: 3306 mariadb.org binary distributio': Slave I/O thread: Start asynchronous replication to master '@:3306' in log '' at position 4
2022-01-04 14:09:56 7 [Note] Started replication for 'Version: '10.4.20-MariaDB' socket: '' port: 3306 mariadb.org bi'ary distribution
2022-01-04 14:09:56 12 [ERROR] Master 'Version: '10.4.20-MariaDB' socket: '' port: 3306 mariadb.org binary distributi': Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
2022-01-04 14:09:56 13 [Note] Master 'Version: '10.4.20-MariaDB' socket: '' port: 3306 mariadb.org binary distributio': Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '.\mysql-relay-bin-version@003a@0020@002710@002e4@002e20@002dmariadb@0027@0020@0020socket@003a@0020@0027@0027@0020@0020port@003a@00203306@0020@0020mariadb@002eorg@0020binary@0020distribution@000d.000001' position: 4
2022-01-04 14:09:56 7 [Note] Reading Master_info: 'master-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020innodb@003a@0020buffer@0020pool@0028s@0029@0020load@0020completed@0020at@0020211208@002021@003a32@003a24@000d.info' Relay_info:'relay-log-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020innodb@003a@0020buffer@0020pool@0028s@0029@0020load@0020completed@0020at@0020211208@002021@003a32@003a24@000d.info'
2022-01-04 14:09:56 12 [Note] Master 'Version: '10.4.20-MariaDB' socket: '' port: 3306 mariadb.org binary distributio': Slave I/O thread killed while connecting to master
2022-01-04 14:09:56 12 [Note] Master 'Version: '10.4.20-MariaDB' socket: '' port: 3306 mariadb.org binary distributio': Slave I/O thread exiting, read up to log 'FIRST', position 4
2022-01-04 14:09:56 12 [Note] Master 'Version: '10.4.20-MariaDB' socket: '' port: 3306 mariadb.org binary distributio': master was :3306
2022-01-04 14:09:56 7 [Note] Initialized Master_info from 'master-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020innodb@003a@0020buffer@0020pool@0028s@0029@0020load@0020completed@0020at@0020211208@002021@003a32@003a24@000d.info'
2022-01-04 14:09:56 7 [Note] Added new Master_info '2021-12-08 21:32:24 0 [Note] InnoDB: Buffer pool(s) load completed a' to hash table24
2022-01-04 14:09:56 14 [Note] Master '2021-12-08 21:32:24 0 [Note] InnoDB: Buffer pool(s) load completed at 211208 21:32': Slave I/O thread: Start asynchronous replication to master '@:3306' in log '' at position 4
2022-01-04 14:09:56 14 [ERROR] Master '2021-12-08 21:32:24 0 [Note] InnoDB: Buffer pool(s) load completed at 211208 21:3': Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
2022-01-04 14:09:56 7 [Note] Started replication for '2021-12-08 21:32:24 0 [Note] InnoDB: Buffer pool(s) load completed'at 211208 21:32:24
2022-01-04 14:09:56 15 [Note] Master '2021-12-08 21:32:24 0 [Note] InnoDB: Buffer pool(s) load completed at 211208 21:32': Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '.\mysql-relay-bin-2021@002d12@002d08@002021@003a32@003a24@00200@0020@005bnote@005d@0020innodb@003a@0020buffer@0020pool@0028s@0029@0020load@0020completed@0020at@0020211208@002021@003a32@003a24@000d.000001' position: 4
2022-01-04 14:09:56 14 [Note] Master '2021-12-08 21:32:24 0 [Note] InnoDB: Buffer pool(s) load completed at 211208 21:32': Slave I/O thread killed while connecting to master
2022-01-04 14:09:56 0 [Warning] Reading of some Master_info entries failed
2022-01-04 14:09:56 14 [Note] Master '2021-12-08 21:32:24 0 [Note] InnoDB: Buffer pool(s) load completed at 211208 21:32': Slave I/O thread exiting, read up to log 'FIRST', position 4
2022-01-04 14:09:56 0 [ERROR] Failed to initialize multi master structures
2022-01-04 14:09:56 14 [Note] Master '2021-12-08 21:32:24 0 [Note] InnoDB: Buffer pool(s) load completed at 211208 21:32': master was :3306
2022-01-04 14:09:56 0 [ERROR] Aborting
Warning: Memory not freed: 256
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10

Re: MYSQL not working- can you please helo with what i can d

Postby Altrea » 04. January 2022 07:39

Hi,

Please try the following fix. It already helped lots of users solving the multi-master Problem:

  • Open your folder "\xampp\mysql\data"
  • Delete the file "multi-master.info"
  • Delete all files beginning with "master-"
  • Delete all files beginning with "mysql_relay-bin-"
  • Delete all files beginning with "relay-log-"
  • Delete all files beginning with "ib_logfile"
  • Delete all files beginning with "aria_log."

Now try to start mariadb the normal way again.
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: 11934
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: MYSQL not working- can you please helo with what i can d

Postby mbenic » 04. January 2022 12:39

yes i have deleted all those files and it seems to have worked
the database server is back up again
now i will make a backup of my website

do you know what the reason for the errors are and is there anything i can do to prevent the same thing happening again?
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 191 guests