[英]Can't export database from phpMyadmin on Xampp
I tried to export a WordPress database from Xampp's phpMyAdmin, but suddenly this error shows up:我试图从 Xampp 的 phpMyAdmin 导出一个 WordPress 数据库,但突然出现此错误:
Fatal error: Uncaught TypeError: Argument 5 passed to PhpMyAdmin\Export::getFilenameAndMimetype() must be of the type string, null given, called in C:\xampp\phpMyAdmin\export.php on line 380 and defined in C:\xampp\phpMyAdmin\libraries\classes\Export.php:270 Stack trace: #0 C:\xampp\phpMyAdmin\export.php(380): PhpMyAdmin\Export->getFilenameAndMimetype('database', '', Object(PhpMyAdmin\Plugins\Export\ExportSql), '', NULL) #1 {main} thrown in C:\xampp\phpMyAdmin\libraries\classes\Export.php on line 270 Fatal error: Uncaught TypeError: Argument 5 passed to PhpMyAdmin\Export::getFilenameAndMimetype() must be of the type string, null given, called in C:\xampp\phpMyAdmin\export.php on line 380 并在 C 中定义\phpMyAdmin\libraries\classes\Export.php:270 堆栈跟踪:#0 C:\xampp\phpMyAdmin\export.php(380): PhpMyAdmin\Export->getFilenameAndMimetype('database', '', Object(PhpMyAdmin\Plugins \Export\ExportSql), '', NULL) #1 {main} throw in C:\xampp\phpMyAdmin\libraries\classes\Export.php on line 270
I tried cleaning the cache from the dev tools of the browser, but the issue hasn't been solved.我尝试从浏览器的开发工具中清理缓存,但问题仍未解决。 Besides, as soon as I click on "Export", I see a message about one form having more than 1000 lines.
此外,只要我点击“导出”,我就会看到一条消息,说一个表格有超过 1000 行。
I successfully exported the database with the command line, following another solution found here at StackOverflow, but I need to deselect a couple of tables, which is why I'd rather use the "usual" way.按照在 StackOverflow 上找到的另一个解决方案,我成功地使用命令行导出了数据库,但我需要取消选择几个表,这就是为什么我宁愿使用“通常”的方式。
Thank you very much in advance!非常感谢您!
This is what, in my case, solved the issue.就我而言,这就是解决问题的方法。 Open the Xampp's php.ini file and paste the following at the bottom:
打开 Xampp 的 php.ini 文件并在底部粘贴以下内容:
max_input_vars = 5000
suhosin.request.max_vars = 5000
suhosin.post.max_vars = 5000
Save the file and restart Apache from Xampp.保存文件并从 Xampp 重新启动 Apache。
This is what worked for me when I was exporting a table,这就是我导出表格时对我有用的方法,
Then go on download your table as a zipped file.然后 go 将您的表格下载为压缩文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.