WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Connecting Database (10 posts)

  1. gyalgin
    Member
    Posted 8 months ago #

    Hi there,
    I need a help to connect database from a folder that is sitting in the same folder as wordpress site. How do I do it?

  2. Is this a Multisite question or a general WordPress one?

    If you're tying to make a Multisite Network, you should activate the network: http://codex.wordpress.org/Create_A_Network

  3. gyalgin
    Member
    Posted 8 months ago #

    Let says,
    I have wordpress site called abcxy.com and a folder called crm both sits under public html and another folder. I have created sub-domain called crm.abcxy.com and pointed to this crm folder. but it is giving me error, this crm has blank index.php file and has sevaral other files too. This crm connects the same db as wordpress site does.

  4. gyalgin
    Member
    Posted 8 months ago #

    site was working fine, for some reason, it was down and had to restored. I could not connect the db from this crm folder after restoration.

  5. OK, is the CRM sub-domain for WordPress or some other mysql/php application (like SugarCRM, for example)?

    If it IS WordPress then either (1) create a Multisite network -- all 1 database and add the CRM site OR (2) have a separate WP installation in the CRM folder with a separate database.

    If it's something besides WordPress then it's not really a WordPress related question...and I'd highly recommend to use a separate database if at all possible.

  6. gyalgin
    Member
    Posted 8 months ago #

    Hi Patrick and Mika,

    Thank you for the suggestion,
    CRM folder is sitting out site main wordpress site meaning(both CRM and main wordpress site are sitting under public html) but both shares the same database.
    It used to work fine until the site was down and had to re-store the whole thing. After restoration, I am not able to connect the database even creating sub-domain and pointing it to CRM folder.

  7. OK so you're running two different software with the same database. Is the WordPress website able to connect to the database? If it is, then it's likely a configuration issue with your other software in the CRM folder.

  8. gyalgin
    Member
    Posted 8 months ago #

    Yes, you are right, two different site connecting one database. WordPress Website has no problem its up and running after editing config.php file. But this CRM was not able to run.
    Do you think we need to do someting in config.php? to connect the database?

  9. Yeah something is likely wrong in that applications config file. I think this is kind of beyond the reach of WordPress support forums. You may want to try forums for that software or ask on a relevant Stack Exchange site. http://stackexchange.com/sites#technology

  10. gyalgin
    Member
    Posted 8 months ago #

    Thank you Patrick, appreciate your help.

Reply

You must log in to post.

About this Topic