Mysql error - Can't connect to local MySQL server through socket mysqld.sock

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=Ue6lPF10wC0



Duration: 2:39
119,731 views
220


i get error like this :
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

You can fixing by : sudo apt-get install mysql-server

===================================
update 15 september2019

if still not worked, you need to kill mysql process and restart the mysql

ps -A|grep mysql
sudo pkill mysql
ps -A|grep mysqld
sudo pkill mysqld

sudo service mysql restart




Other Videos By Ambar Hasbiyatmoko


2016-03-26Install latest Postgresql + Pgadmin from .run file - Ubuntu
2016-03-16Postgresql error : convert field character varying to integer
2016-03-15postgresql error - convert [field] time to timestamp with time zone
2016-02-22Android Studio error - The environment variable JAVA HOME does not point to a valid JVM installation
2016-02-22WAMP error - msvcr110.dll and msvcp110.dll is missing
2016-02-21WAMP error - #1405 Access denied for user 'root@localhost' using password no
2016-02-18Phppgadmin problem - empty SQL dump after export
2016-02-18Phppgadmin problem - Export error: Failed to execute pg dump [windows]
2016-02-07Codeigniter problem - Illegal string offset 'server' when using PostgreSQL
2016-02-07bootstrap-datepicker problem : options datepicker not working
2016-01-29Mysql error - Can't connect to local MySQL server through socket mysqld.sock
2016-01-24codeigniter problem : logout problem
2016-01-20phppgadmin problem : update query not working
2016-01-19how to display photo 360 degree(photosphere) on website
2016-01-19jquery v1.11.2 problem : cannot checked the checkbox with attr()
2016-01-18fancybox.js v2.1.3 error : cannot read property 'msie' of undefined
2016-01-14datatables problem : icon expandable detail not appear
2016-01-04CI error : Call to undefined function redirect()
2016-01-04CI problem : Fatal error Call to a member function userdata()
2016-01-04Phppgadmin problem : Login disallowed for security reasons
2016-01-04Phppgadmin problem : Your PHP installation does not support PostgreSQL. You need to recompile PHP



Tags:
mysql
error
socket
ubuntu
terminal