Import Database via Command Prompt



Step 1:- copy sql file into  C:\wamp\bin\mysql\mysql5.5.8\bin  folder.
Step 2:- go to cmd
          C:\wamp\bin\mysql\mysql5.5.8\bin >mysql –u root –p password databasename < sqlfilename.sql

-u= root ,php myadmin username
-p=password , php myadmin password. 


Comments

  1. actually my db size 1.5 gb, is it possible import by localhost. i tried what u suggested above not working.

    ReplyDelete
  2. Hi Kaushik,

    Great trick, it's works for me. Larger database has uploaded through your suggested tricks.

    ReplyDelete

Post a Comment

Popular posts from this blog

Adding Contact us link to Top Menu in Magento

Credit card number for Testing payment methods

Magento create invoice of specific order by programmatically