Import SQL file by command line in Windows 7

前端 未结 16 1481
攒了一身酷
攒了一身酷 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:44

    ----------------WARM server.

    step 1: go to cmd go to directory C:\wamp\bin\mysql\mysql5.6.17 hold Shift + right click (choose "open command window here")

    step 2: C:\wamp\bin\mysql\mysql5.6.17\bin>mysql -u root -p SellProduct < D:\file.sql

    in this case
    + Root is username database  
    + SellProduct is name database.
    + D:\file.sql is file you want to import
    

    ---------------It's work with me -------------------

提交回复
热议问题