Aggregation Pipeline is a framework that is based on the concepts of data processing pipelines. Documents enter a multi-stage pipeline that transforms the documents into an aggregated result. Data flows from one stage to another stage and at the end of the pipeline, we get the transformed data which can be used directly. The MongoDB aggregation pipeline consists of stages that we can use as per our requirements.
Import the sample data in your local MongoDB.
(Run mongod command to start the local MongoDB in another terminal tab)
The reason for this error is because the mysql is using default unix or auth_socket plugin.
So we have change this to mysql_native_password
sudo mysql -u root -p
Enter password for sudo and root user
Change to mysql database
Select User, Host, plugin from mysql.user;
This will show
Update user set plugin=’mysql_native_password’ where User=’root’;
systemctl restart mysql
Now try connecting from Mysql Workbench or Laravel and keep password empty.
Senior Software Developer