delete tables on import of dump created by mysqldump
You need to drop and re-create the database. So you need to use some extra / different options when creating the dump file:

mysqldump --login-path=lp --add-drop-database --databases test_db &gt; dump.sql


And import with:

mysql --login-path=kp &lt; dump.sql