简体   繁体   English

Tableau和Mongodb:警告:未为mongosqld启用访问控制

[英]Tableau and Mongodb: WARNING: Access control is not enabled for mongosqld

Hi guys I'm trying to conect mongodb to tableau but I'm getting some errors and idk why. 嗨,大家好,我正在尝试将mongodb连接到tableau,但是我遇到了一些错误,并且知道为什么。 This is what a get: 这是什么:

C:\Program Files\MongoDB\Connector for BI\2.9\bin>mongosqld --schema schema.drdl --mongo-uri localhost
2019-01-03T11:01:39.503-0500 I CONTROL    [initandlisten] mongosqld starting: version=v2.9.0 pid=14140 host=DESKTOP-BIP3KIF
2019-01-03T11:01:39.663-0500 I CONTROL    [initandlisten] git version: d8cbef70c1e612d299f120dd997b3872ab32a679
2019-01-03T11:01:39.663-0500 I CONTROL    [initandlisten] OpenSSL version OpenSSL 1.0.2n-fips  7 Dec 2017 (built with OpenSSL 1.0.2o  27 Mar 2018)
2019-01-03T11:01:39.663-0500 I CONTROL    [initandlisten] options: {schema: {path: "schema.drdl"}, mongodb: {net: {uri: "localhost"}}}
2019-01-03T11:01:39.663-0500 I CONTROL    [initandlisten] ** WARNING: Access control is not enabled for mongosqld.
2019-01-03T11:01:39.663-0500 I CONTROL    [initandlisten]
listen tcp 127.0.0.1:3307: bind: Intento de acceso a un socket no permitido por sus permisos de acceso.

It says that I do not have the privileges to do this, but I'm running my cmd as admin, any ideas to solve this? 它说我没有权限执行此操作,但是我以admin身份运行cmd,有什么想法可以解决此问题?

Here is my guide https://docs.mongodb.com/bi-connector/v2.0/installation/ and I'm stuck in the 5 step 这是我的指南https://docs.mongodb.com/bi-connector/v2.0/installation/ ,我陷入了第5步

Edit, It seems that the connection is established but I cant see the collections or the documents 编辑,似乎连接已建立,但我看不到集合或文档

在此处输入图片说明

The process mongosqld you are trying to start tries to use TCP port 3307. This port should be usable by anyone, unless it is already used by a different program. 您尝试启动的进程mongosqld尝试使用TCP端口mongosqld除非其他程序已使用此端口,否则任何人都可以使用此端口。

You can type in an cmd.exe shell with admin permissions the command 您可以在具有管理员权限的cmd.exe Shell中键入以下命令

netstat -b -p tcp

It lists all used ports and the processes which use them. 它列出了所有使用的端口以及使用它们的进程。 Search for port 3307 and check which process blocks it. 搜索端口3307,并检查哪个进程阻止了它。

I know this is a late answer but try starting with the option: 我知道这是一个较晚的答案,但是请尝试从以下选项开始:

--noUnixSocket

Is it possible you have mysqld running on the box? 是否有可能在包装盒上运行mysqld? I have seen errors like this when the socket is in use. 使用套接字时,我已经看到类似的错误。 If that doesn't work you may also try setting this option 如果这样不起作用,您也可以尝试设置此选项

 --addr=127.0.0.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM