Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
chcp 850在cmd运行代码之前尝试运行命令。
chcp 850
cmd
这将使1.sql文件以正确的编码加载。
1.sql
--default-character-set=utf8
做到了。
mysql -u root -p --default-character-set=utf8 dtbs < 1.sql