mysql导入sql大文件语句?
高洛峰
高洛峰 2017-04-17 16:24:18
0
3
748

数据库down下一个200M的sql文件准备做测试,求一个导入数据库的方法;
Tips:cli下用source 导入直接导致server断掉,亲测
用工具SQLyog一样不行
另,修改了my.ini
max_allowed_packet=500M重启mysql后没起到作用,也很奇怪

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(3)
Peter_Zhu

There is a tool that can split large sql data files into multiple files according to a certain size such as 10M. The data structure file is in a separate file. You can search it online. The name is SQLDumpSplitter

左手右手慢动作

Can the data source be imported again?
Direct

mysqldump -u -p -P > *.sql

mysql -u -p -P < *.sql

How fast is this

伊谢尔伦

Modify
wait_timeout=2880000
interactive_timeout = 2880000
max_allowed_packet = 20M --This parameter cannot be set too large.

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!