导出moodle数据库的致命错误 [英] Fatal Error in exporting the moodle database
本文介绍了导出moodle数据库的致命错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图从 phpmyadmin 导出数据库,但出现此错误
I was trying to export the database from phpmyadmin and this error is showing up
"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"
我试图从浏览器中删除 phpmyadmin 的 cookie,但这没有帮助.这仅发生在moodle数据库中,其他数据库导出正常.那么我该如何解决这个问题.
And i tried to remove the cookies of phpmyadmin from the browser but this is not helping. This is only happening in moodle database other databases exporting fine. So how can i resolve this.
推荐答案
您有 2 种可能的方法来做到这一点.
You have 2 possible ways to do that.
1) 使用命令行
- 打开命令提示符:开始 -> 运行 -> cmd
- cd c:\xampp\mysql\bin
在终端输入以下命令
- Open up a command prompt: Start -> Run -> cmd
- cd c:\xampp\mysql\bin
Enter the following command in terminal
mysqldump -u root -p databasename > c:\xampp\newdbname-backup.sql
或者
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
提示时粘贴密码
Paste the password when prompted
2) 或者使用 phpmyadmin(通常与 XAMP 一起安装)或类似的东西并从浏览器中导出
我建议您选择第一个选项.
这篇关于导出moodle数据库的致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文