Finally after a certain search and further checking the errors I found out that max_allowed_packet
variable was causing this issue as usual. Though I'm not an expert in such field, I'm happy that I figured out. I would like to share the link which helped me to fix this issue and also how I achieved it.
This is what I did..
- I first logged into mysql server using
mysql -u user -p
& by entering the password. - Then I executed following commands;
set global net_buffer_length=1000000;
set global max_allowed_packet=1000000000;
- Finally I left the terminal as it is & opened a new one, then I executed below command which did the magic without any interruptions..
mysql --max_allowed_packet=100M -u root -p database < dump.sql
I hope this may help any other facing such issues.
Thanks.