首先要使用控制台删除所想要操作的数据库, 重新建库并使用utf8编码,命令为:

create database thams charset utf8;

第二部,导入sql文件,命令为:

mysql -uroot -pziguangruanjian --default-character-set=utf8 thams < d:\thams.sql

其中,要注意一定是用utf8进行编码

其中,导出数据库表为resource数据与结构为sql文件的命令为:

mysqldump -uedoc -pThams892 -h10.17.6.158 --default-character-set=utf8 --quote-names=false thams resource >d:\resource.sql

导出全库

mysqldump -uedocroot -pThams894 -h10.17.6.158 --default-character-set=utf8  thams  > d:\thams.sql

 

相关文章:

  • 2021-12-24
  • 2021-04-07
  • 2021-11-30
  • 2022-12-23
  • 2021-11-24
  • 2021-10-10
  • 2021-08-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-02-06
  • 2022-02-17
  • 2022-12-23
  • 2022-01-05
相关资源
相似解决方案