Error restoring from backup

Not sure if this helps but, for me, I had this issue when I was trying to populate demo data - more or less, the same function - restoring the database. I came across Rrestore db from server to localhost (XAMPP) and realized that dropping and recreating the database is a solution. In my case, I simply dropped all the tables in the DB and ran the script although in your case, I am assuming there are anyways no tables in the DB. Your issue is most probably resolved by now but I am hoping this helps someone who comes across the thread