Permission issus after SQL deteled

hi there,

so i installed x cache on one of myserver and after 3 days i start getting “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”

so I install mysql again

but then all my worpress sites start giving permission and ftp connection error,

I used CHOWN command but the error still coming.

Can anyone suggest anything or help with this strange issue.