I suggest leaving it as localhost because the database is already setup with paths, etc. If you want to change it to something else after installing try:
UPDATE settings SET hostname='newhost' WHERE hostname='localhost';

You can also use webmin to browse the DB and make changes.

cesman