zenphoto forums » Installation Support

dreamhost install can't connect to database

(9 posts)
  1. nicolai

    Apprentice
    Joined: Jan '10
    Posts: 4

    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?

    Posted 3 years ago #
  2. micheall

    Contributor
    Joined: Aug '09
    Posts: 513

    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.

    Posted 3 years ago #
  3. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,766

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  4. micheall

    Contributor
    Joined: Aug '09
    Posts: 513

    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.

    Posted 3 years ago #
  5. nicolai

    Apprentice
    Joined: Jan '10
    Posts: 4

    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???

    Posted 3 years ago #
  6. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,342

    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).

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  7. nicolai

    Apprentice
    Joined: Jan '10
    Posts: 4

    Both host and database is set up. Hmm- might have to go back to Gallery :-(

    Posted 3 years ago #
  8. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,342

    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?

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  9. nicolai

    Apprentice
    Joined: Jan '10
    Posts: 4

    ok deleted the database and did the whole thing again. It now works, wooohhooo

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.