Errno 121, duplicate key on write or update?

This is likely because you have named at least one constraint with the same identifier as a column: /* You already have a column named `restaurant` in this table, but are naming the FK CONSTRAINT `restaurant` also… */ CONSTRAINT `restaurant` FOREIGN KEY (`restaurant` ) REFERENCES `mydb`.`restaurants` (`id` ) ON DELETE NO ACTION ON UPDATE NO … Read more

How to copy table between two models in Mysql workbench?

If you just want to do a single table through the MySQL Workbench. In MySQL Workbench: Connect to a MySQL Server Expand a Database Right Click on a table Select Copy To Clipboard Select Create Statement A create statement for the table will be copied to your clipboard similar to the below: CREATE TABLE `cache` … Read more

Creating UNIQUE constraint on multiple columns in MySQL Workbench EER diagram

In the Alter Table dialog of MySQL Workbench: Go to Indexes tab. Double-click on a blank row to create a new index. Choose ‘UNIQUE’ as the index type. Check the columns that you want to be unique together. There’s some discussion as to whether this is weird, since an index is not the same as … Read more

results grid not showing on mysql workbench 6.3.9 for macOS sierra

Good News! 😃 Apparently this is a widespread bug on macOS High Sierra that was fixed in version 6.3.10 that was released Nov. 15th 2017. They fixed it as described in the release notes: https://dev.mysql.com/doc/relnotes/workbench/en/wb-news-6-3-10.html Executing a query in MySQL Workbench on a host running macOS High Sierra failed to load the result grid completely, … Read more

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