Maybe it's unrelated, but this error can occur if the production db entry in an app's config/database.yml doesn't match the actual socket location. The default config/database.yml (since about 1.2.3) has /tmp/mysql.sock, but the standard socket file location for ubuntu is /var/run/mysqld/mysqld.sock. Usually commenting out the socket line in database.yml is enough. You can find your socket file location in /etc/mysql/my.cnf.
Not sure about the resize contributing to this, though.
Now I'm trying to find my db with the command line and getting this:
pixeltracking@pixel:/$ mysql ERROR 1045 (28000): Access denied for user 'pixeltracking'@'localhost' (using password: NO) pixeltracking@pixel:/$ sudo mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) pixeltracking@pixel:/$
I'm also starting to sweat a bit, I had a lot of data in that database...
if you haven't set up any users other than root, for example, you'd use
$ mysql -u root -p
if you haven't password-protected your mysql you can drop the -p
Note that my suggestion for the socket location applies to any app—find the part of your app config where the database socket file location is defined and change it to whatever your slice has configured, or symlink between your socket file and the location your app is looking.
You could change the socket location in mysql/my.cnf. Not sure if that would work. The issue might also be the location for your socket file as listed in /etc/php.ini, if it's a LAMP setup.