Mysql import data to solve a large amount of lead to failure and to find my.ini position (my.ini) in which

Database large amount of data into the local database, and the like will be long, however, after the failure of a display or the like for a long time;

It is not necessary to look at their local mysql whether a time-out period, if relevant to the time_out these, you can add max_allowed_packet, interactive_timeout mysql.ini tail, wait_timeout

Related parameters mysql.ini [MySQL]

# Set the default character set mysql client default-character-set = utf8 [mysqld]

Set # 3306 Port port = 3306

# Set the mysql installation directory basedir = D: \ MySQL \ mysql-5.7.21-winx64

# Set the data storage directory database mysql datadir = D: \ MySQL \ mysql-5.7.21-winx64 \ data

# Allowed maximum number of connections max_connections = 200

# Server default character set used for the 8-bit coded character set latin1 character-set-server = utf8

# Will be used when you create a new default storage engine table default-storage-engine = INNODB

sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

max_allowed_packet=500M

wait_timeout=288000

interactive_timeout = 288000

MySql 5.7 my.ini position (my.ini) Where?

Find the MySQL command "Start → All Programs → MySQL" the following line client tool, right click and choose this command-line tool to view the "property" in the "target" which may see MySQL configuration file locations used.

 

 

Guess you like

Origin www.cnblogs.com/xsdty/p/11993551.html