MYSQL Based solution for importing big data

--Find D:\mysql\my.ini and open it, modify it if it exists, add it if it doesn't exist, PS: restarting the server will not change
max_allowed_packet=100000M

--Set to a maximum of 20G for import and export, you need to close and log in to the mysql console again, PS: restarting the server will restore the default value
set global max_allowed_packet = 2*1024*1024*10;

--//The above two methods can set the maximum import and export

--The largest import and export in the query
show VARIABLES like '%max_allowed_packet%';

--Query the database in MySQL
show databases;

-- select database
use huoche;

-- import data from database
source d:/huoche.sql;

--Export database data using phpmyadmin

 

Effect picture:


 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326425650&siteId=291194637