Import SQL file by command line in Windows 7

前端 未结 16 1465
攒了一身酷
攒了一身酷 2021-01-30 11:20

I want to import an SQL file (size > 500MB) into a database. I have wamp on my PC. Phpmyadmin does not work well with this size. I changed all parameters in php.ini (max_upload_

16条回答
  •  清酒与你
    2021-01-30 11:57

    To import database from dump file use:

    mysql -u UserName -p Password DatabaseName < FileName.sql 
    

    In wamp

    C:\wamp\bin\mysql\mysql5.0.51b\bin>mysql mysql -uroot -p DatabaseName < FileName.sql 
    

提交回复
热议问题