简体   繁体   English

phpmyadmin 正在导出文本文件而不是 sql 文件

[英]phpmyadmin is exporting text file instead of sql file

I'm using PHP version: 7.3.9 with MariaDB 10.4.6 and phpmyadmin through Xampp.我正在使用Z2FEC392304A5C23AC138DA222847F9B7CZ版本:7.3.9与Z7F973E2080808B1CE6DF3D4BE1765396Z 10.4.6和Z30B560B5603D4646526CE748F1748F550AZ19B174BBY19B65BBBY19B65B6AZ19B6519B65B65B65B65B65B65B65B65B65B65EN.BB119B65EN.BAR

I'm trying to export a large drupal database into an sql file from the export tab on phpmyadmin.我正在尝试从 phpmyadmin 上的导出选项卡将大型 drupal 数据库导出到 sql 文件中。 But it is exporting as a.txt file.但它导出为 .txt 文件。

I am getting an error upon loading the export tab in phpmyadmin that says:在 phpmyadmin 中加载导出选项卡时出现错误:

Warning: a form on this page has more than 1000 fields.警告:此页面上的表单包含 1000 多个字段。 On submission, some of the fields might be ignored, due to PHP's max_input_vars configuration.在提交时,由于 PHP 的 max_input_vars 配置,某些字段可能会被忽略。

I have tried increasing the max_input_vars to 5000 (anything above that throws an 'access denied, invalid settings' error).我尝试将 max_input_vars 增加到 5000(以上任何会引发“访问被拒绝,设置无效”错误)。

I have tried to export from MySQL Workbench and it works if you export just the tables but I need one file.我尝试从 MySQL Workbench 导出,如果您只导出表格,但我需要一个文件,它就可以工作。

I have tried mysqldump which doesn't seem to work on MariaDB 10.4.6.我试过 mysqldump,它似乎不适用于 MariaDB 10.4.6。

I am at a loss as to how to export my database as one sql file.我不知道如何将我的数据库导出为一个 sql 文件。 Any suggestions?有什么建议么?

If anyone else comes across this error.如果其他人遇到此错误。 I figured it out with MySQL Workbench.我用 MySQL 工作台解决了这个问题。 I would get an error that said mysqldump.exe was version 8 compared to version 10. To fix it I referred to this post: mysqlworkbench giving version error on exporting database我会得到一个错误,说 mysqldump.exe 是版本 8 与版本 10 相比。要修复它,我参考了这篇文章: mysqlworkbench 在导出数据库时给出版本错误

No solution was found for phpmyadmin export though.虽然没有找到 phpmyadmin 导出的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM