Can't connect to local MySQL server through socket in ubuntu while running rails
<p>I trying to follow <a href="https://gorails.com/setup/windows/10" rel="nofollow noreferrer">the steps here</a> to run ruby on rails on linux, everything was fine except when i try to execute this</p>

<blockquote>
  <p>rake db:create</p>
</blockquote>

<p>i got this error,</p>

<pre><code>#&lt;Mysql2::Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)&gt;
Couldn't create database for {"adapter"=&gt;"mysql2", "encoding"=&gt;"utf8", "pool"=&gt;5, "username"=&gt;"root", "password"=&gt;"secretpassword", "host"=&gt;"localhost", "database"=&gt;"apps_development"}, {:charset=&gt;"utf8"}
(If you set the charset manually, make sure you have a matching collation)
Created database 'apps_development'
#&lt;Mysql2::Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)&gt;
Couldn't create database for {"adapter"=&gt;"mysql2", "encoding"=&gt;"utf8", "pool"=&gt;5, "username"=&gt;"root", "password"=&gt;"secretpassword", "host"=&gt;"localhost", "database"=&gt;"apps_test"}, {:charset=&gt;"utf8"}
(If you set the charset manually, make sure you have a matching collation)
Created database 'apps_test'
</code></pre>

<p>what this means?</p>