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.
Joined: Oct 30, 2002 Posts: 1043 Location: RedNeck Land (known as Kentucky)
Posted:
Thu Oct 11, 2007 10:46 pm
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.
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?
Joined: Dec 19, 2004 Posts: 2879 Location: Germany:Moderator German NukeSentinel Support
Posted:
Sat Nov 24, 2007 7:31 am
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 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