PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
neophite
Regular
Regular


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

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

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..
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 Back to top

you probley just have to do a search and replace on the sql install file and replace nuke_ with nuke1_
View user's profile Send private message Visit poster's website
neophite
Regular
Regular


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

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

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
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 10:20 pm Reply with quote Back to top

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?
View user's profile Send private message Visit poster's website
neophite
Regular
Regular


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

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

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
View user's profile Send private message Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum