Delete statement in SQL is very slow

Things that can cause a delete to be slow: deleting a lot of records many indexes missing indexes on foreign keys in child tables. (thank you to @CesarAlvaradoDiaz for mentioning this in the comments) deadlocks and blocking triggers cascade delete (those ten parent records you are deleting could mean millions of child records getting deleted) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)