donkeysmall

mysql 导入sql文件时,报错:“unknown command”

 

原因:编码问题。

不是说文件编码问题,而是连接mysql时设置的编码问题。

 

用以下语句连接:

mysql -uroot --default-character-set=utf8 -ppassword

 

连接后,再用

source xxxx.sql 导入

 

ok,大功告成!

 

分类:

技术点:

相关文章:

  • 2021-05-23
  • 2021-04-18
  • 2021-12-16
  • 2021-07-19
  • 2021-12-16
  • 2021-12-16
  • 2021-10-07
  • 2021-10-05
猜你喜欢
  • 2021-09-27
  • 2021-09-11
  • 2021-07-29
  • 2021-09-27
  • 2021-05-10
相关资源
相似解决方案