• Resolved gyalgin

    (@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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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

    Thread Starter gyalgin

    (@gyalgin)

    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.

    Thread Starter gyalgin

    (@gyalgin)

    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.

    Thread Starter gyalgin

    (@gyalgin)

    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.

    Thread Starter gyalgin

    (@gyalgin)

    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. http://stackexchange.com/sites#technology

    Thread Starter gyalgin

    (@gyalgin)

    Thank you Patrick, appreciate your help.

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