+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Use one SQL Database for Multiple Programs... :)

  1. #1
    John Klyne's Avatar
    John Klyne is offline Community Advocate John Klyne is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    My House, New Jersey, USA
    Posts
    909

    Use one SQL Database for Multiple Programs... :)

    ...I am wondering if anyone has tried such thing? Does anyone know if something like this would work...?

    I am trying to come up with a system that would enable one database to be used for more than just one program a, database requiring sites, such as, hosting... phpbb forums, joomla, advertising site, and whatever else you can think of, all on one database.

    I am not sure if what I have said, makes sense but anyone able to enlighten me a little?
    My Private School!
    Visit PLEASE

  2. #2
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Use one SQL Database for Multiple Programs... :)

    It works fine, I use WP and phpBB and my own custom stuff in the same database

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Use one SQL Database for Multiple Programs... :)

    if yo can set a tableprefix in the application it should work. If you can't, then you have to edit the script yourself to use a unique prefix

  4. #4
    John Klyne's Avatar
    John Klyne is offline Community Advocate John Klyne is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    My House, New Jersey, USA
    Posts
    909

    Re: Use one SQL Database for Multiple Programs... :)

    Editing the script myself is not an option for my capabilities heh...

    What do you mean, tableprefix...


    Callum- Didn't know it would work heh Thanks for verifying.

    Again, I appreciate the help you both have given, thank you.
    From John Klyne.
    My Private School!
    Visit PLEASE

  5. #5
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Use one SQL Database for Multiple Programs... :)

    Quote Originally Posted by John Klyne View Post
    Editing the script myself is not an option for my capabilities heh...

    What do you mean, tableprefix...


    Callum- Didn't know it would work heh Thanks for verifying.

    Again, I appreciate the help you both have given, thank you.
    From John Klyne.
    scriptname_tablename instead of tablename

    like phpbb_users or wp_posts

  6. #6
    John Klyne's Avatar
    John Klyne is offline Community Advocate John Klyne is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    My House, New Jersey, USA
    Posts
    909

    Re: Use one SQL Database for Multiple Programs... :)

    Ahh I see, ..for scriptname, where would I derive what to input for such strings.
    My Private School!
    Visit PLEASE

  7. #7
    ChatIndia's Avatar
    ChatIndia is offline Community Advocate ChatIndia is on a distinguished road
    Join Date
    Sep 2009
    Location
    Exam Time. I won't tell you
    Posts
    1,320

    Re: Use one SQL Database for Multiple Programs... :)

    yeah it works cause vb4 uses only a single db for both its blog and forum. i was also wondering how to do that. thanks for bringing up this topic.
    Your appreciation is extremely Important. Click on the button at the bottom left corner of my post.

  8. #8
    John Klyne's Avatar
    John Klyne is offline Community Advocate John Klyne is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    My House, New Jersey, USA
    Posts
    909

    Re: Use one SQL Database for Multiple Programs... :)

    : )

    Thanks viggie and Alex...helps me a lot.
    Last edited by John Klyne; 09-30-2010 at 07:03 AM.
    My Private School!
    Visit PLEASE

  9. #9
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Use one SQL Database for Multiple Programs... :)

    Quote Originally Posted by John Klyne View Post
    Ahh I see, ..for scriptname, where would I derive what to input for such strings.
    What do you mean?

    If you mean what should you use a prefix, it really doesn't matter, but generally it's best to use something descriptive like wp_ for wordpress or vb_ for vBulletin

    ~Callum

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  10. #10
    John Klyne's Avatar
    John Klyne is offline Community Advocate John Klyne is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    My House, New Jersey, USA
    Posts
    909

    Re: Use one SQL Database for Multiple Programs... :)

    Understood, thank you all for your help.
    My Private School!
    Visit PLEASE

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. [PHP] Showing data with multiple lines from database
    By DeadBattery in forum Programming Help
    Replies: 3
    Last Post: 07-28-2008, 04:57 PM
  2. why am i not able to use other log programs?
    By preyank in forum Free Hosting
    Replies: 1
    Last Post: 11-06-2007, 08:28 PM
  3. Ad Programs?
    By Starshine in forum Off Topic
    Replies: 6
    Last Post: 08-18-2007, 07:27 PM
  4. programs
    By Colin in forum Off Topic
    Replies: 2
    Last Post: 03-03-2006, 06:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers