Home > Database > Mysql Tutorial > body text

MySQL 导入数据时max_allowed_packet超出的问题

WBOY
Release: 2016-06-07 17:00:44
Original
951 people have browsed it

最近做了小测试,就是把项目中oracle的数据导入到mysql中,使用的mysql migration tool 进行数据迁移,在迁移完以后,发现数据有

最近做了小测试,就是把项目中Oracle的数据导入到mysql中,使用的mysql migration tool 进行数据迁移,在迁移完以后,发现数据有些丢失,,查看迁移报告才发现有个max_allowed_packet超出了系统设置的上限,没有迁移成功,可以修改此变量的值,

修改此变量的值:MySQL安装目录下的my.ini文件中的[mysqld]段中的"max_allowed_packet = 1M",如更改为4M(如果没有这行内容,增加一行),保存,然后要重起MySQL服务。现在可以加载大于1M的文件了。

linux

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!