Hacking Windows 7 Media Center

Fix a Corrupt Windows Media Player Database

by @ 7:00 am on February 19th, 2009 in programs, windows 7 with 59 Comments

Sometimes a Windows Media Player database can become corrupt for any number of reasons. This will obviously also effect Media Center since it runs off the same database for videos and music. Luckily fixing the problem isn’t too difficult.

WMP Library Delete

First thing that needs to be done is to stop the Windows Media Player Network Sharing Service. This service controls media sharing over your network but it also locks the database file so it can’t be deleted by the user. To stop this service enter task manager (crtl+alt+del) and select the services tab. Find “WMPNetworkSvc” in the list then right-click and select “Stop Service”. If you receive a denied error you can also stop the service from the “Services” button at the bottom.

WMP Network Sharing Service

Once the service has been stopped open Windows Explorer and go to “\Users\YOUR USERNAME\AppData\Local\Microsoft\Media Player”. It may be hidden so you won’t be able to see it but you can type it into the address bar to access the location. Alternatively, you can also enable hidden folders to be shown on your pc by going to Control Panel > Folder Options and enabling showing hidden folders.

Show Hidden Folders

Once you’re in the folder, locate the “CurrentDatabase_371.wmdb” file and delete it. If you receive a permission denied error the “WMPNetworksvc” may not have been stopped or you may need to restart your machine and start again.

Once the wmdb file has been deleted, restart Windows Media Player and the database should begin to repopulate. It may take some time to complete depending on the number of files. That should be all there is to fixing your corrupt Windows Media Player database.

Get more guides and tips by Following on Twitter or subscribe to the RSS Feed!

59 Comments


Anonymous
Comment #132 from Anonymous [Reply]

Thanks, this worked perfectly!

Comment left March 17, 2009 at 10:47 am Permanent Link

Gareth
Comment #483 from Gareth [Reply]

Great but can someone tell me how i can then set all my music as “Found” so i dont have to reseach all the albums it cant find.

Comment left April 29, 2009 at 10:24 am Permanent Link

battles
Comment #3194 from battles [Reply]

Michael,

I originally ripped my cd collection as .wav files (reason being is that there is a distinguishable sonic difference on using high-end audiophile equipment when playing back WAV files vs the lossless formats — many will deny this but it’s true). In doing so, I individually tagged each one of my ripped CDs using WMP’s manual tagging system. This was a very labor intensive and time consuming process. Unfortunately, I have found that transfering my manually tagged ripped cd collection from VISTA to Win7, will require that I repeat this labor intensive process (vs. if the files had been saved into a more taggable format such as wma lossless, flac, etc.). Since my rips are saved on a server and not being physically moved to a new computer, all I really need to do is find some way to transfer the wmp 11 data base file from the vista client computer to the Win7 client computer. Do you happen to know how this might be accomplished and based on hands on experience if it will work?

Thanks,

Battles

Comment left September 11, 2009 at 10:26 am Permanent Link

Frustated Overseas
Comment #6107 from Frustated Overseas [Reply]

I’ve tried this along one with other things found on on different websites with no positive results. Any other suggestions? It’s hard to get by out here without my music. :(

Comment left December 29, 2009 at 12:24 pm Permanent Link

Fox
Comment #6751 from Fox [Reply]

Hello i followed the steps and the error that my media player library was corrupt stopped popping up, however my media library did not re populate and when i try to manually add files into the library nothing happens does anyone know how i can fix this?

Comment left January 18, 2010 at 6:30 pm Permanent Link

Shahid
Comment #6956 from Shahid [Reply]

After performing the last step, when the windows media player is restarted, please wait for a while till the songs get re populate. You might also see an error message that this program is not responding as the status. But eventually the files will be added back in the library. This worked for me!!! THNKS!!!

Comment left January 23, 2010 at 12:32 am Permanent Link

Gail
Comment #7192 from Gail [Reply]

Help. I followed your directions and everything seemed to work fine except the library name appeared to be a file currentdatabase-372. The library repopulated but it didn’t appear to delete the old content. Now I have two copies of most everything. What’s the problem? Help!

Comment left January 29, 2010 at 2:20 am Permanent Link

Gail
Comment #7198 from Gail [Reply]

p.s. I found another post on another website. It said to delete all of the files, but not the folders within the Media Player folder. I did this and the old library with all of the dups was deleted and a new one was rebuilt.

Comment left January 29, 2010 at 4:22 am Permanent Link
Comment #7605 from JimZeller [Reply]

I have the TV setup cannot continue error
windows tells me to restart windows media center and retire tv set up……….
nothing works so far just wondering if I was the only one that just wanted to throw windows 7 out the window????????
for me vista was much better I just never had any problems the media center and that is the only thing this computer does.
I have a hp quad

Comment left February 12, 2010 at 12:43 am Permanent Link
Comment #8764 from BookwormDragon [Reply]

I tried this as described above, but it didn’t work at first. Finally, I deleted everything in the \Users\YOUR USERNAME\AppData\Local\Microsoft\Media Player folder, and that finally did the trick. Got rid of “ghost” tracks, stuck playlists, and everything. It found all my proper media and playlists right away. Thanks!

Comment left March 25, 2010 at 2:13 pm Permanent Link

Ellen
Comment #8862 from Ellen [Reply]

This fix did not work for me… but helped to fix my problem. I had deleted some albums and they were still in the library as “ghosts” (only way I can describe it). I could do nothing with them but as I followed the instructions for this fix I found that they were stored in the same location that this fix takes you to. I viewed them as icons and they came up as music so I deleted them and my not so friendly ghosts disappeared! Thank you very much.

Comment left March 28, 2010 at 6:22 pm Permanent Link

Vishu
Comment #12172 from Vishu [Reply]

thanks a lot!..I was facing the corrupt library problem from quite some time now, this resolved the issue flawlessly!

Comment left June 3, 2010 at 1:36 pm Permanent Link

Stan
Comment #12915 from Stan [Reply]

Thank you for these instructions – it worked beautifully – Cheers!!

Comment left June 15, 2010 at 8:14 pm Permanent Link

Winxchot
Comment #12979 from Winxchot [Reply]

the problem i have with my w media player is that, few of the video files stopped playing in wmp. i got a error s windows media player encountered a problem. while playing, and in the the troubleshoot it detected as library corrupted, i followed all these steps correctly, but still i am getting same error, all these video files were working before in wmp, but now almost all the video players are denying to play it, im hopeless, thinking of reinstalling the OS. or if anyone has a solution please mail it to me, Thanks

Comment left June 18, 2010 at 1:42 am Permanent Link

Michelle
Comment #13168 from Michelle [Reply]

Well, the database is back!!!!!!!!!!!!!!!!

There is only one problem left it will still not let me sync to my windows phone or to my mp3 player, is there a fix for that? You click on the “sync” tab, plug in the mp3 and wmp says “connect a device” and that is all it ever says.

Comment left June 26, 2010 at 9:02 am Permanent Link
Comment #18177 from John Glazier [Reply]

Very helpful advice, a lot of my songs don’t even play, they come up with a error saying “Windows Media Player encountered a problem” and I’m not too sure what is wrong with some of the files as most of my music is working apart from a few. I’ve looked at the folders of the music that comes up with an error and some songs in the folder play and not others. Does anyone know what the problem could be?

Comment left September 24, 2010 at 3:55 am Permanent Link

Dan Michaeli
Comment #18584 from Dan Michaeli [Reply]

Hi,

As one of the previous people stated I have the same problem with migrating the WMP DB from an old PC to a new. I have spent a number of hours to manually tag all my WAV ripped music in WMP. The files are stored on a NAS. Unfortunately, I encountered a network glitch for a few minutes and while having this drop out, I pressed the !Apply media changes” button in WMP. WMP promptly removed all my information and after the network was up again and the DB got re-populated, all meta data is gone, cover art song info, the works!! I get depressed. Can anyone provide assistance? Note that I have WAV files, so no tags are included.
How does Microsoft suggest that migration from one pc to a newer model should be carried out when having WAV files?
There’s got to be a solution!!

Regards,
Dan (Sweden)

Comment left September 28, 2010 at 5:35 am Permanent Link

ryansheet
Comment #20988 from ryansheet [Reply]

thank you…this solved my problem

Comment left October 15, 2010 at 5:34 am Permanent Link

WMPUser
Comment #21116 from WMPUser [Reply]

Thank you soo Much!…it works perfectly.

Comment left October 17, 2010 at 10:00 am Permanent Link

rico001
Comment #26376 from rico001 [Reply]

I did that but deleted all of the db files in the media index folder and went in to WMP options and changed Library Settings and deleted the files in Sync Playlists – en-US

Comment left December 18, 2010 at 4:19 pm Permanent Link

sean
Comment #32812 from sean [Reply]

We shouldnt have to do this, PERIOD.

Comment left February 13, 2011 at 1:10 pm Permanent Link

Finvoyager76
Comment #33970 from Finvoyager76 [Reply]

This worked perfectly with some of my songs, which were all tagged as 0 bytes files…

Comment left February 22, 2011 at 7:12 pm Permanent Link

Raynette
Comment #36348 from Raynette [Reply]

Thank you so much!!! All of my Media Player problems are solved and it is running quite efficiently!!

Comment left March 20, 2011 at 9:38 pm Permanent Link

Jeff
Comment #40473 from Jeff [Reply]

Media player told me this morning that it was deleting my corrupt database and it would make a new one next time I started it. It lied. Thanks to the above method I now have a working media player again.
My file was currentdatabase360 not 371 and I also found and deleted corruptdatabase360.
Thanks to the original poster

Comment left May 1, 2011 at 11:47 am Permanent Link

Anonymous
Comment #41083 from Anonymous [Reply]

Win 7 or possibly Media Player 11 has corrupted all music files on an external usb hard drive. the files look good but will not play in any player. media player replies that the mp3 extension is unknown. hovering the cursor over file reveals the size which seems to be original. the title and artist is not identified and the length of the song is indicated to be half or less of the actual running time. i can convert the file with Switch but the playback is not music just garbage.

Comment left May 8, 2011 at 2:50 pm Permanent Link

Fed Up
Comment #46593 from Fed Up [Reply]

didn’t work at all – tried 3 times

Comment left August 13, 2011 at 2:41 am Permanent Link

RoadKill
Comment #47207 from RoadKill [Reply]

You’re a friggin’ genuis! Thanks for the help…

Comment left September 9, 2011 at 3:49 pm Permanent Link

king
Comment #50221 from king [Reply]

I click on show all hidden files and apl=ply but nothing was open and I could not locate current database.
Thanks

Comment left November 2, 2011 at 10:33 am Permanent Link

pt9711
Comment #50358 from pt9711 [Reply]

Just wanted to say thanks your solution worked perfectly

Comment left November 4, 2011 at 4:37 pm Permanent Link
Comment #50537 from Bobby Glazing [Reply]

I have a problem with the Windows Media Player 11 in Windows Vista. Maybe you can help me.

I have added some songs that they haven’t got an album information associated, but when I search and select the right album, click on the top of the album, it doesn’t update the file with the album information. It’s weird because I used to do that and it worked fine, now I can’t.

I think maybe the Windows Media Player is corrupt.

Any suggestions are welcome. Thanks.
Harrogate Glaziers

Comment left November 8, 2011 at 7:47 am Permanent Link

Sage
Comment #51281 from Sage [Reply]

THANK YOU SOOOOOOOOOOO MUCH!!!!!!!!

Comment left November 14, 2011 at 9:01 am Permanent Link
Comment #51364 from R O'NEILL [Reply]

WHILST MY WMC IS WORKING MY PROBLEM IS MY TV CHANNELS ARE NOT IN NUMERICAL ORDER I HAVE BEEN STRUGLING WITH THIS PROBLEM FOR ABOUT 2 MONTHS I HAVE TRIED YOUR ITEM “CLEARING GUIDE DATA AND TUNER SETUP FROM WINDOWS 7 MEDIA CENTRE” I CANNOT SEEM TO FIND WINDOWS EXPLORER AS IT IS ON YOUR WEB PAGE R O’NEILL

Comment left November 15, 2011 at 10:21 am Permanent Link

kook
Comment #52176 from kook [Reply]

I am SO appreciative of blokes like you that give your time to helping folk like myself that are not computer savvy, you have helped me no end, now I can enjoy my music again
Kindest regards….Kook

Comment left November 25, 2011 at 4:06 am Permanent Link

Kwaku
Comment #53844 from Kwaku [Reply]

Worked for me. Thank God for the internet…and genius’.

Comment left December 10, 2011 at 12:02 am Permanent Link

Monica
Comment #54749 from Monica [Reply]

All of a sudden, my tv tuner in my pc will not change channels. I’ve been through all setup again and again but it changes nothing. Called Dell support, who wants to charge me $129 for a one-time “fix”. There’s got to be something I can do. They said some of the files have become corrupt. Any way to fix operating system (windows 7) corrupt files so that my tv tuner changes channels again>

Comment left December 18, 2011 at 3:25 pm Permanent Link

Anonymous
Comment #55298 from Anonymous [Reply]

This worked a treat. Had to reboot few times and stop windows network sharing twice but it worked like a charm. By the by, File I think has been updated to 372 not 371 in later editions.

Comment left December 23, 2011 at 7:37 pm Permanent Link

Anonymous
Comment #55867 from Anonymous [Reply]

works perfect now, thanks for the help.

Comment left December 29, 2011 at 12:29 am Permanent Link

Anonymous
Comment #59945 from Anonymous [Reply]

I tried this and it worked, but when I close media player, all the music disappears again and I have to do it all over again. Suggestions?

Comment left January 23, 2012 at 11:42 am Permanent Link

SABRINA
Comment #60505 from SABRINA [Reply]

It didnt work nothing seems to be working. I click on it and it flashes and goes away. did troubleshooter and it said it was corrupt and after trying this still nothing…… IDK what to do next

Comment left January 27, 2012 at 6:02 pm Permanent Link

Larry
Comment #60520 from Larry [Reply]

file was updated to 372 (Win 7 Professional). Solution worked great. Database corruption occurred (most likely) because of a unexpected reboot. WMP was paused – my user id was switched out (so another user could login and run something), and the machine was unexpected rebooted. I’m not sure if WMP was forced to shutdown by the kernel or if the machine was running and power was suddenly removed.

Comment left January 28, 2012 at 2:27 am Permanent Link

AMY
Comment #60608 from AMY [Reply]

Worked perfectly! Thank you!

Comment left January 28, 2012 at 7:36 pm Permanent Link
Comment #64532 from Donovan [Reply]

Thank you very much for helping me with my Windows Media Player! I was about to blow a fuse, then this really helped me out! Never had recieved better help!

Comment left March 4, 2012 at 12:01 pm Permanent Link

Anonymous
Comment #70550 from Anonymous [Reply]

http://support.microsoft.com/mats/windows_media_player_diagnostic/

Comment left April 23, 2012 at 11:37 am Permanent Link

Alkaponek
Comment #70551 from Alkaponek [Reply]

Fix Windows Media Player – Automatically repair Windows Media Player problems
http://support.microsoft.com/mats/windows_media_player_diagnostic/

Comment left April 23, 2012 at 11:39 am Permanent Link

LOLLLLLLLLLL
Comment #70790 from LOLLLLLLLLLL [Reply]

It worked thanks so much :) LOLLLLLLLLL XD

Comment left April 25, 2012 at 8:08 am Permanent Link

Anonymous
Comment #71613 from Anonymous [Reply]

Thanks, worked right first time, better than the windows help!!

Comment left May 2, 2012 at 3:03 pm Permanent Link

111222
Comment #72928 from 111222 [Reply]

I tried it and it didn’t work… What now?

Comment left May 22, 2012 at 10:49 pm Permanent Link

Anonymous
Comment #73014 from Anonymous [Reply]

Sweet – Thanks a bunch for helping me remove this irritation. But why the F*** do Microsoft make things so secret/awkward/inaccessible?

Comment left May 23, 2012 at 2:05 pm Permanent Link

TH
Comment #79090 from TH [Reply]

Perfect, thanks!!

Comment left August 18, 2012 at 2:18 pm Permanent Link

Anonymous
Comment #84557 from Anonymous [Reply]

Sir, you are a GENIUS everything went fantastic.
I can now use Media center properly. Thank you again

Comment left October 5, 2012 at 5:18 pm Permanent Link

shakeer
Comment #86343 from shakeer [Reply]

my windows media player working 15 minute and after close what is the priblem for my wm player ?

Comment left October 23, 2012 at 11:52 am Permanent Link

mia
Comment #98500 from mia [Reply]

How do I un corrupt windows 8 media library?

Comment left January 10, 2013 at 5:29 pm Permanent Link

HAPYWIFE
Comment #106496 from HAPYWIFE [Reply]

I HAD PICS IN MUSIC FOLDERS AND COULDN’T DELETE THEM OR ANY MUSIC. IF I TRIED THEY CAME RIGHT BACK. WMP WAS CORRUPT. I DID THIS SUGGESTION AND IT WORKED GREAT. THANKS SO MUCH NOW I HAVE EVERYTHING BACK AND WHERE IT BELONGS.

Comment left February 25, 2013 at 8:38 am Permanent Link
Comment #120081 from Graveyard [Reply]

I had to go back to task mngr and restart the service before it would work… Thnks

Comment left April 29, 2013 at 5:07 pm Permanent Link

raj
Comment #132065 from raj [Reply]

due to the corrupt wmp, some of the games were not working properly.thank u so much for your instructions that worked perfectly.thank you a lot.

Comment left June 21, 2013 at 3:22 pm Permanent Link

Zachary Peterson
Comment #133457 from Zachary Peterson [Reply]

This worked PERFECTLY! :D
Thank you so much!

Comment left June 27, 2013 at 6:13 am Permanent Link

John
Comment #136917 from John [Reply]

Worked Perfect….the media file for deletion may have a different end number…mine did…

Comment left July 13, 2013 at 2:47 pm Permanent Link

Anonymous
Comment #147794 from Anonymous [Reply]

S**t! My library is a mixture of .wav and mp3. The mp3s worked fine, but none of the ID Tag info in the .wav files were loaded back. Now I have over 2000 tracks with no artist of album info attached to them at all.

Don’t try this at home.

Comment left July 29, 2013 at 6:21 pm Permanent Link

Marilou
Comment #404827 from Marilou [Reply]

Thank you, I have tried this and it worked, but it only repopulated non-mp3 music. None of my mp3 tracks (ie most of my music) appear in the library! (I deleted the database as it appears that my dbase was corrupted, in that it wasn’t updating my new music).
If anyone can help, I’d be most grateful. Many thanks.

Comment left January 24, 2014 at 10:28 am Permanent Link

Leave A Comment

Post Anonymously, Fill in your details or Use one of the Social Networks below to login and post a comment!