Use the source command to solve the problem of garbled mysql import

Set the encoding format: mysql -u root -p --default-character-set=utf8 
use dbname 
source /root/newsdata.sql 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326218166&siteId=291194637