Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 伺服器技術 >> 關於伺服器

解決 phpMyAdmin 匯出報錯「Missing parameter: what / export_type」

編輯:關於伺服器

使用 phpMyAdmin 匯出資料庫時,點擊「匯出」後出現白頁或請求失敗,重新整理後報錯:

export.php: Missing parameter: what (FAQ 2.8)
export.php: Missing parameter: export_type (FAQ 2.8)

核心原因

POST 請求資料量超過 PHP 設定的 post_max_size 限制,導致參數截斷遺失。

解決方法

方法一:調整 php.ini(推薦)

; 將 post_max_size 由 8M 增加至 20M 或更大
post_max_size = 20M

; 同步調大 upload_max_filesize 與 memory_limit
upload_max_filesize = 20M
memory_limit = 128M

修改後重啟 Web 伺服器生效。

方法二:程式碼臨時調整(僅限當前腳本)

ini_set('memory_limit', '180M');

方法三:Plesk 環境專用修復(針對舊版 session.inc.php Bug)

cd /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries
mv session.inc.php session.inc.php-old
wget https://download1.swsoft.com/Plesk/Autoupdate/Windows/8.1.1.2/120220/session.inc.php
/etc/init.d/psa restart

建議:優先採用方法一從根本解決;大量資料匯出時同步調大 max_execution_time 避免超時。

Copyright © Windows教程網 All Rights Reserved