The music sync process between iTunes and your iPhone cannot combine music from multiple libraries. If you get a new PC, or if you erase your old iTunes music library, you'll need to overwrite the existing music on your phone to sync your new library. In order to retain music purchased on the iTunes store, you will also need to authorize your new PC and transfer the purchases off your phone before the sync.

Step 1

Open iTunes, open the "Store" menu and click "Authorize This Computer." Enter your Apple ID and password used on the iTunes store and click "Authorize."

Step 2

Connect your iPhone to your computer with the USB cable and wait until its icon appears in iTunes.

Step 3

Click "Transfer Purchases" on the window that pops up. If no window appears, open the "File" menu, open "Devices" and click "Transfer Purchases from," followed by the name of your iPhone. This will copy previous iTunes purchases into your new library, but will not copy any other files off your phone.

Step 4

Open your iPhone's info window by clicking the phone's name above the iTunes library (or in the sidebar, if you have the bar open).

Step 5

Open the "Music" tab and check the "Sync Music" box.

Step 6

Press "Remove and Sync" to confirm you want to erase the existing songs from the phone.

Step 7

Select either "Entire music library" or choose "Selected playlists, artists, albums, and genres" and pick specific groups to sync.

Step 8

Press "Apply" to erase the old music from your iPhone and sync your new library.