vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Forum DataBase Upload Error (https://vborg.vbsupport.ru/showthread.php?t=263233)

K!nG 05-06-2011 02:34 AM

Forum DataBase Upload Error
 
Hi Everyone.

Recently someone delete my forum directory from cpanel and i requested a backup from hosting company now i had a latest backup of database that i needed to upload so when i try doing that. I am getting this error.

If someone can help me will b appreciated...

Thanks


Error
SQL query:

--
-- Dumping data for table `action`
--
INSERT INTO `action` ( `actionid` , `routeid` , `packageid` , `controller` , `useraction` , `classaction` )
VALUES ( 1, 1, 3, 'Content', 'view', 'View' ) , ( 2, 1, 3, 'Content', 'edit', 'EditPage' ) , ( 3, 1, 3, 'Content', 'editcontent', 'EditContent' ) , ( 4, 1, 3, 'Content', 'configcontent', 'ConfigContent' ) , ( 5, 1, 3, 'Content', 'addcontent', 'AddNode' ) , ( 6, 1, 3, 'Content', 'deletecontent', 'DeleteNode' ) , ( 7, 1, 3, 'Content', 'publish', 'PublishNode' ) , ( 8, 1, 3, 'Content', 'options', 'NodeOptions' ) , ( 9, 1, 3, 'Widget', 'viewwidget', 'View' ) , ( 10, 1, 3, 'Widget', 'configwidget', 'Config' ) , ( 11, 1, 3, 'Widget', 'configeditor', 'ConfigEditor' ) , ( 12, 1, 3, 'Widget', 'editwidget', 'Edit' ) , ( 13, 2, 3, 'BaseWidget', 'config', 'Config' ) , ( 14, 2, 3, 'BaseWidget', 'edit', 'Edit' ) , ( 15, 3, 3, 'Editor', 'switch', 'SwitchMode' ) , ( 16, 3, 3, 'Editor', 'tableoverlay', 'TableOverlay' ) , ( 17, 4, 3, 'List', 'list', 'List' ) , ( 18, 1, 3, 'Content', 'rate', 'Rate' ) ;


MySQL said:

#1062 - Duplicate entry '1' for key 1

Lynne 05-06-2011 02:44 AM

You need to create a new database and upload the backup into it, not upload the backup over the existing one.

K!nG 05-06-2011 02:46 AM

should i give it any name and do i have to change the database name in php aswel ? once i upload this one should i delete old one ?

Lynne 05-06-2011 02:50 AM

Give it any name your want, but you will need to put the new name in your config.php file. Also, make sure to grant the mysql user all permissions to the database.

K!nG 05-06-2011 03:01 AM

Thanks Lynne... Let me give it a shot n see if that works.

--------------- Added [DATE]1304655099[/DATE] at [TIME]1304655099[/TIME] ---------------

Hi Lynne,

I have created new database uploaded it .... & made changes in php aswel but now when i go to forum.. this is wat i get on page.

Database error
The database has encountered a problem.
Please try the following:
Load the page again by clicking the Refresh button in your web browser.
Open the www.XXXXXX.com home page, then try to open another page.
Click the Back button to try another link.
The www.XXXXXX.com forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.

--------------- Added [DATE]1304658466[/DATE] at [TIME]1304658466[/TIME] ---------------

I figured out wat was wrong but still my forum is all scrambled and messy it doesn't show any images :( any clue ?? anyone ??


All times are GMT. The time now is 11:42 AM.

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.00994 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete