About the problems and solutions encountered when using Navicat to import large files mysql

    I took over a project and the other party exported the MYSQL structure to me, but there was still a lack of data, so I got a 60M MYSQL file with data again. The problem is that this mysql file is relatively large, which exceeds the default 2M of phpmyadmin. Imported with Navicat, I found that the huge slow kept reporting errors... 1 hour and the table was incomplete. Helpless

   I searched for answers everywhere on the Internet, and some of them were written in a very high level and could only be studied slowly. It took a few hours to find a feasible solution:

solution:

Put the sql file on the desktop or put the sql file in the root directory of a disk and then import it, the process, in the win environment 1. Use the cmd command  e: to switch to the e disk, 2. switch to the mysql core bin directory: cd D:\phpStudy\MySQL\bin 3. Log in to mysql and switch to the database to execute sql: mysql -u xxx -p xxx; use xxx;

Re-execute

Use forward slash "/" for the path 

This method only took a few seconds to complete the import.

Guess you like

Origin blog.csdn.net/EasyTure/article/details/99648889