/Applications/XAMPP/xamppfiles/bin/mysql -u {username} -p {password} {dbname} < {target file}
example with my local server
/Applications/XAMPP/xamppfiles/bin/mysql -u root -p tryout_new < /Users/ekaparianthana/Downloads/db-dumps/mysql-bimbelbtw.sql
Good Luck