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

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Security Latest
Security Latest
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AI
AI
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
S
Secure Thoughts
PCI Perspectives
PCI Perspectives
Simon Willison's Weblog
Simon Willison's Weblog
D
DataBreaches.Net
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
罗磊的独立博客
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
V
V2EX
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tenable Blog
T
Threat Research - Cisco Blogs
T
Troy Hunt's Blog
V2EX - 技术
V2EX - 技术
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
Lohrmann on Cybersecurity
F
Full Disclosure
H
Help Net Security
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
Engineering at Meta
Engineering at Meta
A
Arctic Wolf
O
OpenAI News
S
Securelist

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