Import notes:
Using tools such as phpmyadmin or navicat to import data is still quite slow. You can directly use mysql to import data.
The import command is as follows:
Mysql>-uroot-psupidea jb51.net <E: \ www.jb51.net. SQLYou can
Note:
Mysql>-umysql user name-pmysql password name of the database to be imported <path of the SQL file to be imported to MYSQL
In this way, the import will be very fast. The SQL statements that can be imported several hours ago can now be completed in dozens of seconds.
Note:
-EUse the multiline INSERT syntax that includes several VALUES lists;
-- Max_allowed_packet =The maximum size of the cache area for communications between clients and servers of XXX;
-- Net_buffer_length =The size of the XXX TCP/IP and socket communication buffer, and the line with length up to net_buffer_length is created.
Note: max_allowed_packet and net_buffer_length cannot be greater than the set value of the target database. Otherwise, an error may occur.
First, determine the parameter value of the target database.
Mysql>Show variables like 'max _ allowed_packet ';
Mysql>Show variables like 'net _ buffer_length ';
Write the mysqldump Command Based on the parameter value, for example:
Mysql> mysqldump-uroot-psupidea jb51.net goodclassification-e -- max_allowed_packet = 1048576 -- net_buffer_length = 16384> www.jb51.net. SQL