Import sql dump backup file to my sql server using git bash in windows 10

416 Views Asked by At

I exported (dumped) a .sql file from my remote Linux server and would like to import it to my local MYSQL server (windows 10) using bash command in git bash.

mysql -u root -p DBname < C:/Users/.../sb_backup.sql

after this command it asks me for my MYSQL client password and then it freezes forever. When I ctr+C and go back and check, I see it has not been imported yet.

I already created DBname and it exists.

I appreciate your help.

0

There are 0 best solutions below