Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Hi!Im new to Ruby and generally web development and recently started looking into your awesome opensource.

Im trying to start a local database to use with the opensource just for testing.I came accross the following error:

Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’

,while trying to open the website via localhost.

Also while trying to run: (All the previous steps have been completed successfully)
bundle exec rake db:create db:structure:load

,I get the following error too:

the mysql exension is properly installed using:

npm install mysql according to this.

Thank you for your time, Chris

Hi Chris,
Did you change the default credentials to connect to mysql?
As I can see, you have username “root” and password “root”. You can change this in /config/database.yml
If this credentials are correct, try to connect to mysql via console

mysql -u youruser -p

If you can’t connect, it must be a problem with your mysql installation, not with sharetribe

I am running mysql on a Ubuntu VM on Azure.Are there any specific steps i should do in my case?Also any extra steps i should do specifically when delpoying sharetribe except those described in the README file?

Also, if possible i would like some step-by-step support.My email is cchatzis@outlook.com

Thanks in advance,
Chris

I can connect to the database without errors, also the credentials have all been changed in the config files!