Tried to import 340MB SQL file into MariaDB via its console, it took hours to get finished on XAMPP 8.1.6 in Windows 10 with 16GB RAM.
Then, I stop MariaDB, open my.ini file and set these options
Then, I start again MariaDB, import on different database
Now it took less than 5 minutes to get finished 🙂
* Image by Benjamin Lehman and Ray Hennessy