只需使用此处提供的searchand replace文件:https://github.com/jmandala/searchreplacedb2
(1) Put this \'searchandreplace.php\' file in you wordpress root
(2) Then run this www.youdomain.com/searchreplacedb2.php
(3) Then add database details in fist step .In second step select all tables and continue and in third step put your old path to \'Search for (case sensitive string):\' and in \'Replace with:\' add new path and run it will change all paths on database.