Trying to import the Sample DB into our application but failing. Please help on this.

We are unable to import sample_data.sql and facing issues. After unzip running command to import db , showing error ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) and this folder (run) not there in var folder.

If you’re paying for a web hosting service, please contact their support team for help with this error, and make sure to include the command you’re trying to run for the database import. They are the only ones who can investigate and resolve this.

If you’re self-hosting, then the immediate possibilities that come to mind are that you either have not yet installed mysql-server, or it’s not currently running. There are plenty of guides online to help you through the process of installing a MySQL server for your distribution.