Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3
Author Message
neophite
Regular
Regular



Joined: Sep 13, 2003
Posts: 56
Location: Virginia

PostPosted: Fri Jul 30, 2004 12:33 pm Reply with quote

Downloaded Raven's 7.3 customized distro and then installed 2 websites on my LOCALHOST server (Using Apachie2Triad software package) on windows XP

Here is the config.php info for each website:
Site1

dbname="nuke"
dbprefix="nuke"
dbuser="nuke"

Site2

dbname="nuke"
dbprefix="nuke1"
dbuser="nuke"

So I have established for each website to use database named "nuke"
data tables for website #1= "nuke"
data tables for website #2="nuke1"
user prefix="nuke" so that it can be shared between both websites.

I can't figure out how to get the database tables "nuke" for website #1 and database tables "nuke1" for website #2 in the same database.

The install script from website #1 created the db and wrote the tables with out an problem. From website #2 the install script replaced website #1 data.

Can this be done with the installer or am I going about this the wrong way?

Thanks in advance for any assistance..

_________________
Warmest Regards,
Bob Miedema
 
View user's profile Send private message Visit poster's website
Tao_Man
Involved
Involved



Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Fri Jul 30, 2004 5:25 pm Reply with quote

you probley just have to do a search and replace on the sql install file and replace nuke_ with nuke1_

_________________
------------------------------------------
To strive, to seek, to find, but not to yield!
I don't know Kara-te but I do know cra-zy, and I WILL use it! 
View user's profile Send private message Visit poster's website
neophite







PostPosted: Fri Jul 30, 2004 8:40 pm Reply with quote

Tao_Man wrote:
you probley just have to do a search and replace on the sql install file and replace nuke_ with nuke1_


I don't want to change them, I want both prefixes in the same database.

On my hosted website, If I use the CPanel, I am able to go into MySQL and import one database into another....hmmmmm

I think that I may do some MySQL document research on my localhost system and see how to access such a control feature in MySQL to accomplish the same thing... Idea

I sure wish there was an easier way, but anyway I think I may have come up with an approach to a solution.

Thanks for your feedback, it got me to do some thinking (which is a challenge for this "old" grey matter) Wink
 
Tao_Man







PostPosted: Fri Jul 30, 2004 10:20 pm Reply with quote

What I ment was to create the script once with the prefix set as nuke that edit the sql file and run it again with the prefix nuke1.

How are you creating the tables in your database?
 
neophite







PostPosted: Sat Jul 31, 2004 6:29 am Reply with quote

Tao_Man wrote:
What I ment was to create the script once with the prefix set as nuke that edit the sql file and run it again with the prefix nuke1.

How are you creating the tables in your database?


I have been using the INSTALL that came in Raven's 7.3 Customized package..
I log in using my admin account from each website, at a time using the install script for the relavent website.

Each website config.php is setup up with to call the same database, using their pre-defined data table prefix nuke_ & nuke1_ respectfully.

There is NO option to add the tables to a database, ONLY create or REPLACE the database tables.

I need the install script modified to have the option to also ADD the data tables to a given database, this would really make the process easy for me (and others I would think).

Can this be done?

I hope that I have explained myself clearer Embarassed
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©