Database errors "Warning PRIMARY and INDEX keys"

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Database errors "Warning PRIMARY and INDEX keys"
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
I woke up yesterday morning to a blank page on my index.php. I know it was working. So anyway after letting the host look at it they tell me I need a full restore. Most of my db tables have this error.

Problems with indexes of table `nuke_bbattachments`
Warning More than one INDEX key was created for column `attach_id`
Problems with indexes of table `nuke_downloads_categories`
Warning PRIMARY and INDEX keys should not both be set for column `cid`
Problems with indexes of table `nuke_downloads_modrequest`
Warning PRIMARY and INDEX keys should not both be set for column `requestid`
Problems with indexes of table `nuke_downloads_votedata`
Warning PRIMARY and INDEX keys should not both be set for column `ratingdbid`
Problems with indexes of table `nuke_encyclopedia`
Warning PRIMARY and INDEX keys should not both be set for column `eid`
Problems with indexes of table `nuke_encyclopedia_text`
Warning PRIMARY and INDEX keys should not both be set for column `tid`
Problems with indexes of table `nuke_faqanswer`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_faqcategories`
Warning PRIMARY and INDEX keys should not both be set for column `id_cat`
Problems with indexes of table `nuke_headlines`
Warning PRIMARY and INDEX keys should not both be set for column `hid`
Problems with indexes of table `nuke_journal`
Warning PRIMARY and INDEX keys should not both be set for column `jid`
Problems with indexes of table `nuke_journal_comments`
Warning PRIMARY and INDEX keys should not both be set for column `cid`
Problems with indexes of table `nuke_journal_stats`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_lastseen`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_links_categories`
Warning PRIMARY and INDEX keys should not both be set for column `cid`
Problems with indexes of table `nuke_links_editorials`
Warning PRIMARY and INDEX keys should not both be set for column `linkid`
Problems with indexes of table `nuke_links_links`
Warning PRIMARY and INDEX keys should not both be set for column `lid`
Problems with indexes of table `nuke_links_modrequest`
Warning PRIMARY and INDEX keys should not both be set for column `requestid`
Problems with indexes of table `nuke_links_newlink`
Warning PRIMARY and INDEX keys should not both be set for column `lid`
Problems with indexes of table `nuke_links_votedata`
Warning PRIMARY and INDEX keys should not both be set for column `ratingdbid`
Problems with indexes of table `nuke_message`
Warning PRIMARY and INDEX keys should not both be set for column `mid`
Problems with indexes of table `nuke_modules`
Warning PRIMARY and INDEX keys should not both be set for column `mid`
Problems with indexes of table `nuke_msanalysis_browsers`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_msanalysis_countries`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_msanalysis_domains`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_msanalysis_modules`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_msanalysis_online`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_msanalysis_os`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_msanalysis_referrals`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_msanalysis_scr`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_msanalysis_search`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_msanalysis_users`
Warning PRIMARY and INDEX keys should not both be set for column `uid`
Problems with indexes of table `nuke_ns_downloads_field`
Warning PRIMARY and INDEX keys should not both be set for column `fid`
Problems with indexes of table `nuke_ns_downloads_nfeatured`
Warning PRIMARY and INDEX keys should not both be set for column `fdid`
Problems with indexes of table `nuke_ns_downloads_recom_dlstats`
Warning PRIMARY and INDEX keys should not both be set for column `rdid`
Problems with indexes of table `nuke_ns_downloads_recom_usrstats`
Warning PRIMARY and INDEX keys should not both be set for column `rduid`
Problems with indexes of table `nuke_ns_downloads_table_form`
Warning PRIMARY and INDEX keys should not both be set for column `tid`
Problems with indexes of table `nuke_ns_downloads_table_html`
Warning PRIMARY and INDEX keys should not both be set for column `thid`
Problems with indexes of table `nuke_ns_downloads_theme`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_ns_downloads_theme_mode`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_pages`
Warning PRIMARY and INDEX keys should not both be set for column `pid`
Problems with indexes of table `nuke_pages_categories`
Warning PRIMARY and INDEX keys should not both be set for column `cid`
Problems with indexes of table `nuke_poll_desc`
Warning PRIMARY and INDEX keys should not both be set for column `pollID`
Problems with indexes of table `nuke_pollcomments`
Warning PRIMARY and INDEX keys should not both be set for column `tid`
Problems with indexes of table `nuke_pollcomments_moderated`
Warning PRIMARY and INDEX keys should not both be set for column `tid`
Problems with indexes of table `nuke_popsettings`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_public_messages`
Warning PRIMARY and INDEX keys should not both be set for column `mid`
Problems with indexes of table `nuke_queue`
Warning PRIMARY and INDEX keys should not both be set for column `qid`
Problems with indexes of table `nuke_referer`
Warning PRIMARY and INDEX keys should not both be set for column `rid`
Problems with indexes of table `nuke_related`
Warning PRIMARY and INDEX keys should not both be set for column `rid`
Problems with indexes of table `nuke_reviews`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_reviews_add`
Warning PRIMARY and INDEX keys should not both be set for column `id`
Problems with indexes of table `nuke_reviews_comments`
Warning PRIMARY and INDEX keys should not both be set for column `cid`
Problems with indexes of table `nuke_reviews_comments_moderated`
Warning PRIMARY and INDEX keys should not both be set for column `cid`
Problems with indexes of table `nuke_stories`
Warning PRIMARY and INDEX keys should not both be set for column `sid`
Problems with indexes of table `nuke_stories_cat`
Warning PRIMARY and INDEX keys should not both be set for column `catid`
Problems with indexes of table `nuke_topics`
Warning PRIMARY and INDEX keys should not both be set for column `topicid`
Problems with indexes of table `nuke_users`
Warning PRIMARY and INDEX keys should not both be set for column `user_id`


Anyone know how to fix this?


Back to top Reply with quote
#2   re: Database errors "Warning PRIMARY and INDEX keys&quo
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
just gonna let them restore it. This is what I need to know now. How do I properly make a backup of my nuke database from phpmyadmin?



Back to top Reply with quote
#3   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Click export across the top and then select all tables.

The Warning PRIMARY and INDEX keys should not both be set for column just means that you have them set as primary and index. Just delete one of them to get rid of that error.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#4   re: Database errors "Warning PRIMARY and INDEX keys&quo
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
I ended up doing that telli but some indexes were missing such as nuke_main and I didn't think those could be repaired easily so I had no choice but to restore. For a quick fix anyway. Also, I know how to export tables but I just want to make sure those default settings were ok.



Back to top Reply with quote
#5   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
nuke_main shouldnt require an index it just stores the main_module name. (Or the mmodule you selected in "Home")




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   re: Database errors "Warning PRIMARY and INDEX keys&quo
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
Well there goes 19.95 for a database restore. I wanna do all I can to prevent this from happening again with my own sql backups everyweek.

Also my final solution for this problem is a developing enviroment for my site. Basically just a copy on another server for me to test mods on.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum