Can't start server : Bind on unix socket: Permission denied
Problem was with permission on /var/run (only root can write here), mysql user can't create /var/run/mysql/mysqld.sock file.
mysql is started as mysql user but mysql can't write to /var/run.
i solved this by changed /etc/mysql/my.cnf as below, but i wonder about /var/run directory...
Code: Select all
socket = /var/lib/mysql/mysqld.sock
pid-file = /var/lib/mysql/mysqld.pid

