title: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
body: <p>Installed a LAMP stack, and now presented with this when I try and connect to my DB, my aim is to install SNIPE-IT, however I am somewhat new to the Linux environment. </p>
  
  <p>Please take a look at my webmin log;</p>
  
  <hr>
  
  <pre><code>/etc/init.d/mysql[9744]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
  
  /etc/init.d/mysql[9744]: #007mysqladmin: connect to server at 'localhost' failed
  
  /etc/init.d/mysql[9744]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
  
  /etc/init.d/mysql[9744]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
  /etc/init.d/mysql[9744]: 
  
  mysql[9432]:    ...fail!
  
  systemd[1]: mysql.service: Control process exited, code=exited status=1
  
  systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
  
  systemd[1]: mysql.service: Unit entered failed state.
  
  systemd[1]: mysql.service: Failed with result 'exit-code'.
  </code></pre>
  
  <p>Update - Cannot uninstall mysql either to try a fresh install.</p>
  
  <p>You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: </p>
  
  <p>mysql-client-5.7 : Depends: mysql-client-core-5.7 but it is not going to be installed </p>
  
  <p>mysql-server : Depends: mysql-server-5.7 but it is not going to be installed </p>
  
  <p>E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)."</p>