这似乎对我很有用(不过,老实说,我并没有太重视我的本地数据库,所以如果我丢失了它……)
From "online" version
Go to phpMyAdmin
Export SQL (Structure and data)
然后:
On "local" computer version
Write down the name of the database
Drop the database.
Open the SQL file you exported.
Do a find and replace:
www.the-online-site-name.com
replace with:
localhost/local-site-name
Choose the wordpress database in phpMyAdmin.
Import the SQL