Зашел в MySQL:
mysql -u user -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 833524
Server version: 10.1.43-MariaDB MariaDB Server
Выбрал базу:
MariaDB [(none)]> use mydatabase
Database changed
И произвожу импорт:
MariaDB [mydatabase]> < /var/www/user/data/www/site.ru/backup/file.sql;
Ошибка:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '< /var/www/user/data/www/site.ru/backup/file.sql' at line 1
Так тоже ошибка:
MariaDB [mydatabase]> mydatabase < /var/www/user/data/www/site.ru/backup/file.sql;