error 2002 (hy000): can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2)
mariadb.service can't be started,at first,it works very well, after i edit /etc/hosts and reboot, the mariadb is not starting. i don't know why. in /etc/lib/mysql directory ,no file mysql.sock, i try use mysql -h localhost, mysql -h controller , the error is the same.
Answer Answered by Ian Gilfillan in this comment.
Take a look at Troubleshooting Connection Issues.
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.