Solve the database error: MySQL server has gone away

Scenes:

An error was reported when importing the .sql file.
Insert picture description here
Insert picture description here

the reason:

The amount of inserted data is too large, and MySQL performance is not enough.
Insert picture description here
How much data is there, that's it.
Insert picture description here

Solution:

Find your mysql installation address and find the my.ini file.
Insert picture description here
Just edit like this.
Insert picture description here
Then restart the service.
Insert picture description here

After modifying the configuration file, after restarting the service, you can test on the command line to see if the modification is successful.
The modification is successful, and then import is ok.

Insert picture description here

Guess you like

Origin blog.csdn.net/numbbe/article/details/109284205