• This is a new installation of version 2.0 on my own website.

    I’ve created my MySQL database, placed the files on my server (via frontpage import) and when I run the install.php from my browser I get…

    “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”

    I made sure I had everything in wp_config correct and even compared it against my PhpBB forum installation’s configuration to make sure. Obviously, the database name is different, but the rest is the same so I know my username and password is correct, as is the server.

    Do any of the .php files need have the user execute file attribute? I’m not up much on unix (which my server uses) and its file attribute numbers. cpanel just shows me read/write/exec status of files. I’m unsure if anything needs exec status… nothing has it.

    I’m wondering if this could be part of my problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Is the database linked to your name ?

    It’s nothing to do with any permissions – just the connection between your name and the database.
    “Add User to Db” is the button in cpanel to click.

    The first thing: forget FP when working with WordPress. Get a good FTP client.
    Do not edit WP files in frontpage – only in a plain text editor.
    If you have cPanel, please read the installation guide:
    https://www.tamba2.org.uk/wordpress/ (on left, under Installation) – pay attention to The Really Important Bit!

    Thread Starter mjanke

    (@mjanke)

    Ends up I had to add another user to the DB. Not sure why. I already had one username setup from previous databases, it had full admin rights. cpanel gave me the option to assign that user to my new database, but for whatever reason, something didn’t like that.

    After adding a new user and giving it full rights, all worked as it should.

    BTW, the cpanel I have looks NOTHING like what’s in the installation guide. Not even close and nowhere near the options.

    Thanks for the ideas!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.