Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Help Needed, about databases
  • Posted: 23.01.2007, 10:35
     
    ue_elly
    rank:
    Freshman Freshman
    registered:
     November 2006
    Status:
    offline
    last visit:
    16.11.07
    Posts:
    20
    Anybody can show me how to connect to multi databases in PostNuke?
    Here's the code in config.php, which is connect to ueweb. If I have another databases to connect, where must I put the configuration?
    $pnconfig['dbtype'] = 'mysql';
    $pnconfig['dbtabletype'] = 'myisam';
    $pnconfig['dbhost'] = '192.168.0.48';
    $pnconfig['dbuname'] = 'xxxxxxxx';
    $pnconfig['dbpass'] = 'xxxxxxx';
    $pnconfig['dbname'] = 'ueweb';
    $pnconfig['system'] = '0';
    $pnconfig['prefix'] = 'PN';
    $pnconfig['encoded'] = '1';
    $pnconfig['pconnect'] = '0';
    $pnconfig['temp'] = 'pnTemp';

    Another question is, is it possible to connect to ms. SQL using PostNuke?
  • Posted: 23.01.2007, 16:18
     
    Teb
    rank:
    Helper Helper
    registered:
     February 2005
    Status:
    offline
    last visit:
    06.05.08
    Posts:
    492
    Do you need PostNuke to actually use that database? Of is there another external script / program?

    Because at this moment only one DB connection is possible (in .8 will be multiple IIRC), and if you need an external script to use another database, you could just make a new DB connection in a separate PHP file and include that file in your own external scripts / modules.

    MsSQL not yet possible untill .8

    --
    -- Teb
    -- Dutch PostNuke Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • Posted: 24.01.2007, 08:14
     
    ue_elly
    rank:
    Freshman Freshman
    registered:
     November 2006
    Status:
    offline
    last visit:
    16.11.07
    Posts:
    20
    Hi Teb, thanks for replying.
    I have an external script to plug into PostNuke. Another modules but using PostNuke engine.
    In this script I need to call another database, can u show me in what file I need to add and what script I need to create? I am worry to mess up original PostNuke engine since I am a newbie. Thanks for your help :)
  • Posted: 24.01.2007, 08:52
     
    Teb
    rank:
    Helper Helper
    registered:
     February 2005
    Status:
    offline
    last visit:
    06.05.08
    Posts:
    492
    Like I said, you can't change anything in the PostNuke files for that.

    Look at http://community.postnuke.com/module-Forum-viewtopic-topic-51466-start-0.htm#pid219887 and you'll find a way to include a page / script / file integrated in PostNuke. In that file you can connect to your custom script, and have the output generated within PostNuke.

    That's the only thing I can think of, it's all a bit abstract and what you're asking is not possible by defaut.

    --
    -- Teb
    -- Dutch PostNuke Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula