My SQL Errors Debug..

MySQL Error:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Query Result:select * from portfolio where N_YN = 1 and N_Index_YN != 0