ZenphotoCMS Forum
Database Error with MySQL - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Database Error with MySQL (/thread-8114.html)



Database Error with MySQL - ryan_nerone - 2011-01-17

The link to my gallery is displaying a MySQL error when it tries to connect to the database. It had no issues in the past (about six months ago), but recently I haven't done anything with it. I logged in last month to see the message it displays now. Could someone please assist me in getting the database up and running again? Do I need to reinstall Zenphoto all over again? I have no experience in handling MySQL issues, so any help would be appreciated. As the error mentions it, I should note that I am hosted by DreamHost. Looking forward to the help. Thanks in advance.

http://www.thegoldbrick.net/gallery/




Database Error with MySQL - acrylian - 2011-01-17

Why do you double post even a new topic?

Anyway, please post the actual error message. Otherwise we can't help. Additionally make sure you have entered the correct database credential. Re-run setup to see what it reports.




Database Error with MySQL - ryan_nerone - 2011-01-17

I got an error when posting the first one, so I simply sent it again. Apologies on the double post.

This is the error message:
"MySQL Error: Zenphoto could not connect to the database server.Check your zp-config.php file for the correct host, user name, and password.Note that you may need to change the host from localhost if your web server uses a separate MySQL server, which is common in large shared hosting environments like Dreamhost and GoDaddy.Also make sure the server is running, if you control it."

As the site worked about six months ago, I am quite sure that the database credential is correct. However, is it possible that DreamHost might change something like this?




Database Error with MySQL - acrylian - 2011-01-17

Double check the db credentials and contact Dreamhost to find out.




Database Error with MySQL - sbillard - 2011-01-17

Check your zp-config.php file to be sure it has not been hijacked. Specially if you have left the setup files on your server.




Database Error with MySQL - ryan_nerone - 2011-01-18

Thanks for the assistance. I was able to fix it with updated information from DreamHost. However, now there are more issues regarding the zp_apply_filter("theme head"). Will try to work through that, and, if I cannot fix it, then I'll be back for more help. Thanks again.




Database Error with MySQL - acrylian - 2011-01-18

Regarding that "issue" see the news section.