[wp-hackers] Why hard-code the base URL (and directory)?
Braydon
ronin at braydon.com
Mon Mar 12 10:00:32 UTC 2012
Hydrostarr,
To migrate a site from one domain to another, the best way is to search
and replace the domain and take care of it all at once, a script could
easily automate this process:
mysqldump -u youruser -p yourdatabase > database-2012-3-12.sql
sed -i 's/olddomain\.com/newdomain\.com/g' database-2012-3-12.sql
mysql -u youruser -p yourdatabase < database-2012-3-12.sql
-Braydon
More information about the wp-hackers
mailing list