重装MongoDB报错

重装MongoDB报错
Service ‘MongoDB Server’ (MongoDB) failed to start. Verify that you have sufficient privileges to start system services
想着睡觉前来看看我的数据库——MongoDB
没想到它来不起了。
重装MongoDB报错
之前描述里写的是系统找不到指定文件,想着肯定是什么时候手欠,动了不该动的。就打算重新安装,然后就报错
重装MongoDB报错
看了很多博客,试了很多方法,最后有效的是以管理员身份运行cmd,然后执行sc delete MongoDB
重装MongoDB报错
然后再次安装,安装成功!
传送门:mongodb安装详述
也可以成功连接啦!
重装MongoDB报错