I ran into this problem at work today as well on my wamp environment… first it was errors about duplicate indexes, then it was duplicate columns, then back to indexes… so once i compiled a list of all the errors… i wrote this in mysql:
ALTER TABLE exp_sessions DROP INDEX last_activity_idx;
ALTER TABLE exp_members DROP salt;
ALTER TABLE exp_members DROP remember_me;
ALTER TABLE exp_files DROP caption;
ALTER TABLE exp_comments DROP INDEX comment_date_idx;
ALTER TABLE exp_template_groups DROP INDEX group_name_idx;
ALTER TABLE exp_template_groups DROP INDEX group_order_idx;
I ended up with an error with Structure (v3.0.3):
A Database Error Occurred
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT entry_id FROM exp_structure_listings WHERE site_id =
Filename: C:\wamp\www\control\codeigniter\system\database\DB_driver.php
Line Number: 330
At this point, I had to edit sql.structure.php and replaced $this->site_id with 1
then the errors about duplicate indexes and columns stopped and i ended up with:
Fatal error: Call to undefined method stdClass::all_userdata() in C:\wamp\www\control\codeigniter\system\libraries\Profiler.php on line 507
After a refresh, that error was gone and i was on 2.2.0