• redbourn

    (@eagerwatcher)


    Any idea on why this isn’t working.

    Thanks in advance,

    Jane

    localhost/misconce/wp-login.php = takes me to the login for my online site.

    http://localhost/misconce/ = Oops! This link appears to be broken.

    the wp-config.php is here:

    C:\xampp\htdocs\misconce

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘misconce’);

    /** MySQL database username */
    define(‘DB_USER’, ‘root’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ”);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    ——-

    http://localhost/xampp/ = opens xampp

    Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a password for user ‘root’.

    —–

    http://localhost/phpmyadmin/index.php?db=misconce&token=f4a62de949fbf3b938e3cf6d093c8491

    site url = http://localhost/misconce

    home = http://localhost/misconce

Viewing 6 replies - 1 through 6 (of 6 total)
  • Abhishek Ghosh

    (@abhishek_ghosh)

    localhost/misconce/wp-login.php = takes me to the login for my online site.

    That is normal. Because in database the website’s url is of live website. You have two issues. First is taking a pure mirror copy of live website to localhost :

    What you will do is :

    1. Install the same version WordPress of that live site on XAMPP. Its a fresh installation.
    2. Download wp-content and wp-uploads folder from live website. Delete the point (1)’s those two folders and replace them with your these downloaded folder.
    3. Login to your live website’s PHPMyAdmin and take back of the needed database tables. Method is same as I described here before – http://wordpress.org/support/topic/migration-to-plesk-gone-wrong?replies=2#post-3506688
    4. So you are replacing your localhost’s few tables with Live website’s one.
    5. Login and set the permalink as you need. Permalink actually does not matter.

    Your second issue is with MySQL database username-password in XAMPP. Create a new database with unique username and password from XAMPP’s PHPMyAdmin. There is no need to Edit the wp-config separately, simply put the uncompressed new WordPress in a new folder like :

    C:\xampp\htdocs\misconce1

    When you will point towards C:\xampp\htdocs\misconce in browser, automatically a wp-config file will be created.

    Thread Starter redbourn

    (@eagerwatcher)

    Thank you very much!

    I will work through the above a little later on today.

    Jane

    Thread Starter redbourn

    (@eagerwatcher)

    It’s almost working!

    http://i47.tinypic.com/2mi1aq1.jpg

    I forgot to add a password when I created the new database misconce1; so how do I that?

    Seems like I need it for …

    /** MySQL database username */
    define(‘DB_USER’, ‘root’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ”);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    Will I use the username ‘root’ to enter the WP site?

    BTW I did check on the Internet to see how to do this but only found how to do it for the whole mysql datatbase and not for separate databases. But maybe that’s how it works?

    Thanks,

    Jane

    Thread Starter redbourn

    (@eagerwatcher)

    In case the above is not clear enough ..

    I can get to the WP login page without any problems and I can get to the database, no problem.

    But if I try using

    /** MySQL database username */
    define(‘DB_USER’, ‘magic’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘xxx’);

    and then enter http://localhost/misconce1/wp-login.php

    then I get: Error establishing a database connection

    ​but if I use root and no password then I get taken to the WP login page but I don’t know what to enter there.

    thanks,

    Thread Starter redbourn

    (@eagerwatcher)

    As there are no replies here and I progressed with this, but now have a very specific problem I will start a new post.

    http://wordpress.org/support/topic/plugin-preventing-local-install?replies=1#post-4108522

    Jane

    Abhishek Ghosh

    (@abhishek_ghosh)

    As there are no replies here and I progressed with this, but now have a very specific problem I will start a new post.

    No problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Oops! This link appears to be broken.’ is closed to new replies.