Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
  #1  
Old 01-16-2016, 11:35 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Import

Anybody understand DB imports?
I have tried numerous times but always get the same response. .

Code:
SQL query:



--
-- Dumping data for table `adminhelp`
--

INSERT INTO `adminhelp` (`adminhelpid`, `script`, `action`, `optionname`, `displayorder`, `volatile`, `product`) VALUES
(1530, 'accessmask', '', '', 1, 1, 'vbulletin'),
(1531, 'accessmask', 'edit', '', 1, 1, 'vbulletin'),
(1532, 'accessmask', 'modify', '', 1, 1, 'vbulletin'),
(1533, 'accessmask', 'resetall', '', 1, 1, 'vbulletin'),
(1534, 'admininfraction', '', '', 1, 1, 'vbulletin'),
(1535, 'admininfraction', 'editbangroup', 'amount', 10, 1, 'vbulletin'),
(1536, 'admininfraction', 'editbangroup', 'method', 20, 1, 'vbulletin'),
(1537, 'admininfraction', 'editbangroup', 'usergroupid', 30, 1, 'vbulletin'),
(1538, 'admininfraction', 'editbangroup', 'banusergroupid', 50, 1, 'vbulletin'),
(1539, 'admininfraction', 'editbangroup', 'period', 60, 1, 'vbulletin'),
(1540, 'admininfraction', 'editgroup', '', 1, 1, 'vbulletin'),
(1541, 'admininfraction', 'editgroup', 'override', 1, 1, 'vbulletin'),
(1542, 'admininfraction', 'editgroup', 'pointlevel', [...]

MySQL said: Documentation
#1062 - Duplicate entry 'accessmask--' for key 'phraseunique'
Any clues to what might be the issue? . .
I have no idea what to do about this. . .

Thanks. .
Reply With Quote
  #2  
Old 01-17-2016, 02:07 AM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DemOnstar View Post
Anybody understand DB imports?

MySQL said: Documentation
#1062 - Duplicate entry 'accessmask--' for key 'phraseunique'

Any clues to what might be the issue? . .
I have no idea what to do about this. . .

Thanks. .
The answer is right in front of you. You have a duplicate entry.

Try
Code:
select * from adminhelp where script like 'accessmask'
If there are two rows that are identical, delete one of the rows.

Code:
delete from adminhelp where adminhelpid=foo
where foo= one of the duplicate entries. It's always safest to do a comple mysqldump of the database before doing any manual queries. One type and you're screwed. :erm:

EDIT: I missed the part in the title where you said "database import", you will need to check your SQL soure for that table to find the duplicate entry and delete it.
Reply With Quote
Благодарность от:
MarkFL
  #3  
Old 01-17-2016, 03:26 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers Mr Replicant.

I will do as you suggest as soon as I get my PC back form the repair chap. It died yesterday.
If I can't figure out the DB issue, is there anyway to extract only the additional.css information from a table in the DB? And possibly thread information?

Thanks. . .I wouldn't know which table they are in. . .
Reply With Quote
  #4  
Old 01-17-2016, 05:34 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya, that stuff is accessible. The additional.css is easy, the other stuff, not so much. If the database isn't very big, I'd be willing to load it up on my test site and see if I can correct the error, time permitting of course.
Reply With Quote
Благодарность от:
MarkFL
  #5  
Old 01-19-2016, 01:26 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers again Mr Replicant. I managed to do it using a variation of your first suggestion.
I created an empty DB with no tables in it then imported into that and all works well. . .

Thanks for your time and know how. . .
Reply With Quote
Благодарность от:
MarkFL
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03707 seconds
  • Memory Usage 2,205KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (3)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete