Importing larger sql files into MySQL

前端 未结 14 2254
感情败类
感情败类 2020-12-12 10:45

I have a 400MB large sql backup file. I\'m trying to import that file into MySQL database using WAMP->import, but the import was unsuccessful due to many reasons such as upl

14条回答
  •  猫巷女王i
    2020-12-12 11:05

    You can make the import command from any SQL query browser using the following command:

    source C:\path\to\file\dump.sql
    

    Run the above code in the query window ... and wait a while :)

    This is more or less equal to the previously stated command line version. The main difference is that it is executed from within MySQL instead. For those using non-standard encodings, this is also safer than using the command line version because of less risk of encoding failures.

提交回复
热议问题