PHPMYADMIN导入数据最大为2M的解决方法_PHP
phpmyadmin
PHPMYADMIN是经常使用的一个MySql管理工具,备份和还原是PHPMYADMIN的重要功能,在还原数据库的时候经常遇到这样的一个情况:PHPMYADMIN还原数据库的时候上传的最大限制:2,048 KB,数据库稍微大一些就无法处理,要么使用其他的备份还原工具如帝国备份王,要么就分卷导出,那么有没有办法还使用PHPMYADMIN来处理呢?肯定可以的,根据下面的步骤来吧。以WINDOWS2003系统为例,共分为三部分:IIS部分、PHP部分和PHPMYADMIN部分。
一、IIS部分
1)解决在 IIS 6.0 中,无法上传大容量文件的办法:
1、先在服务里关闭 iis admin service 服务。
2、找到 windows/system32/inetsrv/ 下的 metabase.xml 文件。
3、用写字板打开,找到 ASPMaxRequestEntityAllowed 把它修改为需要的值(默认为:204800,即:200K)。
4、存盘,然后重启 iis admin service 服务,重启IIS。
2)解决在 IIS 6.0 中,无法下载超过4M的附件步骤:
1、先在服务里关闭 iis admin service 服务。
2、找到 windows/system32/inetsrv/ 下的 metabase.xml 文件。
3、用写字板打开,找到 AspBufferingLimit 把它修改为需要的值(默认为:4194304,即:4MB)。
4、存盘,然后重启 iis admin service 服务,重启IIS。
二、PHP部分
1、查找post_max_size,指通过表单POST给PHP的所能接收的最大值,包括表单里的所有值,默认为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文件:
1、查找$memory_limit,默认为$memory_limit = 2 * 1024 * 1024;自己修改。
2、下边三四行的位置有同样的语句,自己修改。
通过上面三个部分的修改,可以完美的解决PHPMYADMIN导入数据最大为2M的问题。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The primary key of a table is one or more columns that uniquely identify each record in the table. Here are the steps to set a primary key: Log in to phpMyAdmin. Select database and table. Check the column you want to use as the primary key. Click "Save Changes". Primary keys provide data integrity, lookup speed, and relationship modeling benefits.

Adding a foreign key in phpMyAdmin can be achieved by following these steps: Select the parent table that contains the foreign key. Edit the parent table structure and add new columns in "Columns". Enable foreign key constraints and select the referencing table and key. Set update/delete operations. save Changes.

Default location for PHPMyAdmin log files: Linux/Unix/macOS:/var/log/phpmyadminWindows: C:\xampp\phpMyAdmin\logs\ Log file purpose: Troubleshooting Audit Security

The WordPress database is housed in a MySQL database that stores all website data and can be accessed through your hosting provider’s dashboard, FTP, or phpMyAdmin. The database name is related to the website URL or username, and access requires the use of database credentials, including name, username, password, and hostname, which are typically stored in the "wp-config.php" file.

The default username and password for PHPMyAdmin are root and empty. For security reasons, it is recommended to change the default password. Method to change password: 1. Log in to PHPMyAdmin; 2. Select "privileges"; 3. Enter the new password and save it. When you forget your password, you can reset it by stopping the MySQL service and editing the configuration file: 1. Add the skip-grant-tables line; 2. Log in to the MySQL command line and reset the root password; 3. Refresh the permission table; 4. Delete skip-grant-tables line, restart the MySQL service.

Steps to delete a data table in phpMyAdmin: Select the database and data table; click the "Action" tab; select the "Delete" option; confirm and perform the deletion operation.

Reasons and solutions for access denied by phpMyAdmin: Authentication failed: Check whether the username and password are correct. Server configuration error: adjust firewall settings and check whether the database port is correct. Permissions issue: Granting users access to the database. Session timeout: Refresh the browser page and reconnect. phpMyAdmin configuration error: Check the configuration file and file permissions to make sure the required Apache modules are enabled. Server issue: Wait for a while and try again or contact your hosting provider.

phpMyAdmin is susceptible to multiple vulnerabilities, including: 1. SQL injection vulnerability; 2. Cross-site scripting (XSS) vulnerability; 3. Remote code execution (RCE) vulnerability; 4. Local file inclusion (LFI) vulnerability; 5. Information disclosure Vulnerability; 6. Privilege escalation vulnerability.
