简体   繁体   English

从mysql转储恢复wordpress数据库

[英]restoring wordpress database from mysql dump

Is there way to correctly restore a Wordpress database from an older mysqldumb file (.sql)? 有没有办法从较旧的mysqldumb文件(.sql)正确还原Wordpress数据库? I can't remember the wordpress version, but it wasn't lower than 3.4.2. 我不记得wordpress版本,但它不低于3.4.2。

At the moment whenever I try to restore like this: 在我尝试像这样恢复时的那一刻:

mysql -u blogadmin -p new_db < old_db_dump.sql

I get no error (at least no error is output) and then I get a white first page on my blog. 我没有错误(至少没有输出错误)然后我在我的博客上得到一个白色的第一页。

White first page usually means that there is a php error during rendering of this page. 白色第一页通常表示在呈现此页面时出现php错误。 Try to enable php error_reporting (or error logging) and see these error messages. 尝试启用php error_reporting(或错误日志记录)并查看这些错误消息。 Depending on error messages you can try to fix wp scripts version or apply updates to your db. 根据错误消息,您可以尝试修复wp脚本版本或将更新应用于数据库。

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

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