yum install mariadb-server to install mysqldump.mysqldump --compact --single-transaction -d -uxxx -pxxx -hxxx.xxx.xxx.xxx -Pxxxx db_name table_name > schema.sql
db_name and table_name parameters as needed.net_write_timeout parameter in the parameter settings in the TDSQL for MySQL Console: set global net_write_timeout=28800mysqldump --compact --single-transaction --no-create-info -c -uxxx -pxxx -hxxx.xxx.xxx.xxx -Pxxxx db_name table_name > data.sql
db_name and table_name parameters should be selected as needed. If the exported data is to be imported into another set of TDSQL for MySQL environment, the -c option must be added, and there should be a space between -c and db_name.
mysql --default-character-set=utf8 -uxxx -pxxx -hxxx.xxx.xxx.xxx -Pxxxx -e "create database dbname;";
-u is a keyword).-p is a keyword).mysql --default-character-set=utf8 -uxxx -pxxx -hxxx.xxx.xxx.xxx -Pxxxx dbname < schema.sql
-u is a keyword).-p is a keyword).mysql --default-character-set=utf8 -uxxx -pxxx -hxxx.xxx.xxx.xxx -Pxxxx dbname < data.sql
schema.sql needs to be processed.
Remove the back quotes from the auto-increment field (cat schema.sql | tr "" " " > schema_tr.sql), drop database, and repeat steps 3–5 by using the processed schema_tr.sql`.
Feedback