vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Error when upgrading vb 3.8 (https://vborg.vbsupport.ru/showthread.php?t=321644)

chikuru 01-29-2016 03:33 PM

Error when upgrading vb 3.8
 
http://www.******.org/vB/install/upg...0b6.php?step=2


Code:

Database error in vBulletin 3.8.7:

Invalid SQL:
ALTER TABLE attachment ADD INDEX userid (userid);

MySQL Error  : Duplicate key name 'userid'
Error Number  : 1061
Request Date  : Friday, January 29th 2016 @ 05:31:00 PM
Error Date    : Friday, January 29th 2016 @ 05:31:00 PM
Script        : http://www.*******.org/vB/install/upgrade_300b6.php?step=2
Referrer      :
IP Address    : ***.***.***.***
Username      :
Classname    : vB_Database
MySQL Version : 5.5.47-cll

I tried droping userid and still geting same error

Dave 01-29-2016 03:50 PM

Have you tried dropping the index called userid? An index and column are 2 different things.

chikuru 01-29-2016 03:53 PM

Quote:

Originally Posted by Dave (Post 2563787)
Have you tried dropping the index called userid? An index and column are 2 different things.

Whats the query of it?
Thanks Dave!

Dave 01-29-2016 04:03 PM

PHP Code:

ALTER TABLE attachment DROP INDEX userid

If you dropped the column userid, you may face some problems though. The userid column is a mandatory column for the attachment table.

chikuru 01-29-2016 04:08 PM

After running the query, im now getting this:

Code:

Database error in vBulletin 3.8.7:

Invalid SQL:
ALTER TABLE attachment ADD INDEX userid (userid);

MySQL Error  : Duplicate key name 'userid'
Error Number  : 1061
Request Date  : Friday, January 29th 2016 @ 06:07:40 PM
Error Date    : Friday, January 29th 2016 @ 06:07:40 PM
Script        : http://www.*********.org/vB/install/upgrade_300b6.php?step=2
Referrer      :
IP Address    :
Username      :
Classname    : vB_Database
MySQL Version : 5.5.47-cll


Paul M 01-31-2016 02:41 PM

What are you upgrading from and to ? - because something is seriously wrong to be running (or trying to run) upgrade_300b6.php?step=2 on a 3.8.7 database.


All times are GMT. The time now is 04:03 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.01518 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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