salut, merci
erreur trouvée :, voir en bas
2024-12-11 3:52:28 0 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace: ./Joel142/MDP.ibd uses space ID: 383. Cannot open filepath: ./dolibarr2001/llx_expeditiondet_batch.ibd which uses the same space ID.
difficile à comprendre ce qui s’est passé
selon toute vraissemblance, une corruption est arrivée sur mes fichiers qui devaient marcher avant.
J’ai essayé un mysqlfrm sur une debian stretch mais ça n’a pas marché
Ta proposition de backup me semble inutile : il s’agit simplement d’une copie de fichiers :
For example, you could also execute the following to restore the backup:
$ rsync -avrP /var/mariadb/backup /var/lib/mysql/
mais en utilisant mariabackup
mariabackup --backup --target-dir=/tmp/hh/ --user=root --password=…
j’obtiens une erreur
[00] 2024-12-11 03:50:41 Connecting to MariaDB server host: localhost, user: root, password: set, port: not set, socket: /run/mysqld/mysqld.sock
[00] 2024-12-11 03:50:41 Using server version 10.11.6-MariaDB-0+deb12u1
mariabackup based on MariaDB server 10.11.6-MariaDB debian-linux-gnu (x86_64)
[00] 2024-12-11 03:50:41 uses posix_fadvise().
[00] 2024-12-11 03:50:41 cd to /var/lib/mysql/
[00] 2024-12-11 03:50:41 Loading plugins
[00] 2024-12-11 03:50:41 open files limit requested 0, set to 1024
[00] 2024-12-11 03:50:41 mariabackup: using the following InnoDB configuration:
[00] 2024-12-11 03:50:41 innodb_data_home_dir =
[00] 2024-12-11 03:50:41 innodb_data_file_path = ibdata1:12M:autoextend
[00] 2024-12-11 03:50:41 innodb_log_group_home_dir = ./
[00] 2024-12-11 03:50:41 InnoDB: Using liburing
2024-12-11 3:50:41 0 [Note] InnoDB: Number of transaction pools: 1
Ces trois lignes finales sans sudo :
2024-12-11 3:50:41 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2024-12-11 3:50:41 0 [ERROR] InnoDB: The error means mariadbd does not have the access rights to the directory.
[00] 2024-12-11 03:50:41 Error: cannot read redo log header
Ces lignes finales avec sudo :
2024-12-11 3:52:28 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
[00] 2024-12-11 03:52:28 mariabackup: Generating a list of tablespaces
2024-12-11 3:52:28 0 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace: ./Joel142/MDP.ibd uses space ID: 383. Cannot open filepath: ./dolibarr2001/llx_expeditiondet_batch.ibd which uses the same space ID.
[00] FATAL ERROR: 2024-12-11 03:52:28 Failed to validate first page of the file dolibarr2001/llx_expeditiondet_batch, error 40