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

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

Rat's Blog - PhpMyAdmin

使用phpmyadmin批量修改WordPress等博客文章信息 - Rat's Blog VPS登陆phpMyAdmin出现"#2002 无法登录 MySQL 服务器"错误的解决方法 - Rat's Blog
修改phpMyAdmin导入MySQL数据库文件大小限制 - Rat's Blog
博主: Rat's · 2017-08-03 · via Rat's Blog - PhpMyAdmin

说明:有时候网站内容多了,数据库也自然增大了,我们在迁移网站的时候发现数据过大,导致导入数据库超过了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,可以在文章下面评论留言。