Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

 

【Windows】

  1. 启动命令行执行下列命令:

    C:\Users\Administrator>d:/ireport365/mongodb/bin/mongo
    >use prod_ireport365_enterprise;
    >db.createUser({
      user: "用户名",
      pwd: "密码",
      roles: [ 
        { role: "readWrite", db: "prod_ireport365_enterprise" }
      ]
    });
  2. 重启数据库服务
  3. 修改配置文件 D:\ireport365\ireport365.war\WEB-INF\classes\service-core\spring-data-mongodb.xml

    <mongo:mongo-client id="systemMongo" host="127.0.0.1" port="27017">


    修改为:

     <mongo:mongo-client id="systemMongo" credentials="用户名:密码@dev_ireport365_enterprise" host="127.0.0.1" port="27017">

 

  • No labels