It seems odd that this directory was not created at install – have you manually changed the path of the socket file in the my.cfg?
Have you tried simply creating this directory yourself, and restarting the service?
mkdir -p /var/run/mysqld
chown mysql:mysql /var/run/mysqld
More Related Contents:
- Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
- How to increase MySQL connections(max_connections)?
- NOT LIKE not working with SHOW [duplicate]
- MySQL Error 1093 – Can’t specify target table for update in FROM clause
- MySQL – Rows to Columns
- How to define a custom ORDER BY order in mySQL
- MySQL update table based on another tables value
- Comparison of full text search engine – Lucene, Sphinx, Postgresql, MySQL? [closed]
- How to get the number of days of difference between two dates on MySQL?
- MySQL Error 1153 – Got a packet bigger than ‘max_allowed_packet’ bytes
- conditional join in mysql
- a count for each join – optimisation
- How to grant all privileges to root user in MySQL 8.0
- MySQL Group by SUM
- Search for all occurrences of a string in a mysql database [duplicate]
- MySQL Aggregate Functions without GROUP BY clause
- Count days between two dates, excluding weekends (MySQL only)
- How to insert values in table with foreign key using MySQL?
- MySQL: How do I join same table multiple times?
- Difference in minutes from two time fields in MySQL
- How to save MySQL query output to excel or .txt file? [duplicate]
- MySQL: Set user variable from result of query
- Is there any performance gain in indexing a boolean field?
- NodeJS responded MySQL timezone is different when I fetch directly from MySQL
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ [duplicate]
- How to swap values of two rows in MySQL without violating unique constraint?
- SQL date format convert? [dd.mm.yy to YYYY-MM-DD]
- Storing images in MySQL [closed]
- Would it help to add index to BIGINT column in MySQL?
- Count duplicates records in Mysql table?