• Resolved iammyr

    (@iammyr)


    I’ve got this error: “Error establishing a database connection”.

    These are data provided by my hosting service:
    Mysql Server: mysql5.netsons.org
    Mysql User Name: myr
    Mysql password: xxxx
    Database Name: myr
    Mysql Database: Mysql5
    Mysql authorizations: SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP

    and this is the ‘wp-config.php’ file as I’ve changed it and uploaded it (in the right path..I’m sure):
    <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘myr’); // The name of the database
    define(‘DB_USER’, ‘myr’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘xxxx’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);

    define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.php’);
    ?>

    Since I’m not sure of ‘localhost’ I’ve tried also to change it with ‘mysql5.netsons.org’ but I’ve got the same error.

    I would like to install it…please help me! :p

Viewing 7 replies - 1 through 7 (of 7 total)
  • Maybe drop a request off over here once?

    spencerp

    Thread Starter iammyr

    (@iammyr)

    Thanks I’ve just followed you suggestion.
    If I will solve my troubles I’ll soon post here and let you know it. ??

    You should also read the data provided by your host:
    Mysql Server: mysql5.netsons.org
    while you have this in the config file:
    define(‘DB_HOST’, ‘localhost’);

    You are in the 1% > change localhost to mysql5.netsons.org

    Thread Starter iammyr

    (@iammyr)

    Unfortunately I’ve already tried it:
    “Since I’m not sure of ‘localhost’ I’ve tried also to change it with ‘mysql5.netsons.org’ but I’ve got the same error.”
    However thanks for posting ??

    In that case you should specify WHICH error message you get (there are more than one!).

    Thread Starter iammyr

    (@iammyr)

    The error message is “always” the same as follows:


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

    Thread Starter iammyr

    (@iammyr)

    I’ve solved my problem!!
    while doing some proofs I changed my database from Mysql5 to Mysql4 and didn’t remember to change DB_HOST from mysql5.netsons.org to mysql4.netsons.org

    I would like publicly to thanks Micheal who has help me very very soon after sending a request from this page: https://install4free.wordpress.com/2006/06/25/get-in-touch/
    and spencerp who has suggested me doing so.
    Thank you ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error establishing a database connection: I can’t install wordpress’ is closed to new replies.