You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 87 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Running 2 php-nuke sites on 1 mySQL database [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
TheManFran
Nuke Cadet
Nuke Cadet


Joined: Jun 29, 2005
Posts: 2


PostPosted: Tue Jun 28, 2005 8:58 pm Reply with quoteBack to top

I have the same problem. I paid for version phpnuke 7.8 and its not working in there. My phpnuke 7.7 version worked on my local box (Windows IIS) so I uploaded 7.8 to my service provider and now prefrences won't save.
Find all posts by TheManFranView user's profileSend private message
TheManFran
Nuke Cadet
Nuke Cadet


Joined: Jun 29, 2005
Posts: 2


PostPosted: Wed Jun 29, 2005 4:13 am Reply with quoteBack to top

Found the problem.

When I installed PHPNuke i took the nuke.sql file and replace all occurences of nuke with my new prefix. I set the prefix in the config.php file and thought all is fine, but it was not. I now created a database with the standard nuke prefix and my site is fine.

Either some nuke got replaced with my prefix that should not have been or that must be a bug in PHPNuke.
Find all posts by TheManFranView user's profileSend private message
--Nemesis--
Corporal
Corporal


Joined: Jun 17, 2005
Posts: 63


PostPosted: Wed Jun 29, 2005 6:13 am Reply with quoteBack to top

ya well my first site is already using the default prefix of nuke_ in the mySQL database..so cant make another one cause it will say its already there.

_________________
Image
Find all posts by --Nemesis--View user's profileSend private messageSend e-mailAIM Address
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Wed Jun 29, 2005 9:42 am Reply with quoteBack to top

This simple script will give you the SQL commands to rename your tables. Run in the root where your config.php is. Just take the output of this script and run in phpMyAdmin

rename.php
Code:
<?php

require_once("config.php");

mysql_connect($dbhost, $dbuname, $dbpass, $dbname);
$result = mysql_list_tables($dbname);
while ($row = @mysql_fetch_row($result) or die(mysql_error())) {
    $table = $row[0];
    if (eregi($prefix, $table)) {
        echo "ALTER TABLE $row[0] RENAME ".eregi_replace("nuke_","","NEWPREFIX_".$table."").";<br>";
    }

}

?>


Replace NEWPREFIX as appropriate

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.192 Seconds - 183 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::