Top Nav

How-To Rebuild Your Windows Media Player 12 Library

Windows Media Player 12 Rebuilding Library

If you have an Xbox 360 or a Windows Mobile phone, then your best bet on syncing all your music and media would be Windows Media Player 12. Sadly enough you may have already encountered problems refreshing your library and keeping things tidy. But, with these simple steps you can rebuild your music library in just a few clicks.


How To Rebuild The Windows Media Player 12 Library

Step 1 – Disable The Windows Media Player Network Sharing Service

First of all make sure that Windows Media player is closed. To start, by Click the Windows Start Menu Orb and Type services.msc in the search box. Then Press Enter to open the Services window.

Opening Services

From the Services window find the Windows Media Player Network Sharing Service. To disable it,Right-Click it and Select Stop. A small dialog box may temporarily appear while the process is being stopped.

Stopping The WMP Network Sharing Service

Step 2 – Delete The Library Database File

Keep the Services window open, we’ll need it again later on to re-enable this service after we first delete a few files.

Open up Explorer and Browse your way to:

%USERPROFILE%\AppData\Local\Microsoft\Media Player.

From here delete all of the files named CurrentDatabase_***.wmdb and LocalMLS_*.wmdb. (Warning – there are several LocalMLS_*.wmdb files, make sure to delete them all!) (Note – The “*” stands for a random number, the numbers differ on each machine, so we can’t really tell exactly what the file is called. There are only a few files, though, you should find them easily).

Deleting The Music Database Files

Step 3 – Re-enable The Windows Media Player Network Sharing Service

You can now close the Explorer window and get back to the Services window. From the Services window, find the Windows Media Player Network Sharing Service again, but this time when Right-Clicking select Start. Yet again a small dialog box will temporarily appear while the process is being enabled.

start windows media player 12 service

Step 4 – Refresh Your Library

Now all you have to do is open up WMP 12 and watch your library rebuild itself. Depending on the amount of songs you have and how fast your computer is this process can take from 30 seconds to 15 minutes. For my tiny 429 track library it took less than 2 minutes, which is quick keeping in mind that ALL my tracks (yes, all of them) are tagged with album art and all other information.

Conclusion:

This trick will certainly help you whenever youare having library problems with WMP 12, but let’s hope that we can forget all about Media Player issues and other annoying problems once Service Pack 1 For Windows 7 is bought out to the public.

, , ,

37 Responses to How-To Rebuild Your Windows Media Player 12 Library

  1. Bob-O October 24, 2010 at 8:51 am #

    Thank you! I am one happy Mofo now!

    Boo Yah

  2. Moses October 29, 2010 at 12:06 pm #

    This was EXACTLY what I needed to know, thank you for the clear and concise directions! I just finished tagging ALL of my songs with album art (7200 of them) and want WMP to recognize this art instead of it’s stupid 200×200 art.

  3. kiss4luna October 30, 2010 at 8:59 am #

    this bug in WMP12 is so damn stupid
    thanks for the help

  4. NagoyaX November 27, 2010 at 11:52 pm #

    tx so much help out alot

  5. Rosie December 18, 2010 at 9:27 am #

    Thanks. Sometimes my ITunes puchases show up in WMP, sometimes they don’t. I use this trick when they don’t.

  6. Allan December 31, 2010 at 4:56 pm #

    Thank you! I had my music on my E: drive and moved everything over to my C: drive, which apparently caused WMP12 to have some sort of breakdown. WMP11 was so much easier. I hope MS can get their act together. Why fix what ain’t broke?

    • MrGroove December 31, 2010 at 11:30 pm #

      @Allan – hey I’m happy the article helped ya out. And yeah, I can’t tell you how many times my favoriate apps have been ruined after the DEV’s decided they needed an upgrade….

  7. emmanuel ojeikpo January 5, 2011 at 6:27 am #

    thanks forum,you guys are the bomb,i just got my music library back,thanks once more

    • MrGroove January 5, 2011 at 10:20 am #

      Excellent! Glad it worked out. Do you have a large library?

  8. Travis October 9, 2011 at 11:20 am #

    Another thanks on an awesome article. Much needed to get my updated music library from my external into WMP for BlackBerry Media Sync.

  9. Gary October 10, 2011 at 4:11 pm #

    Thanks Steve. I was going crazy trying to figure out how to delete and rebuild the library (until your great instructions).

  10. Lars November 9, 2011 at 1:17 am #

    Thanks man! You really made my day. This tutorial helped me solve my music library problems with the still buggy WMP12. Now my WMP reads all my albums like a charm! Good job! :)

  11. FMcKindra November 14, 2011 at 6:17 pm #

    Thank You; Thank You; Thank You! This was EXACTLY what I needed!

  12. DJ Roksor November 15, 2011 at 10:55 pm #

    This metod didn’t work for me.. deleting the music library locations folders (the entries that say which folders should be included in the library) and then adding them again did work however.

    Btw:
    1. only 429 files.. I almost feel sorry for ya.. although it must be handy to know, and be able to organize, each and every track you have.

    2. you don’t need the Windows Media Player Network Sharing Service to build a library because I’ve it disabled.

    3. building the library took me clearly more then 20 minutes – my pc isn’t even slow or anything and don’t have all the file tags filled in or don’t even use the album art – after which I decided to do something else.

  13. Maureen C January 2, 2012 at 9:49 pm #

    Hi Steve,

    I followed your instructions to rebuild WMP but I’m still not seeing some albums that I see in WMP but not my music library. What else can I do to get all my albums in my music library?

  14. {carton machinery } January 8, 2012 at 8:07 am #

    You’re in reality a excellent webmaster. The web site loading pace is incredible. It sort of feels that you’re doing any unique trick. In addition, The contents are masterwork. you’ve done a magnificent job on this subject!

  15. Jennifer Bennett January 9, 2012 at 11:56 am #

    Oh, my gosh… Can’t thank you enough! My Windows Media Player was showing files that had been deleted and I was ready to throw my computer out the window!!

  16. Charles Young January 22, 2012 at 12:50 pm #

    Thank you for these instructions, which I have used a couple of times now.

    This time around, I have had an odd glitch. As well as rebuilding WMP, I decided to clear out my MP3 player, a Samsung YP-P3, using the player’s own Format command.

    Afterwards WMP rebuilds its own library fine, but when I use it to Sync to the Samsung player, the music syncs fine, but most tracks show the album and artist as unknown, which makes it kind of hard to choose the music I want.

    Any ideas?

    Charles

  17. Rlundo January 28, 2012 at 2:11 pm #

    Wow! Did this ever solve my problems. Thanks, Thanks, Thanks.
    I’ve been struggling with this hangup partially caused by having Itunes installed as well as WMP. Now I’m educated enough to prevent this from reocurring.

  18. Paul February 3, 2012 at 3:12 pm #

    Thanks. If only MS was as helpful. Why do they change WMP all the time? I swear Win 7 and all the new MS programs, are exactly the same as XP and its era of Programs, just with all the menus and buttons hidden. So annoying. I know MS Programs inside and out, yet I’m stuck staring in confusion at the new Office, WMP, ect.
    Rant over.
    Thanks again, very helpful.

  19. Steve March 12, 2012 at 6:45 pm #

    Thanks for this clear explanation. Your fix worked perfectly, clearing up my deleted files and finding the new ones.

  20. Paul March 16, 2012 at 2:53 pm #

    Oh my god – would only let me delete the MLS files but now my massive 400gb music collection is reappearing – thanks!!!!

  21. Ben April 16, 2012 at 12:37 pm #

    It won’t let me delete the currentdatabase_372.wmdb file. It says it’s in use. I’ve tried ending processes, but no go.

  22. Casey June 14, 2012 at 4:12 pm #

    A batch file to automate the process: Open Notepad and paste the following:

    @ECHO OFF
    ECHO Ready to rebuild Media Database. Are you sure you want to continue?
    ECHO Close to cancel.
    PAUSE
    NET STOP “Windows Media Player Network Sharing Service”
    TIMEOUT 2
    DEL “%USERPROFILE%\AppData\Local\Microsoft\Media Player\*.wmdb”
    TIMEOUT 2
    ECHO Rebuilding Media Database.
    ECHO Please wait until Windows Media Player has finished before continuing.
    START “” /D “C:\Program Files\Windows Media Player\” wmplayer.exe
    PAUSE
    SHUTDOWN /R
    EXIT

    The SHUTDOWN /R command reboots the computer, necessary if you’re using WMP to stream to a networked device (i.e. Xbox 360,) feel free to remove it if that’s not your case. Save as either a .bat or .cmd. Run the batch file any time you need to rebuild your database.

  23. Bighollander June 24, 2012 at 10:03 am #

    to be quite honest, I am very computer illiterate. these directions worked perfectly the first time. they were easy to follow , which is very necessay for me. thank you very much for taking the time to answer my question so quickly

    • Steve Krause June 24, 2012 at 10:26 am #

      Awesome! I’m glad it help you out. Welcome to GroovyPost!

  24. Jos Trumpet Humphrey July 7, 2012 at 3:00 pm #

    Thanks for the post, i needed it !

    Josh

  25. alicia September 27, 2012 at 1:01 pm #

    thank you very much for this.. it helped a lot keep up the great work.

  26. mariodew December 3, 2012 at 5:18 am #

    Doesn’t work for me, not for movie files, but works for music files and images, how comes?

  27. Dave Hill January 17, 2013 at 5:01 pm #

    Everything worked except I couldn’t delete the “currentdatabase_372″. Reading through the comments below, looks like you don’t have a suggestion. Thanks anyway.

  28. Daniel Bell February 19, 2013 at 12:22 pm #

    Legend, thanks.

  29. Mark April 2, 2013 at 5:53 pm #

    Could not “browse” my way to %USERNAME%\ because it does not exist on my machine.

    Had you written (as another site had) “\Users\YOUR USERNAME\AppData\Local\Microsoft\Media Player” it would have helped more but even here my name is not in place of “user”
    Why not just take the mystery out of it?
    C:\…User\My Documents\App Data\ect….

    • Rick April 8, 2013 at 4:01 am #

      It did work for me fortunately. It seems %USERNAME% was not mentioned in the article when I read it today, but %USERPROFILE% was, which in my case pointed to c:\users\. Big thanks to Steve on the help for this issue. First time reader and will continue to visit from here on out. Keep up the good work and thanks!

  30. ELLIOTT MILLER April 23, 2013 at 2:33 pm #

    WORKED LIKE A CHARM. THANKS SO MUCH

  31. Michael June 30, 2013 at 8:18 am #

    Unfortunately, your suggestion has not helped. My WMP12 has two issues – perhaps related. First, a year ago I added a set of folders from an external drive to the set of library locations in the organize->manage libraries->music, but I don’t want those locations used anymore to build the database, but no matter what I do when I restart WMP12 they are back again. Of course, I stopped all sharing services and then I removed them using the remove button, but they are always there when I restart WMP12. I went to the Media Player folder in my user account and deleted all wmdb files; the folders came back. I deleted the entire Media Player Folder – same result. I went into the control panel and unchecked Media Player and Media Services and restarted then re-checked WMP and then restarted presumably to load a whole new WMP; same result. The second problem is that whereas I can drag individual music files into WMP and it will add the file to the library, when I drag and drop a folder, whereas the little popup icon says it is adding the folder to the library like it should, no music from that folder appears to be added. So I go into organize->manage libraries->music and just add the folder I want there and the folder appears in the list, but nothing else happens. No music actually appears to add. Then of course, when I restart WMP, the folder I added isn’t even in the organize->manage libraries->music list and the old folders are back. Help Help.

  32. Olivia Arthur July 11, 2013 at 1:26 am #

    Hi,

    This was really helpful. My problem now is that when I restart my computer, WMP is empty and has to add all my music all over again. It has happened every time I restarted. Is this a related problem, or something different?

  33. ismail August 26, 2013 at 11:04 pm #

    sir i have some problem in windows media player .
    which i play some music or video then that save in media player library wich you goto the start menu right on the wendows media player then that will be show for you .
    how can i mack that dont came there agian.
    pleas help me as some as posible .

Leave a Reply

 

navid: #navigation
×

Subscribe to our free newsletter and have our tips delivered to your inbox. Free Signup