• 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

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

    (@sterndata)

    Volunteer Forum Moderator

    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.

    Thread Starter klo81

    (@klo81)

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

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    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

    Thread Starter klo81

    (@klo81)

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

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Thread Starter klo81

    (@klo81)

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

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    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)
  • The topic ‘Can’t connect to database’ is closed to new replies.