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

推荐订阅源

Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
P
Proofpoint News Feed
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
The Last Watchdog
The Last Watchdog
F
Fortinet All Blogs
S
Schneier on Security
Help Net Security
Help Net Security
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
I
InfoQ
T
The Blog of Author Tim Ferriss
Cisco Talos Blog
Cisco Talos Blog
Stack Overflow Blog
Stack Overflow Blog
T
Troy Hunt's Blog
人人都是产品经理
人人都是产品经理
T
Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
Forbes - Security
Forbes - Security
Vercel News
Vercel News
S
Security Affairs
美团技术团队
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Jina AI
Jina AI
Spread Privacy
Spread Privacy
Attack and Defense Labs
Attack and Defense Labs
IT之家
IT之家
U
Unit 42
Recorded Future
Recorded Future
W
WeLiveSecurity
PCI Perspectives
PCI Perspectives
P
Palo Alto Networks Blog
H
Hacker News: Front Page
S
Security @ Cisco Blogs
博客园 - 【当耐特】

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,可以在文章下面评论留言。