WordPress.org

Ready to get started?Download WordPress

Forums

what goes where? (8 posts)

  1. xtxtx91x
    Member
    Posted 7 years ago #

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'wordpress');    // The name of the database
    define('DB_USER', 'username');     // Your MySQL username
    define('DB_PASSWORD', 'password'); // ...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', '');

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

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

    i dont know where to put the username passowrd or any of that stuff
    idont know if i pyt it here:
    // <strong>Your MySQL username</strong>
    or here:
    ('DB_PASSWORD', '<strong>username</strong>')

  2. 4k
    Member
    Posted 7 years ago #

    define('DB_NAME', 'wordpress'); // The name of the database
    define('DB_USER', 'username'); // Your MySQL username
    define('DB_PASSWORD', 'password'); // ...and password
    define('DB_HOST', 'localhost');

    delete wordpress put your database name

    delete username put the username you have associated with your database

    delete password insert the password you have associated with your database

    Make sure not to delete the single quotes and make sure to save the file as config.php

  3. xtxtx91x
    Member
    Posted 7 years ago #

    ok thanks now i get

    Can’t select database

    We were able to connect to the database server (which means your username and password is okay) but not able to select the xtxtx91x_wordpress database.

    * Are you sure it exists?
    * On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?

  4. 4k
    Member
    Posted 7 years ago #

    double check that you have entered your database name exactly as it appears on your cpanel or phpMyAdmin.

    If that still doesn't work try renaming your data base wpwhatever. Also make sure that if on your cpanel the database shows as yourname_wpwhatever that you enter it exactly that way.

    I did have that error once and I believe that's how I fixed it.

  5. xtxtx91x
    Member
    Posted 7 years ago #

    well its still not working =\

  6. 4k
    Member
    Posted 7 years ago #

    do you have any spaces between any of the things you changed and the single quotes?

    Just one space can make it not work.

  7. Samuel B
    moderator
    Posted 7 years ago #

    If you're really stuck:
    http://install4free.wordpress.com

  8. xtxtx91x
    Member
    Posted 7 years ago #

    ok thanks i got it now!!!

Topic Closed

This topic has been closed to new replies.

About this Topic