Import SQL file by command line in Windows 7

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

    Try this it will work. Do not enter password it will ask one you execute the following cmd

    C:\xampp\mysql\bin\mysql -u xxxxx -p -h localhost your_database_name < c:\yourfile.sql
    

提交回复
热议问题