• <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘wordpressx’); // The name of the database
    define(‘DB_USER’, ‘root’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘*******’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

    // 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-content/languages.
    // For example, install de.mo to wp-content/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);

    /* That’s all, stop editing! Happy blogging. */

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

    What is missing? what must i add to avoid this error:
    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • It always means what it says: can you answer with 110% certainity all those questions with a YES?

    BTW< unless it is a server on your own computer it is very unlikely the user is “root”.

    p.s. Edited the pw – never display it publicly!

    Thread Starter imanordin

    (@imanordin)

    Ok noted.thanks for the edit. btw where can i get the username? Im really lost cause it stated username as root. but ihave my own domain. which is flexiblemarketinggiant.com. thus what would be the username?

    Thread Starter imanordin

    (@imanordin)

    I have already email for free install but they said my website is for commercial use 🙁 but actually its just a normal website selling just books. can u help me install please. 🙁

    I can’t know it. When you created the database you were either supposed to create a user, too – or it gave you the username + DB HOST.

    Also, review this to make sure you did everything correctly:
    http://codex.wordpress.org/Installing_WordPress#Detailed_Instructions

    When you do your own install you typically have to create your own database first, and you’d know the DB name, psswd, etc. via that process.

    If you have used an automated installation process provided by your host then you have to get guidance from them on where to find those values.

    btw, even though it says 99% you won’t have to change the localhost value, there are certain host setups, such as GoDaddy’s, where you do need to replace ‘localhost’ with the actual name of the server you are on.
    (ie. XXX.secureserverXXX.net)
    This name you also obtain from the host.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘help!!’ is closed to new replies.