I deactivated a site due to a pending payment. When I reactivated, the website couldn't connect to the database. I tried connecting to the database through phpmyadmin, but I get "#1045 Cannot login to the MYSQL server". All other databases on the same server can be accessed without problems. I tried accessing the database through the command line, same error. Access through the root user is ok, I can change databases all right. I also did "FLUSH PRIVILEGES;". All this hasn't restored the connection. Any other ideas, please? Oh, and website is Wordpress, but it seems to me the problem lies with the deactivation/reactivation..
Disabling a website does not change anything related to the database, so if you have connection problems now, then that is not related to the disabled website. Disabling a site just removes the symlink in the apache sites-enabled directory, thats all. You should check the database user with phpmyadmin.