Just a minor addition: if you're running database and webserver on the same host (which is probably the most common scenario), and use the same database name and credentials, you don't even need to update config.php, so you can omit the 3rd step in that scenario.