Keywords: WordPress - Amazon Web Services - Technical issue - Permissions
I made a big mistake, and ran
sudo chown -R on my root folder. I wanted to upload a file to root folder, so I could verify our site on Google Webmaster Tools. Had no idea it would cause such a headache.
So basically, now I'm getting an Error Establishing Database Connection whenever I try to access WP Admin, and when I try adding products to my cart on our site (talltique.com).
So it seems I've changed the permissions on the database, and Wordpress is no longer able to access it.
Is there a way to fix this without starting a fresh copy of Wordpress and restoring my backup on a new Amazon EC2 instance?
Weird note: I can still access my site via FTP/SSH, and NONE of the files or folders I've come across, actually had their user permission changed to what I
chowned. All my files' user permissions stayed the same. So why would the database be having trouble?
2nd weird note: Also, I'm not able to use the
sudo command anymore.
3rd weird note: I tried running
service mysql status (minus the sudo, because I don't have "permission" to use sudo anymore), and it says
mysql: unrecognized service.
I tried logging into my database via SSH and got this error
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/bitnami/mysql/tmp/mysql.sock' (2)
Thank you for any help you can give!