nosql - mongodb安装的奇葩问题,默认没有admin表是什么鬼???
PHP中文网
PHP中文网 2017-05-02 09:25:33
0
3
590

有能答上来的大手请来使劲骂我傻逼,如果只是让我百度教程的请闪远点,没空和看热闹的人闲聊,请看我上一贴问题地址先/q/10...,这个是mongodb3.4安装完成就这个问题,默认不是test数据库,并且安装了mongodb可视化管理软件无法操作mongodb数据库,(注:安装一切按照教程来的,来来回回已经弄了不少于30次,确保没有失误的地方)

重点来了,这次我下载的是mongodb3.0的安装包,结果有新的情况,和上次3.4又不一样,请看图

这次3.0版本默认确实是有了test数据库。而且在robomongo这样的可视化工具下可以创建数据库,并且编辑,但是没有了管理admin数据库了,这又是什么鬼,为什么,为什么我安装就这么多的逼事,求个大神来喷喷我

PHP中文网
PHP中文网

认证0级讲师

reply all (3)
刘奇

It’s been a while since I last received an inexplicable complaint from you in a private message. I originally wrote a long article to respond, but finally calmed down and gave up. I didn’t make any reply to that question because:

  1. You are right, you may not be the first person to encounter these "problems", but you are indeed the first person to fail to solve the problem yourself, ask questions with complaints, and accuse me of "inaction" in private messages . I have the right to choose not to answer such a question.

  2. Although there are some warnings on the screenshot, you have already entered the mongo shell and can do the following. If you want to do it, I don’t know what it is specifically - work. You didn't mention at all what you thought the "problem" was, nor what exactly you wanted to achieve. So I don't know how to answer such a "question".

Back to the subject, most people may be like me. After seeing the first paragraph, they thought silently: "XX (it has been mosaic processed, please make up your own mind)!" Then they closed the page and left. But I think it might be possible to save it a little more, so... taking this question as an example, let me tell you why no one can answer your question.

This is a problem after mongodb3.4 is installed. The default is not the test database

Why do you think the default database is not the test database? What is your basis? To view the current database, please use the commanddb:

replset:PRIMARY> db test

And the mongodb visual management software is installed and the mongodb database cannot be operated

Can you tell me which version of which visual management software you used? There are many third-party visual management software in the world. Another common sense question is, do you think the management software released today will be compatible with all future MongoDB versions? So have you checked the instructions of this management software to see which version of MongoDB it supports?

Here comes the important point, this time I downloaded the installation package of mongodb3.0, and there is a new situation, which is different from the last time 3.4

I don’t see any difference. There are just some more prompts in 3.4. The places you drew the red line are exactly the same (emphasis added:). Because you have pasted the message into the translation software intact and got a nonsense translation result, I guess you may not understand what this sentence means. Sorry, English is a flaw. Even if you can't speak it, please at least develop your English reading skills to the extent that you can understand basic prompt information. What this sentence means is: If the KB2731284 or newer patch is not installed, the data file will be pre-allocated with zeros (affecting performance).

But there is no more admin database to manage

What is the admin database used for? Why must there be an admin database? Is it possible not to have it?

The following is not a question, I just want to express my opinion

If you just want me to give you a tutorial on Baidu, please stay away

It seems that someone somewhere has already given you this advice, but you didn’t accept it at all, and you still think that other people have a bad attitude? To be fair, what this person said makes sense. Most of the problems in the future will be solved by yourself, and search engines are your best helpers. If you want to continue on this road, you need to master the search skill as soon as possible. . My suggestion is a little different from his: Google tutorials yourself.

Please ask a god to spray me

I finished spraying (I shamelessly call myself the title "Great God")

    漂亮男人

    The suggestions from experts in the Mongoing Chinese community are worth thinking about and taking a good look at.

    Perhaps self-study is the most difficult thing in the world, no matter what you are studying.

    So, be more patient, pay attention to methods, calm down your mentality, and persist a little longer, happiness is just around the corner. come on!

    For reference.

    Love MongoDB! Have Fun!

      左手右手慢动作

      The problem you encountered is called a pitfall. I encounter it almost every week.
      Installing a software brings you so much trouble. This is really a failure of mongodb.
      I don’t know if you have used rpm packaging on Red Hat. Software, that’s a pain
      But you are a programmer. What do programmers do? They create software, modify software, and solve problems. You can’t solve even this trivial matter. What’s the difference between you and a clerk?
      I don’t know if you have a job. If unfortunately you don’t start your own business, then people hire you to solve these annoying problems because you are good at solving them.

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!