Error MySQL Error ERROR 2002 (HY000) Cant connect to local MySQL server through socket implies that the MySQL service is not running. Check the status of the MySQL service.
systemctl status mysql
If the MySQL service is not running, start the service.
systemctl start mysql
SELinux may be enforcing. Use the following command to determine if SELinux is enforcing.
If SELinux is enforcing, you can set SELinux to permissive to know if SELinux is the source of the problem.