The MU forums have moved to WordPress.org

Andrea, you'll kill me for this post: Error establishing a database connection (6 posts)

  1. taewoo
    Member
    Posted 13 years ago #

    Andrea/Other Moderators
    I've read a ton of threads on WP MU installation and how people are having problems with this specific problem. But I am having it as well..

    [ What I am using ]
    ============================
    I am using WampServer, which has
    - Apache 2.2.11
    - PHP Version : 5.2.9-1
    - MySQL Version : 5.1.32

    I've outputted the PHPinfo() output to : this file (note, this is the PHPinfo of my local setup, not that server).

    Here's my C:\Windows\System32\drivers\etc\hosts file:

    127.0.0.1       localhost
    127.0.0.1       wordpressmu.com

    Here's the .htaccess part that is of interest:

    NameVirtualHost 127.0.0.1
    
    <VirtualHost 127.0.0.1>
    DocumentRoot D:/wamp/www/
    ServerName localhost
    </VirtualHost>
    
    <VirtualHost 127.0.0.1>
    DocumentRoot D:/wamp/www/wordpressmu/
    ServerName wordpressmu.com
    </VirtualHost>

    [ What I did ]
    ===================================
    As Andrea has posted in a TON of places, I made sure

    1. there is no .htaccess in the D:/wamp/www/wordpressmu/ folder.
    2. there is no wp-config.php in the D:/wamp/www/wordpressmu/ folder.
    3. that a database is created with ALL permissions (but i am not sure how this is relevant b/c I don't see how the WP MU sees this info before I can enter them anywhere

    YET...

    I am still getting "Error establishing a database connection" when I point my browser to http://wordpressmu.com/index.php

  2. andrea_r
    Moderator
    Posted 13 years ago #

    Are there any wp-config.php files anywhere else? :)

    +10 for amusing title.

  3. taewoo
    Member
    Posted 13 years ago #

    ah crap. you are right. ;)
    I found one at D:\wamp\www

    Thanks for not killing me Andrea

    Couple of things I noteiced..

    1) when I do XML export from my WP blog into a WP MU blog, the directory structure of the uploads (mainly images) changes from /wp-content/uploads/... to /files/...

    2) Content in <object>...</object> tags are gone

  4. andrea_r
    Moderator
    Posted 13 years ago #

    1) yep, it will. I kludge it by putting a copy in the "old" location too.

    2) yep. Mu strips tags. Put in the unfiltered mu plugin *then* import posts.

  5. taewoo
    Member
    Posted 13 years ago #

    1 => is it possible to non-kludge it? I've noticed there is no "wp-content/uploads" folder at all after the import

    2 => Hmm.. i've tried it but still stripping out <object>..</object>. I made sure that the XML export has the string in there... but still it's stripping out the tags.

  6. andrea_r
    Moderator
    Posted 13 years ago #

    1 - my kludge I mean create that wp-content/uploads folders and put the stuff there. It's mostly for links in the archives.

    2 - gotta make sure you have a plugin in there allowing thsoe tags first, that's all i got for ya. :)

About this Topic