mongo shell script won’t let me include “use “

In a mongo script you can use the db.getSiblingDB(‘new_db_name’) to get a reference of a new database. So, it it not mandatory to give the database name in the command line. You can use the script.js: db = db.getSiblingDB(‘new_db_name’); print(db); // the rest of your code for database “new_db_name” and the output of this script … Read more

Bash script what is := for?

From Bash Reference Manual: ${parameter:=word} If parameter is unset or null, the expansion of word is assigned to parameter. The value of parameter is then substituted. Positional parameters and special parameters may not be assigned to in this way. Basically it will assign the value of word to parameter if and only if parameter is … Read more

Why should i use Drools? [closed]

Fanatics of all stripes should be questioned, no matter what topic they rave about. Data-driven decision tables are a perfectly good way to implement complex behavior. On the day it doesn’t scale or perform to your requirements, perhaps you’ll want to consider something else. I wouldn’t want to make a technology swap in working production … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)