PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 10th, 2004, 11:49 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Posts: 204
adding a prefix to the mysql tables

I currently have PP and IPB integrated but using different databases. I’d lke to merge them into a single database to reduce the peak time load created from switching back and forth between databases to grab info from here or there.

I’d like to add a prefix PP_ to all photopost tables, then import then into my forum DB.

I guess my first question would be what SQL command can I run via phpmyadmin to add the prefix to the tables

Next questions is what would I need to change in the PP config to make sure everything works after the table name change?
Coastie is offline   Reply With Quote
Old October 10th, 2004, 01:01 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,658
There is no mass sql you could do to alter every table at one time. You need to modify each one after you take the dump before you upload it to IBp database. Anotherwards every instance of CREATE TABLE blahblah make it CREATE TABLE pp_blahblah Then import the tables and data into your ibp database.

You then only need to change the database access info in the photopost config for the photopost part to point to the ibp database and add the prefix in the config file as well.

If everything is working right then you can safely delete the photopost database and your left with one database with both products working in there
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 10th, 2004, 01:13 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Posts: 204
great, thanks chuck!
Coastie is offline   Reply With Quote
Old October 10th, 2004, 01:15 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,658
Placing the tables in another database is easy. I have done it several times. I started out with all the products in separate databases and then combined them all.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 10th, 2004, 04:34 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Posts: 204
Yep, that was pretty easy, took about 30 minutes to complete the move and update my code. Thanks for the tip.

Now the question is...How much overhead does it really save?
Coastie is offline   Reply With Quote
Old October 10th, 2004, 04:36 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,658
exactly how much I can not say for sure. depends on the database sizes number of tables mysql config etc etc
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a bunch of cats at a time with mysql query? Johnny Doomo Photopost Pro How Do I...? 2 August 29th, 2005 10:42 AM
Installing...question about database prefix hzsupnik Photopost Pro Installation & Upgrades 1 August 22nd, 2005 08:27 PM
How many Tables kevinrstruck General Discussion 3 October 19th, 2004 07:02 PM


All times are GMT -5. The time now is 10:05 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0