MySql Workbench installer requires Visual C++ 2015 Redistributable Package to be installed, but it already is installed

It turns out that VC++ 2017 redistributables are the culprit because they delete the registry keys used by VC++ 2015 redistributables. See this Microsoft Developer Community page for solution (TL;DR; you have to repair VC++ 2017 redistributables as this will restore missing 2015 registry keys). This process is as Eric describes: The steps are essentially: … Read more

Error Code: 1055 incompatible with sql_mode=only_full_group_by

In 5.7 the sqlmode is set by default to: ONLY_FULL_GROUP_BY,NO_AUTO_CREATE_USER,STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION To remove the clause ONLY_FULL_GROUP_BY you can do this: SET sql_mode=(SELECT REPLACE(@@sql_mode,’ONLY_FULL_GROUP_BY’,”)); This supposed you need to make that GROUP BY with non aggregated columns. Regards

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

Exporting only table structure using mysqlworkbench [closed]

To get an individual table’s creation script: just right click on the table name and click Copy to Clipboard > Create Statement. To enable the File: Forward Engineering SQL_CREATE Script.. option and to get the creation script for your entire database: Database > Reverse Engineer (Ctrl+R) Go through the steps to create the EER Diagram … 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