| 178 | |
| 179 | Blijkbaar verwacht zarafa een index die niet bestaat, handmatige de query aanpassen lost het probleem op. (soms moet dit met meerdere indexen) |
| 180 | {{{ |
| 181 | |
| 182 | [Syn-3] root@linux.ours.local ~# mysql -p`cat /etc/my.passwd` zarafa |
| 183 | Welcome to the MySQL monitor. Commands end with ; or \g. |
| 184 | Your MySQL connection id is 66 |
| 185 | Server version: 5.0.91 Source distribution |
| 186 | |
| 187 | Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. |
| 188 | |
| 189 | mysql> ALTER TABLE outgoingqueue DROP PRIMARY KEY, ADD PRIMARY KEY (`hierarchy_id`,`flags`,`store_id`); |
| 190 | ERROR 1091 (42000): Can't DROP 'PRIMARY'; check that column/key exists |
| 191 | mysql> ALTER TABLE outgoingqueue ADD PRIMARY KEY (`hierarchy_id`,`flags`,`store_id`); |
| 192 | Query OK, 0 rows affected (0.09 sec) |
| 193 | Records: 0 Duplicates: 0 Warnings: 0 |
| 194 | |
| 195 | mysql> ALTER TABLE outgoingqueue DROP PRIMARY KEY, ADD PRIMARY KEY (`hierarchy_id`,`flags`,`store_id`); |
| 196 | Query OK, 0 rows affected (0.05 sec) |
| 197 | Records: 0 Duplicates: 0 Warnings: 0 |
| 198 | |
| 199 | mysql> |
| 200 | }}} |