Home  >  Article  >  Database  >  解析MYSQL 数据库导入SQL 文件出现乱码的问题_MySQL

解析MYSQL 数据库导入SQL 文件出现乱码的问题_MySQL

WBOY
WBOYOriginal
2016-06-01 13:25:101066browse

bitsCN.com 导入数据时,如果目标数据库或表是UTF-8字符集的,而导入SQL中有中文,可能在最终结果中出现乱码,此时只需在导入的SQL文件第一行加入如下内容 即可。
/*!40101 SET NAMES utf8 */;bitsCN.com

Statement:
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