I need to move a wordpress site to a new domain. I am thinking to change the database directly. I’m still waiting the DNS to see if the site is working properly. But that is what I done.
- Export database using mysqldump
mysqldump - u root -p wordpress > wordpress.sql
- Change url name in wordpress.sql
- Import database back with
mysql -u root -p wordpress < wordpress.sql