Support » Networking WordPress » Connecting Database

  • Resolved gyalgin


    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?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Ipstenu (Mika Epstein)


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Is this a Multisite question or a general WordPress one?

    If you’re tying to make a Multisite Network, you should activate the network:

    Let says,
    I have wordpress site called and a folder called crm both sits under public html and another folder. I have created sub-domain called 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.

    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.

    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.

    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.

    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.

    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?

    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.

    Thank you Patrick, appreciate your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Connecting Database’ is closed to new replies.