Problem upgrading 0.8-beta5 to 0.8-beta6

Having trouble installing serendipity?
Post Reply
Psy

Problem upgrading 0.8-beta5 to 0.8-beta6

Post by Psy »

When executing the sql update script it gave me an error, now I tried to apply it manually with phpmyadmin:

@ALTER TABLE {PREFIX}suppress DROP INDEX url_idx;
CREATE INDEX url_idx on {PREFIX}suppress (host, ip);

Code: Select all

Error
SQL-query:
@ALTER TABLE {PREFIX}suppress DROP INDEX url_idx

MySQL said:
#1064 - You have an error in your SQL syntax near '@ALTER TABLE {PREFIX}suppress DROP INDEX url_idx' at line 1 
MfG. Psy
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem upgrading 0.8-beta5 to 0.8-beta6

Post by garvinhicking »

Which error did the upgrade script give you?

If you execute the SQL manually you need to

1. Remove the '@' from Alter table statement
2. Replace {PREFIX} with the dbPrefix you chose. Usually that is 'serendipity_'.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

It gave me a permission error.

Applying it manually with phpmyadmin gave me a permission error, too:
#1044 - Access denied for user: 'xxx@localhost' to database 'xxx'

The rights were set up correctly, user has rights to "SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER"

However, performing it this way worked:
ALTER TABLE serendipity_suppress DROP INDEX url_idx;

ALTER TABLE `serendipity_suppress` ADD INDEX `url_idx` ( `host` , `ip` );

MySQL version used: MySQL 3.23.58
phpmyadmin version used: phpMyAdmin 2.6.1-pl3

And thanks for your help

MfG. Psy
Post Reply