Importing larger sql files into MySQL

前端 未结 14 2261
感情败类
感情败类 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条回答
  •  渐次进展
    2020-12-12 11:11

    Had a similar problem, but in Windows. I was trying to figure out how to open a large MySql sql file in Windows, and these are the steps I had to take:

    • Go to the download website (http://dev.mysql.com/downloads/).
    • Download the MySQL Community Server and install it (select the developer or full install, so it will install client and server tools).
    • Open MySql Command Line Client from the Start menu.
    • Enter your password used in install.
    • In the prompt, mysql>, enter:

      CREATE DATABASE database_name;

      USE database_name;

      SOURCE myfile.sql

    That should import your large file.

提交回复
热议问题