error validating settings: only one positional argument is allowed in mongodb

Published on

If you get this error while inserting fields with –fields, the probable reason might be you are using spaces to do that. Both -f and –fields should work in those cases Using Mongo Version 3.0.6 mongoimport –db logs –collection action_logs –type tsv -f updated_at ,transaction_time ,origin –file parsed.tsv mongoimport –db logs –collection action_logs –type tsv … Continue reading error validating settings: only one positional argument is allowed in mongodb

How to change MySQL root username and password

Published on

How to change MySQL root username and password? Step 1: Connect MySQL Step 2: use mysql; update user set user=’admin’ where user=’root’; flush privileges; Step 3: Change the root user password update user set password=PASSWORD(‘new password’) where user=’admin’; flush privileges;

How to connect mysql with laravel

Published on

How to connect mysql with laravel? In Laravel 5, there is a. env file, It looks like APP_ENV=local APP_DEBUG=true APP_KEY=YOUR_API_KEY DB_HOST=YOUR_HOST DB_DATABASE=YOUR_DATABASE DB_USERNAME=YOUR_USERNAME DB_PASSWORD=YOUR_PASSWORD CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync MAIL_DRIVER=smtp MAIL_HOST=mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null Edit that .env There is .env.sample is there , try to create from that if no such .env file found.