View Full Version : Database Error Installing mod
A Dead Puppie
05-13-2014, 11:38 PM
I'm trying to install a mod, (Point Market 3) and i keep getting a database error with the following:
Database error in vBulletin 4.2.2:
Invalid SQL:
ALTER TABLE user ADD market_points DECIMAL( 18, 3 ) NOT NULL DEFAULT '1.000';
MySQL Error : Duplicate column name 'market_points'
Error Number : 1060
Request Date : Tuesday, May 13th 2014 @ 08:35:46 PM
Error Date : Tuesday, May 13th 2014 @ 08:35:46 PM
Script : http://machinimaevolved.net/admincp/plugin.php?do=productimport
Referrer : http://machinimaevolved.net/admincp/plugin.php?do=productadd
IP Address : 24.211.210.104
Username : dudemanpeace
Classname : vB_Database
MySQL Version : 5.5.36-cll
I've tried removing the tables and it keeps giving me this
tbworld
05-14-2014, 12:10 AM
This should be posted in the modification's thread, as it pertains to the modification. This is not a general programming question. Thank you. :)
A Dead Puppie
05-14-2014, 12:14 AM
I'm sorry, there just hasn't been a post since February and none of the authors have been online for quite some time.
blind-eddie
05-14-2014, 12:46 AM
Where can I find this plugin, here on the org?
tbworld
05-14-2014, 12:58 AM
Here you go! :)
https://vborg.vbsupport.ru/showthread.php?t=232676
A Dead Puppie
05-14-2014, 12:58 AM
Edit - tbworld beat me to it xD
tbworld
05-14-2014, 01:00 AM
Edit - tbworld beat me to it xD
Then it's a first. :)
--------------- Added 13 May 2014 at 19:04 ---------------
I'm trying to install a mod, (Point Market 3) and i keep getting a database error with the following:
Have you uninstalled this, then reinstalled? If the MySql is not coded correctly, reinstalling the MOD could give you a duplicated column error. This can also happen on multiple views across two or more tables with the same name -- although I realize this information is unhelpful.
A Dead Puppie
05-14-2014, 01:14 AM
I can't un-uninstall, since I'm receiving the error as the mod is being installed. I've removed the tables and even re-uploaded the files and then tried to re-install, to the same error.
tbworld
05-14-2014, 01:15 AM
I would not uninstall... That is usually a very bad idea -- unless you know what you are doing. Show us the error when you try to reinstall. Reminder: You should always have a complete backup of your board when trying a new modification.
A Dead Puppie
05-14-2014, 01:17 AM
Ahk. Wonderful :/
blind-eddie
05-14-2014, 02:09 AM
>>>>>>>>>>>>BACKUP YOUR DATABASE BEFORE YOU PROCEED<<<<<<<<<<<<
Go into your host account, phpMyAdmin, click on your sites database, find user table... click it, on the right, look for column name 'market_points', remove them.... now try to reinstall.
You may run into this issue again for other tables that were created in one of your installs of this plugin.
A Dead Puppie
05-14-2014, 02:38 AM
As i posted above, i've already tried that multiple times. I've cleared every table with the prefix market_ and tried to install and the same issue pops up
tbworld
05-14-2014, 02:52 AM
I'm trying to install a mod, (Point Market 3) and i keep getting a database error with the following:
[code]Database error in vBulletin 4.2.2:
Invalid SQL:
ALTER TABLE user ADD market_points DECIMAL( 18, 3 ) NOT NULL DEFAULT '1.000';
Have you looked at the table clearly marked above? That will not have a 'market_ 'prefix on it. That is an existing vBulletin table.
table: user
column: market_points
vBNinja
05-14-2014, 02:57 AM
the issue is not a duplicate table, its a duplicate column in the user table
go to phpmyadmin and run this query:
ALTER TABLE user DROP market_points;
A Dead Puppie
05-14-2014, 03:01 AM
Wooh! it worked! Thank you guys so much! :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.