can't run the install. Please help (12 posts)

  1. mikeyjay
    Posted 4 years ago #

    Hi, after many hours getting my head around exactly what I need to do to install wordpress, and cross referencing many articles and videos online, I have managed to get nearly all the way without having to post for help, but I have finally given in at the last hurdle. I think I've done everything correctly but the site won't install, but there's definitely something there as the site has changed from the isp's default page to the wordpress "error establishing database connection page.

    Let me talk you through what I've done...

    So, I've setup a database on 1and1 under the domain name I want to use.

    I've downloaded wordpress.org, changed the wp-config-sample to wp-admin, where I've opened it up in the "text" app on my mac (osx 10.7.3 Lion) and changed the information to that created by 1and1 when I setup the MySQL database. I've only changed 4 items, that is the DB Name, DB USER, DB Password, DB Host. I think that's right...

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'dbnnnnnnnnn');
    /** MySQL database username */
    define('DB_USER', 'dbonnnnnnnnn');
    /** MySQL database password */
    define('DB_PASSWORD', 'mypassword');
    /** MySQL hostname */
    define('DB_HOST', 'dbnnnnnnnnn.db.1and1.com
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    Then, I've uploaded all files to the web host using filezilla. Established the connection, all files transferred. The one mistake I made at this point was that I had not deleted the "sample" file, but I have rectified this now.

    So, as I said, I thought I'd done it all, and I just needed to run the install, but it's not letting me. Please, if anyone can help that would be great. I know it doesn't look like much abnd to a pro, that would take you 5 minutes like they say, but I've literally learnt this from scratch this morning and it's taken me all day to get this far...

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    it's not letting me

    That's not terribly useful. We need details. What error message(s) do you see? Have you tried removing your wp-config.php file and allowing WP to create it as part of the install process?

  3. mikeyjay
    Posted 4 years ago #

    Hi Esmi,

    Well I don't really know what the next stage is going to be so I can't be more specific. As I said, when i go to the mydomain/wp-admin/install.php, it's just showing the default wordpress "error establishing database connection" page. I don't know more than that I'm afraid.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Check your database details with your hosts.

  5. mikeyjay
    Posted 4 years ago #

    Done that. Gone through it with a fine toothcombe. The details provided to me are exactly what I've put in to the wp-config file. Is it right that I just needed to change those 4 items towards the top of the file, between the apostrophes?

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    Yes - although you should also generate new secret keys.

  7. mikeyjay
    Posted 4 years ago #

    Blimey, what the bloomin heck is a secret key?

  8. mikeyjay
    Posted 4 years ago #

    Just thought, If you've never see the "Error establishing a database connection" page before, this is what it says...

    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at dbnnnnnnnnn.db.1and1.com . This could mean your host's database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

  9. esmi
    Forum Moderator
    Posted 4 years ago #

    what the bloomin heck is a secret key?

    Look a little further down your wp-config.php or wp-config-sample.php file. They're used in the WordPress cookie creation.

  10. mikeyjay
    Posted 4 years ago #

    I can see that, but what are they, what do they do, do i need to change them now, is that why my site won't show, do they need to be different and do I therefore need to remember them? It's soooooo confusing. I haven't seen a single bit of information that mentions them ans tells you what to do with them.

  11. esmi
    Forum Moderator
    Posted 4 years ago #

    No - you don't need to remember them and, for the most part, once they're set, you can forget them. You can just go to https://api.wordpress.org/secret-key/1.1/salt/ to generate a set for your site.

  12. Anthony Hortin
    Posted 4 years ago #

    I've downloaded wordpress.org, changed the wp-config-sample to wp-admin

    You say that you've changed "wp-config-sample" to "wp-admin"? Just to verify, "wp-config-sample.php" is the sample configuration file. After editing the details you mentioned in your first post, this file should then be renamed to "wp-config.php". After making the necessary config file changes, creating your database and uploading all your files, you then need to run "http://your-domain-name.com/wp-admin/install.php" to start the installation process. (obviously replace "http://your-domain-name.com" with your actual domain name)

Topic Closed

This topic has been closed to new replies.

About this Topic