简体   繁体   中英

restoring wordpress database from mysql dump

Is there way to correctly restore a Wordpress database from an older mysqldumb file (.sql)? I can't remember the wordpress version, but it wasn't lower than 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. Try to enable php error_reporting (or error logging) and see these error messages. Depending on error messages you can try to fix wp scripts version or apply updates to your db.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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