-- MySql does not support `IF NOT EXISTS` syntax when creating indexes. -- You should review your database for any of the indexes described here that pre-exist, -- and omit them from what you apply to your MySql database. CREATE INDEX IDXalyswc028fb7oasa99jsk9fvc ON blc_order(account_id); CREATE INDEX IDXdwnptndx2usrj6jlvg2bejqe4 ON blc_order(root_account_id);