Стенды: ALT Education 10.2 x86-64 (обновленный до Sisyphus) ALT Education 10.2 KDE x86-64 (обновленный до Sisyphus) ALT Workstation K 10.3 x86-64 (обновленный до Sisyphus) ALT Workstation 10.2 x86-64 (обновленный до Sisyphus) ALT Server 10.2 Office x86-64 (обновленный до Sisyphus) Версия пакета: mariadb-server-perl-11.4.3-alt1 Шаги воспроизведения: 1. Установить пакет mariadb-server-perl: # apt-get install mariadb-server-perl -y 2. Попытаться создать копию базы данных test: # mariadb-hotcopy test /tmp Ожидаемый результат: в директории /tmp появилась резервная копия базы данных test Реальный результат: следующая ошибка в терминале: Argument "" isn't numeric in subroutine entry at /usr/lib64/perl5/DBD/MariaDB.pm line 140. DBI connect(';host=;port=;mariadb_read_default_group=mysqlhotcopy','',...) failed: Connection error: port is not valid number at /usr/bin/mysqlhotcopy line 222.
Утилита работает только с выключенным chroot: 3. # control mysqld-chroot disabled 4. # systemctl start mysqld 5. # mysql -u root test Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 4 Server version: 10.11.9-MariaDB-alt1 (ALT p11) Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [test]> create table t1 (f1 int); Query OK, 0 rows affected (0,010 sec) MariaDB [test]> insert into t1 values (1); Query OK, 1 row affected (0,002 sec) MariaDB [test]> Bye # mariadb-hotcopy -u root -S /var/lib/mysql/mysql.sock test /tmp Flushed 1 tables with read lock (`test`.`t1`) in 0 seconds. Locked 0 views () in 0 seconds. Copying 2 files... Copying indices for 0 files... Unlocked tables. mariadb-hotcopy copied 1 tables (2 files) in 0 seconds (0 seconds overall).