Support » Installing WordPress » Can’t connect to database

  • how do i get the mysql databases to recognize with WordPress? I been fiddling with this for 2 hours now and i’m rather annoyed with it. Thanks

    • This topic was modified 1 month, 2 weeks ago by  Steve Stern. Reason: Changed post title
Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Volunteer

    There are only 4 things you need to know

    * the database name
    * the database user assigned to the database
    * that user’s password
    * the name of the database server

    Enter these in wp-config.php and you should be good to go.

    Please explain a bit about your hosting environment and how you created the empty database.

    i created a new premission in mysql as im supposed to the part i dont gwt is eding wp-config.wp

    Moderator Steve Stern

    (@sterndata)

    Support Volunteer

    If the WP install has not created a wp-config.php file, copy the sample file to wp-config.php.

    * Download wp-config-sample.php
    * Rename to wp-config.php
    * Edit with your favorite editor (e.g., notepad)
    * Fill in the DB stuff
    * Upload back to your site

    where do i get the db info you all are very descriptive

    Moderator Steve Stern

    (@sterndata)

    Support Volunteer

    again thanks for that very non descriptive explaination, this thing does not apparently is going to work

    Moderator Steve Stern

    (@sterndata)

    Support Volunteer

    Check with your host to see if they have a one click installer as the codex is about as descriptive as you can get. Or, perhaps, start a free site on WordPress.com where this is all set up for you.

    You need to edit wp-config file

    WP-Config.php is probably the single most important file in your entire WordPress installation. This is where you specify the details for WordPress to connect your database. If you changed your root password, or the database user password, then you will need to change this file as well. First thing you should always check is if everything in your wp-config.php file is the same.

    define(‘DB_NAME’, ‘database-name’);
    define(‘DB_USER’, ‘database-username’);
    define(‘DB_PASSWORD’, ‘database-password’);
    define(‘DB_HOST’, ‘localhost’);

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.