Import SQL file by command line in Windows 7

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

    Try like this:

    I think you need to use the full path at the command line, something like this, perhaps:

    C:\xampp\mysql\bin\mysql -u {username} -p {databasename} < file_name.sql
    

    Refer this link also:

    http://www.ryantetek.com/2011/09/importing-large-sql-files-through-command-line-when-using-phpmyadminxampp/

提交回复
热议问题