_bbsearch_wordlist indexes error on upgrade
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexInstallation Issues
Author Message
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: _bbsearch_wordlist indexes error on upgrade
Posted: Wed Feb 06, 2008 11:17 pm
Reply with quote

On /install.php
While executing query "ALTER TABLE cms_bbsearch_wordlist CHANGE word_id word_id INT UNSIGNED NOT NULL AUTO_INCREMENT NOT NULL DEFAULT NULL"

the following error occured: Incorrect table definition; there can be only one auto column and it must be defined as a key

In: /home/xxx/public_html/includes/classes/installer.php on line: 115


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: _bbsearch_wordlist alter error on install
Posted: Wed Feb 06, 2008 11:34 pm
Reply with quote

I tried to upgrade from 9.1.2.1 btw.

Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: _bbsearch_wordlist alter error on install
Posted: Wed Feb 06, 2008 11:42 pm
Reply with quote

Mhm, maybe it's because most of the words have id 0 in my database. Maybe I have done something wrong in past.

Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: _bbsearch_wordlist alter error on install
Posted: Thu Feb 07, 2008 12:02 am
Reply with quote

Well, I got it installed by dropping the modified database failed install made.

Then reuploading the backup.

Then ran this code:
DELETE FROM cms_bbsearch_wordlist where word_id = 0

Then made new PRIMARY key from word_id

Thats all! All these steps were required btw.


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: _bbsearch_wordlist alter error on install
Posted: Thu Feb 07, 2008 12:02 am
Reply with quote

Well, only problem is that I won't have a lot of results from forum search now.

Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
rlgura
1000+ Posts Club


Joined: Mar 27, 2006
Posts: 1148
Location: Cleveland, OH USA

PostPost subject: Re: _bbsearch_wordlist alter error on install
Posted: Thu Feb 07, 2008 12:41 am
Reply with quote

Nobody posts on your forums anyway! Laughing
_________________
Admin - Great Lakes Web Designs
Theme Designer - WebSite Guru Designs
Site Admin - Families with Food Allergies

rlgura's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.27-grsec/Apache 2.2.11/MySQL 5.0.67-community-log/PHP 5.2.8/DF 9.2.1
Back to top
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: _bbsearch_wordlist alter error on install
Posted: Thu Feb 07, 2008 12:44 am
Reply with quote

Twisted Evil
You are just envious, that you can't speak Estonian. Cool


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: _bbsearch_wordlist alter error on install
Posted: Thu Feb 07, 2008 1:33 am
Reply with quote

Have same problem on upgrade to 9.2.1. This is on (a copy of) an old db that started on PHP-Nuke and has been through CPG 8 and 9 - up to 9.0.6.1.

Code:
On .../install.php
While executing query "ALTER TABLE nuke_bbsearch_wordlist DROP INDEX word_id"

the following error occured: Incorrect table definition; there can be only one auto column and it must be defined as a key

In: ..../public_html/includes/classes/installer.php on line: 125

Guess I could try similar to Eestlane, but I have to keep all the search words ...

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: _bbsearch_wordlist alter error on install
Posted: Thu Feb 07, 2008 2:03 am
Reply with quote

That appears to be a slightly different issue - I would wait until investigated.

It may well be that MySQL4 is the issue.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: _bbsearch_wordlist indexes error on upgrade
Posted: Thu Feb 07, 2008 8:17 am
Reply with quote

ALTER TABLE cms_bbsearch_wordlist CHANGE word_id word_id INT UNSIGNED NOT NULL AUTO_INCREMENT NOT NULL DEFAULT NULL

Looks like a wrong query.


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: _bbsearch_wordlist indexes error on upgrade
Posted: Thu Feb 07, 2008 10:32 am
Reply with quote

Yes query is totally wrong but also there is one more thing. word_id is a AUTO_INCREMENT field and it has a PRIMARY or an UNIQUE key depends the history of his site. Both field and indexes does not allow to have duplicate values, but Eestlane got all of them 0 which make me think that field and/or indexes were heavily modified by something.

For layingback's issue there it shouldn't be any problem if the the field is AUTO_INCREMENT and the PRIMARY key exists and is UNIQUE (which it has to be). If the PRIMARY key doesn't exists then i can justify the error and tune up the order on how the queries are executed. Otherwise its something to do with MySQL 4.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: _bbsearch_wordlist indexes error on upgrade
Posted: Thu Feb 07, 2008 12:08 pm
Reply with quote

I've manually run few tests in mysql 4.1.22 and mysql 5.0.22 and they both returned the same results, its not a MySQL issue unless it does happen in 4.1.21 only (not even reported in bugs.mysql).

It seems that you (layingback) are missing the PRIMARY KEY which should be already there. Please run the following query and let us know:
Code:
SHOW INDEXES FROM nuke_bbsearch_wordlist

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: _bbsearch_wordlist indexes error on upgrade
Posted: Thu Feb 07, 2008 3:42 pm
Reply with quote

I think I'll need (to make) something similar to phpBB's Rebuild Search to rebuild my search values, as I had them messed up already before.

Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: _bbsearch_wordlist indexes error on upgrade
Posted: Thu Feb 07, 2008 3:54 pm
Reply with quote

It certainly did appear that you had a previous problem, complicated by the upgrade.

dragonflycms.org/Forum...=6612.html - it's old now, and needs to be adapted to DF, but then again, our forum db structure hasn't changed much either. Just ensure your basic table structures are correct to start with.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: _bbsearch_wordlist indexes error on upgrade
Posted: Thu Feb 07, 2008 4:03 pm
Reply with quote

Thanks, Phoenix, will try.

Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexInstallation Issues All times are GMT
Go to page 1, 2, 3  Next
Page 1 of 3


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 can download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.7025 seconds with 16 DB Queries in 0.0382 seconds
Memory Usage: 3.03 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy