PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

PostPosted: Thu Oct 11, 2007 7:14 pm Reply with quote Back to top

I am trying to update the ip to country data. I uploaded the html/import file on two sites, I was able to import all data on one site, on the other, none of the data is imported. What would cause this? Sentinel is updated to the latest version.
View user's profile Send private message
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1043
Location: RedNeck Land (known as Kentucky)

PostPosted: Thu Oct 11, 2007 10:46 pm Reply with quote Back to top

That happens from time to time and I have found that the best route is to delete the table and then recreate it. Below is a sql query that will do just that in phpMyAdmin which you should have access to through your sites hosting control panel. If you don't have access to run the query let me know and I'll create a short php file that will do it for you.

Code:
DROP TABLE IF EXISTS `nuke_nsnst_ip2country`;
CREATE TABLE IF NOT EXISTS `nuke_nsnst_ip2country` (
  `ip_lo` int(10) unsigned NOT NULL default '0',
  `ip_hi` int(10) unsigned NOT NULL default '0',
  `date` int(20) NOT NULL default '0',
  `c2c` char(2) NOT NULL default '',
  PRIMARY KEY  (`ip_lo`,`ip_hi`),
  KEY `c2c` (`c2c`),
  KEY `date` (`date`)
) TYPE=MyISAM;


This query assumes your sites prefix is nuke and not something else. If it is different then change the two `nuke_ to `WHATEVERITIS_. Once the table is recreated you should be able to import that data normally thru NukeSentinel(tm)s admin panel.
View user's profile Send private message Send e-mail Visit poster's website
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

PostPosted: Fri Oct 12, 2007 3:03 pm Reply with quote Back to top

That seems to have fixed it. Thanks.
View user's profile Send private message
redhairz
Worker
Worker


Joined: Nov 17, 2006
Posts: 222

PostPosted: Fri Nov 23, 2007 11:27 am Reply with quote Back to top

BobMarion wrote:
That happens from time to time and I have found that the best route is to delete the table and then recreate it. Below is a sql query that will do just that in phpMyAdmin which you should have access to through your sites hosting control panel. If you don't have access to run the query let me know and I'll create a short php file that will do it for you.

Code:
DROP TABLE IF EXISTS `nuke_nsnst_ip2country`;
CREATE TABLE IF NOT EXISTS `nuke_nsnst_ip2country` (
  `ip_lo` int(10) unsigned NOT NULL default '0',
  `ip_hi` int(10) unsigned NOT NULL default '0',
  `date` int(20) NOT NULL default '0',
  `c2c` char(2) NOT NULL default '',
  PRIMARY KEY  (`ip_lo`,`ip_hi`),
  KEY `c2c` (`c2c`),
  KEY `date` (`date`)
) TYPE=MyISAM;


This query assumes your sites prefix is nuke and not something else. If it is different then change the two `nuke_ to `WHATEVERITIS_. Once the table is recreated you should be able to import that data normally thru NukeSentinel(tm)s admin panel.


Thanks can this thread be place under sticky i am sure many will find this handy?
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2879
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sat Nov 24, 2007 7:31 am Reply with quote Back to top

I use only PhpMyAdmin and click there usally empty table which means truncate table if something isn´t okay with the entries in nuke_nsnst_ip2country table and afterthat I start again with IP2Country.
SQL query:
Code:
 
TRUNCATE TABLE `nuke_nsnst_ip2country`


To delete the table I would also use PHPMyAdmin.
Its a simple procedure.
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 8625
Location: Arizona

PostPosted: Sun Nov 25, 2007 10:59 am Reply with quote Back to top

Ok, I've enhanced the title slightly and made this a Sticky.
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-2010 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