Home > Database > Mysql Tutorial > body text

MySql 数据库导入Unknown command n.错误解决办法

WBOY
Release: 2016-06-07 17:51:59
Original
2197 people have browsed it

文章介绍MySql 数据库导入Unknown command \\n.错误解决办法 ,有需要的朋友可以参考一下。

 

在CMD 下 输入: Mysql -u root -p --default-character-set=utf8 database

注:出现这种错误一般是由于备份数据的字符集和恢复时使用的字符集不一致所致,常用的两种字符集是

UTF8

GBK

找一半天原理只是一个中文乱码引起来,看来老外开发的东西我们中国人用起来对中文编码要特别注意哈。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!