• Resolved deliop

    (@deliop)


    Hello,

    Sorry for this common error, but I’ve checked lots of articles, tutorials and forums and I can’t solve this problem.
    The situation is similar to this one : https://www.ads-software.com/support/topic/error-establishing-database-connection-129/

    I have a site working whithout wordpress using OVH. I am making a new site with WP using a local DB. I’d like to move the tables from local to live, where the current site is hosted.

    I imported my database from a localhost export.
    I edited wp-config.db with the correct “dbname” and password.

    define( ‘DB_NAME’, ‘dbname’ );
    define(‘DB_USER’, ‘dbname’);
    define(‘DB_PASSWORD’, ‘*****’);
    define(‘DB_HOST’, ‘dbname.mysql.db’);

    I know the user, password and host are corrects because I can connect to the DB with pypmyadmin. The server is not down because the current site has no problem with it. And all the tuto using ovh have this kind of wp-config.db.

    I can’t see where does the problem come from.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please verify the database server name with your host.

    Thread Starter deliop

    (@deliop)

    I have checked the the server name. OVH uses “name of the database”.mysql.db for its database server names. And it works when I use it to connect to the DB with pypmyadmin.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    is dbname the same for both the database *user* and the database name itself? Have you asked OVH support to check on this?

    Thread Starter deliop

    (@deliop)

    I saw it on my account. In the table the name of the user is the same as the name of the database. And when I check their forum with similar topics, the examples also have the same name for the user and the database.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Have you asked OVH support to look into this? What is the EXACT error you receive from WordPress?

    Thread Starter deliop

    (@deliop)

    I’m sorry I edited the wrong file… I had several wp-config.php opened. So it works.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    heh… that was a question we’d have come to eventually. Glad you figured it out.

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