Can't connect local mysql server

Hi I used xtrabackup restore database on second server every things is OK but error when I connect to local mysql with normal user
“ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (13)”

but if I use sudo , I can connect to local mysql
Does anyone know how to fix this?

Check permissions on /var/lib/mysql/mysql.sock Make sure all can read/write to it. Check that /var/lib/mysql has “all+execute” privs on the directory.

this permission mysql.sock
srwxrwxrwx. 1 mysql mysql 0 Jul 26 07:52 mysql.sock

What’s the permission of /var/lib/mysql directory? It should be ‘rwxrwx–x’

OK thank you It is caused by permission