Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10327

Use "ALTER TABLE ... ADD INDEX" instead of "CREATE INDEX"

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.10-RC1
    • 3.0.9
    • Update system
    • None
    • Several Linux distributions

      Time and again I have problems with updating the board because on some servers the default DB user doesn't have the permission for the CREATE INDEX Command (don't know why).

      Current statement:
      CREATE INDEX att_ip ON phpbb_login_attempts(attempt_ip, attempt_time)

      Better:
      ALTER TABLE `phpbb_login_attempts` ADD INDEX `att_ip` ( `attempt_ip` , `attempt_time` )

            bantu Andreas Fischer [X] (Inactive)
            D@ve Dave Remmel [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: