I have yum install mysql in CentOS 6.4. Now, when I use mysql command, it throws the following error:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'When I check the directory there is no mysql folder. How should I solve this problem? It's worth mentioning when I do service mysql start (or with mysqld) it errors unrecognized service.I should mention that I have changed the path in my.cnf but nothing happens. The problem is that no *.sock file exists at all.Update:Results of checking mysql process with mysqladmin -u root -p status returns:mysqladmin: connect to server at 'localhost' failederror: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!Also when I directly want to run /etc/init.d/mysqld it errors that it cannot resolve the ip (localhost.localdomain).Second Update:I have run the command [root@localhost /]# rpm -qa | grep mysqland it returns:mysql-libs-5.1.73-3.el6_5.x86_64mysql-libs-5.1.73-3.el6_5.i686mysql-5.1.73-3.el6_5.x86_64mysql-server-5.1.73-3.el6_5.i686
Installing MySQL on CentOS throws error that cannot find mysqld.sock
centos;rhel;software installation;mysql;services