*, the first step: sharp weapon
One of the sharp tools: import under the dos command The second weapon: tools such as Navicat Premium, etc.
*, the second step: target database encoding
One of the queries: under the dos command show variables like 'character_set_database';
*, Step 3: The source database export data encoding should be consistent
pending
*, the fourth step: import
One of the methods: under the dos command root or other user login use target database source file full path or relative path This kind of need to pay attention to the encoding method, otherwise there will be garbled methods, the following method is more efficient The second method: in the tool "Run sql file" of the import process can be
*, Step N: Export
One of the methods: under the dos command mysqldump -u username -p tablespace > fileName.sql (the path can be absolutely relative) This method is fast The second method: in the tool Export to sql or other formats