Search and replace
From MoodleDocs
Admins can search and replace text e.g. URLs in their Moodle database using the search and replace tool at http://yourmoodlesite.org/admin/replace.php (replacing yourmoodlesite.org with the address of your Moodle site). This is useful when a Moodle site is moved from one server to another.
Note: A database backup is highly recommended before running the search and replace ;-)