| Author |
Message |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: _bbsearch_wordlist indexes error on upgrade Posted: Wed Feb 06, 2008 11:17 pm |
|
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 |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: _bbsearch_wordlist alter error on install Posted: Wed Feb 06, 2008 11:34 pm |
|
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 |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: _bbsearch_wordlist alter error on install Posted: Wed Feb 06, 2008 11:42 pm |
|
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 |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: _bbsearch_wordlist alter error on install Posted: Thu Feb 07, 2008 12:02 am |
|
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 |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: _bbsearch_wordlist alter error on install Posted: Thu Feb 07, 2008 12:02 am |
|
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 |
|
 |
rlgura


Joined: Mar 27, 2006 Posts: 1148 Location: Cleveland, OH USA
|
Post subject: Re: _bbsearch_wordlist alter error on install Posted: Thu Feb 07, 2008 12:41 am |
|
Nobody posts on your forums anyway!
_________________ 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 |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: _bbsearch_wordlist alter error on install Posted: Thu Feb 07, 2008 12:44 am |
|
You are just envious, that you can't speak Estonian.
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 |
|
 |
layingback


Joined: Apr 19, 2004 Posts: 953
|
Post subject: Re: _bbsearch_wordlist alter error on install Posted: Thu Feb 07, 2008 1:33 am |
|
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 |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: _bbsearch_wordlist alter error on install Posted: Thu Feb 07, 2008 2:03 am |
|
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 |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: _bbsearch_wordlist indexes error on upgrade Posted: Thu Feb 07, 2008 8:17 am |
|
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 |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3678 Location: Melbourne, AU
|
Post subject: Re: _bbsearch_wordlist indexes error on upgrade Posted: Thu Feb 07, 2008 10:32 am |
|
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 |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3678 Location: Melbourne, AU
|
Post subject: Re: _bbsearch_wordlist indexes error on upgrade Posted: Thu Feb 07, 2008 12:08 pm |
|
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 |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: _bbsearch_wordlist indexes error on upgrade Posted: Thu Feb 07, 2008 3:42 pm |
|
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 |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: _bbsearch_wordlist indexes error on upgrade Posted: Thu Feb 07, 2008 3:54 pm |
|
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 |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: _bbsearch_wordlist indexes error on upgrade Posted: Thu Feb 07, 2008 4:03 pm |
|
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 |
|
 |