惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
N
News and Events Feed by Topic
P
Privacy International News Feed
The Hacker News
The Hacker News
Schneier on Security
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
Security Latest
Security Latest
L
LINUX DO - 最新话题
阮一峰的网络日志
阮一峰的网络日志
Cisco Talos Blog
Cisco Talos Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
The Cloudflare Blog
博客园 - 【当耐特】
博客园 - Franky
P
Privacy & Cybersecurity Law Blog
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
月光博客
月光博客
D
Docker
Webroot Blog
Webroot Blog
The GitHub Blog
The GitHub Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
W
WeLiveSecurity
S
Security Affairs
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Archives - TechRepublic
Security Archives - TechRepublic
Microsoft Azure Blog
Microsoft Azure Blog
C
CERT Recently Published Vulnerability Notes
B
Blog
L
Lohrmann on Cybersecurity
T
Threatpost
量子位
S
Schneier on Security
V
Visual Studio Blog
S
Securelist
T
The Exploit Database - CXSecurity.com
Scott Helme
Scott Helme
V
Vulnerabilities – Threatpost
aimingoo的专栏
aimingoo的专栏
The Register - Security
The Register - Security
I
Intezer
Stack Overflow Blog
Stack Overflow Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
博客园 - 聂微东
小众软件
小众软件
罗磊的独立博客
雷峰网
雷峰网
Recorded Future
Recorded Future

Rat's Blog - MySQL

一个强大的数据库管理工具:Navicat Premium中文破解版 - Rat's Blog CentOS 7安装配置Nginx 1.10、PHP 5.6、MySQL 5.7教程 Database.NET:一个好用的多数据库管理工具 - Rat's Blog 一个简单的MySQL备份bash脚本,直接发送到邮箱 - Rat's Blog 使用Mysqldump备份数据库出现when using LOCK TABLES解决方法 - Rat's Blog Linux修改PhpMyAdmin(MySql)密码教程 - Rat's Blog LNMP删除和关闭Mysql日志 - Rat's Blog 使用Mysqldump备份和还原MySQL数据库 - Rat's Blog VPS登陆phpMyAdmin出现"#2002 无法登录 MySQL 服务器"错误的解决方法 - Rat's Blog
修改phpMyAdmin导入MySQL数据库文件大小限制 - Rat's Blog
博主: Rat's · 2017-08-03 · via Rat's Blog - MySQL

说明:有时候网站内容多了,数据库也自然增大了,我们在迁移网站的时候发现数据过大,导致导入数据库超过了phpmyadmin自身的限制,无法直接导入,一般会出现如下提示:”No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16.”不过我们可以修改phpmyadmin导入文件的大小限制来实现。

这里说下2种方法,一般第一种就可以了,如果不行,就进行第二步,不过虚拟主机用户是无法修改这些文件的,如果数据库文件太大,只能单表导出。

一、修改php.ini文件
1、查找post_max_size,指通过表单POSTPHP的所能接收的最大值,包括表单里的所有值,默认为8M,看你自己需要进行改变。
2、查找File Uploads,首先确认file_uploads = on;是否允许通过HTTP上传文件的开关,默认为ON即是开。
3、查找upload_max_filesize;即允许上传文件大小的最大值。默认为2M

如果要上传>8M的文件,那么只设置上述四项还不定一定可以。最好对下面的参数也进行设置:

max_execution_time = 600;每个PHP页面运行的最大时间值(秒),默认30秒。
max_input_time = 600;每个PHP页面接收数据所需的最大时间,默认60秒。
memory_limit = 8M;每个PHP页面所吃掉的最大内存,默认8M。

二、修改phpmyadmin的import.php文件
查找$memory_limit,默认为$memory_limit = 2 * 1024 * 1024;自己根据实际情况修改,下边三四行的位置有同样的语句,自己修改。


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/239/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。