dreamhost install can't connect to database

I have just installed my own copy of zenphoto. But I can't get past the setup page. I have checked and double checked that i am using the right database, pw and so on, but nothing happens when I click the save button. And when I visit the site I get an error that zenphoto can't connect to database. What am I doing wrong?

Comments

  • Make sure you're using the right database host. Some hosting companies instead of using "localhost" will use an internal address like "mysql1234.internalhost.net" or something like that. If it's saying it can't connect to database it should also tell you why, like could not find host, invalid password, something like that.
  • Actually, zenphoto will not tell you why it cannot connect since that information is not available at all. (Mostly for security reasons!!!) Cannot connect to the database means that one of the items about your database is not correct.

    If you have checkec and rechecked the database, user, and password the only thing left is micheall's suggestion of database host.

    If you have checked, rechecked, and checked again everything, then you are decieved about one of those items.
  • Ah, I hadn't run into the error, figured zenphoto passed the error reason along like other php scripting. Makes sense that it doesn't. But yeah, if you're positive that you've got the name/pass/databse correct then it's likely the database host issue.
  • I'm hosted with Dreamhost, and am using the right database host, if I go to that hosting site I am able select the database I'm using so the setting is definitely right. Do I need to set up a table in the database for it to work? It's pretty much the only thing I can think of could be a problem???
  • acrylian Administrator, Developer
    No, setup creates the tables but you of course might need to setup a database first if you haven't. On some hosts setup can do that but not on all (mine for example).
  • Both host and database is set up. Hmm- might have to go back to Gallery :-(
  • acrylian Administrator, Developer
    Well, we have many users that use Dreamhost so something must be wrong. Are thery any more specific errors in the server's error log maybe?
  • ok deleted the database and did the whole thing again. It now works, wooohhooo
Sign In or Register to comment.