WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Can't establishing a database connection (23 posts)

  1. o0mcart0o
    Member
    Posted 2 years ago #

    Hi All
    See error text below.

    I can login with heidi...
    I have acces to my webserver with FTP
    I mean I have configured my wp-config.

    So i'am blank, please help.

    "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 mysql.xxxxxxxx.dk. 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.
    "

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    You need to check your database details with your host.

  3. o0mcart0o
    Member
    Posted 2 years ago #

    Hi esmi
    I can login with the same settings as in wp-config in Heidi.

    I'am sure that my username is right, aswell as my password

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Please check your database details with your host.

  5. o0mcart0o
    Member
    Posted 2 years ago #

    U mean-
    I have all the details i need.
    Host adress
    Username
    password

  6. o0mcart0o
    Member
    Posted 2 years ago #

    i'am trying to run the wp-install.php

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    We cannot troubleshoot your database access credentials. You need to do this with your hosts.

  8. o0mcart0o
    Member
    Posted 2 years ago #

    I'we done that..
    My host and I have tested.

    I can login in heidiSQL

  9. o0mcart0o
    Member
    Posted 2 years ago #

    Or I don't understand what U mean. LOL

  10. airdrummer
    Member
    Posted 2 years ago #

    i just had tp reinstall mysql and now i'm getting this error also:-(
    i can also connect to the db from the commandline:

    [tomw@surplus cavitronix.com]$ mysql -h hp -u cavitronix_wp -p
    Enter password:
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 16
    Server version: 5.5.24 MySQL Community Server (GPL)

    and yes, these are the credentials in my wp-config. so where might i find error msgs to help track down the problem?

  11. esmi
    Forum Moderator
    Posted 2 years ago #

    @airdrummer: It is impolite and contrary to forum policy to interrupt another poster's ongoing thread with a question of your own. Please post your own topic.

  12. o0mcart0o
    Member
    Posted 2 years ago #

    Its, ok for me, we have the same problem, and haven't got a solution yet..

  13. IvanTurbinca
    Member
    Posted 2 years ago #

    Have you found a solution yet ? I have the same problem with mine.

  14. esmi
    Forum Moderator
    Posted 2 years ago #

    Please post your own topic.

  15. Eric Hoanshelt
    Member
    Posted 2 years ago #

    Hey o0mcart0o,

    Like Esmi said, you have to double check your credentials. I see your referencing to your FTP credentials being correct but your FTP credentials and database credentials are two separate things. You will need to be certain that your wp-config.php files has your database host, database user, and database password. You can get these either from your host or if you know where to look, in your control panel your host provides.

    @IvanTurbinca, esmi is just trying to withhold the WordPress forum policy. While other, like you, later search and come on to this post, they are trying to find an answer. They are not looking for how many people had the same issue. If you have the same issue, you can create a new topic or subscribe to this one. :)

  16. esmi
    Forum Moderator
    Posted 2 years ago #

    Added to which IvanTurbinca has a completely different issue and has already posted his own topic.

  17. o0mcart0o
    Member
    Posted 2 years ago #

    I know the difference between FTP and MySql acces.

    And im shure that my credentials is ok.

    I just dont know what to do now, have tried to delete all and upload again. Same thing.
    I have tried to change username and password for the mysql, samer result
    I have tried to set the same usernane and password for both FTP and MySql, Same result

    Now i'am stranded. (An old supertramp number) lol

  18. esmi
    Forum Moderator
    Posted 2 years ago #

    Why do you keep referencing your FTP login details?

  19. o0mcart0o
    Member
    Posted 2 years ago #

    See apart from it, I KNOW its the database data we talk about.

    Still don't work

    I have access to the database in HeidiSQL

    I have made a new database on my web server, still the same.

    I count on that its the username and password for the database.

    Here is the text from my wp-config.php

    I know i have to change credentials after this post. LOL

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  20. esmi
    Forum Moderator
    Posted 2 years ago #

    Never, ever, post sensitive information - such as database access details - in a public forum! Change your database password NOW!

  21. popper
    Member
    Posted 2 years ago #

    Sometimes hosting enviroments need you use different users for the tables you create than for the general access. Can you create a new user and give it privileges for the wordpress table?

  22. o0mcart0o
    Member
    Posted 2 years ago #

    Yes, i'll try that. And the password 1234 is of course not the one the sqluser have...

  23. o0mcart0o
    Member
    Posted 2 years ago #

    Now i made a session with my Host admin, and we got it installed.

    He moved the MySql to the host server. Don't quite know what it mean, bur now the install proses said installed. :-)

    BUT :-(

    You do not have sufficient permissions to access this page.

    It says, when i try 2 login..

Topic Closed

This topic has been closed to new replies.

About this Topic