Problem with ehcp itself

So I've had a problem that is preventing me from logging into EHCP and connecting to the ftp. I get errors when logging in that are db errors but I can't seem to diagnose the problem.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ehcp'@'localhost' (using password: YES) in /var/www/vhosts/ehcp/config/adodb/drivers/adodb-mysql.inc.php on line 365

Access denied for user 'ehcp'@'localhost' (using password: YES)

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/vhosts/ehcp/classapp.php on line 1539

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/vhosts/ehcp/classapp.php on line 1539

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/vhosts/ehcp/classapp.php on line 1539

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/vhosts/ehcp/classapp.php on line 1539

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/vhosts/ehcp/classapp.php on line 1539

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/vhosts/ehcp/classapp.php on line 1539

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/vhosts/ehcp/classapp.php on line 1539

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/vhosts/ehcp/classapp.php on line 1539

I am unaware of how to do this. I don't want to do a fresh reinstall because I have a project that I am unable to backup. Thanks for the help!
ehcpuser

I tried resetting the root password using the how-to on the ubuntu documentation. Once I logged in, I've tried many commands which involve mysql and I get

-bash: mysql: command not found

unlike before.

I use EHCP =)

whoever it was changed the admin pass. I changed it, but now when I log in I get a plain white screen. I may need some help with security and fixing.

I use EHCP =)

these may be useful:
common daemon commands when gui is not reachable: http://ehcp.net/?q=node/897
security precautions: http://ehcp.net/?q=node/1106

try to upgrade your ehcp.
old ehcp's may have security issue.

disregard the lower comment. That was just me not connecting to ssh.

When I finally got into the mysql for ehcp, I noticed a bunch of spam in the control panel. Users up to 250 rows... I think it may have been a hack. I can connect to one db, but I can't log into ehcp still.

I use EHCP =)

Here's what happened. I have o.29.13 and they applied for free hosting accounts. From there they uploaded a shell in PHP and exploited a bunch of things. I can't manage to install the new files to ehcp because I get permission errors when I do.

I use EHCP =)