ThinkPHP 连接 mongo Authentication failed on database 'admin':
2017-12-29 00:00
721 查看
数据库正常配置如下:
连接报错:
Authentication failed on database 'admin':******
解决:
安装 php_mongo.dll, 和 php_mongodb.dll 驱动
ps:
https://cloud.tencent.com/document/product/240/3977 http://blog.csdn.net/YQXLLWY/article/details/52238199
/* 数据库配置 */ 'DB_TYPE' => 'mongo', // 数据库类型 'DB_HOST' => '192.168.31.176', // 服务器地址 192.168.31.176 'DB_NAME' => 'admin', // 数据库名 'DB_USER' => 'netuo', // 用户名 'DB_PWD' => 'netuo', // 密码 'DB_PORT' => 27017, // 端口 'DB_PREFIX' => '', // 数据库表前缀
连接报错:
Authentication failed on database 'admin':******
解决:
安装 php_mongo.dll, 和 php_mongodb.dll 驱动
ps:
https://cloud.tencent.com/document/product/240/3977 http://blog.csdn.net/YQXLLWY/article/details/52238199
相关文章推荐
- MongoDB not authorized on admin to execute command --auth Authentication failed.
- golang 连接 mongodb dial 报错 server returned error on SASL authentication step: Authencication failed.
- php mongodb 链接失败,提示Authentication failed on database...[坑]
- c#-mongodb连接出错:MongoDB.Driver.MongoAuthenticationException: Invalid credentials for database...
- SQL Server 2014 Installation Error - Wait on the Database Engine Recovery Handle Failed
- SQL Server ->> 使用Azure Active Directory Authentication连接到Azure SQL Database
- spring--data-mongondb ...CannotGetMongoDbConnectionException: Failed to authenticate to database
- fast incremental backup failed on standby database
- System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.InvalidOperationException: 超时时间已到。超时时间已到,但是尚未从池中获取连接。出现这种情况可能是因为所有池连接均在使用,并且达到了最大池大小。
- 连接oracle报错“ORA-28547:connection to server failed,probable Oracle Net admin 解决办法
- ssh 远程连接报错 PTY allocation request failed on channel 0
- MongoVUE连接MongoDB,日志报错: “Failed to authenticate root@admin with mechanism MONGODB-CR: Authenticatio
- navicat连接oracle数据库报ORA-28547: connection to server failed, probable Oracle Net admin error错误的解决方法
- 用Navicat连接Oracle数据库时报错ORA-28547:connection to server failed,probable Oracle Net admin error
- Mongo运行错误:Failed to connect 127.0.0.1:27017,reason:errno:10061由于目标计算机积极拒绝,无法连接
- 用Navicat连接Oracle数据库时报错ORA-28547:connection to server failed, probable Oracle Net admin error
- InnoDB: Database page corruption on disk or a failed
- mysql数据库崩溃:InnoDB: Database page corruption on disk or a failed
- 连接oracle报错“ORA-28547:connection to server failed,probable Oracle Net admin 解决办法