Hi!!
You must stop the server so that the directory isn't in use..
To stop the service..
->Start
->Setting
->Control Panel
->Administrative Tools
->Services
Click on services..this will show you the list of all services...locate MySQL & then select MySQL and use the right-mouse-button menu to stop it..
(Also you can do this in single go... Start->Run then enter NET STOP MYSQL )
The usual way to uninstall MySQL would be to go to Start | Settings | Control Panel | Add/Remove Programs, select MySQL Server and clients from there and click the button..remove/uninstall
If you don't see MySQL in the Add/Remove Programs... then you have to uninstall it manually..say you have installed it in C:/mysql...
first remove the service..
C:\> C:\mysql\bin\mysqld --remove
then delete the entire MySQL folder..(you must take the backup of DB's from C:/mysql/data before deleteing anything here)...
Also search for my.cnf/my.ini in & either rename or delete..
Hope this Helps!
Regards,
Umesh Shastry
http://www.blogger.com/profile/02551756983528645221