mysql-workbench

MariaDB Table Creation Error with Foreign Key

风流意气都作罢 提交于 2020-01-25 03:06:41
问题 There are many questions like that but I cannot find my answer among them. Can you tell me what is wrong here? The script was created by mysql Workbench but it does not except the answer -- MySQL Script generated by MySQL Workbench -- Mon Nov 26 14:14:46 2018 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL

MySQL yyyy-mm-ddThh:mm:ss.sssZ to yyyy-mm-dd hh:mm:ss [duplicate]

不问归期 提交于 2020-01-24 10:44:45
问题 This question already has an answer here : mysql YYYY-MM-DDThh:mm:ss (1 answer) Closed 3 years ago . I want to upload my csv file that contains yyyy-mm-ddThh:mm:ss.sssZ data. When I set DATETIME type in MySQL, I got error code 1292. MySQL How can I upload yyyy-mm-ddThh:mm:ss.sssZ type successfully? 回答1: First you need to convert your string dates into a valid date time format ( yyyy-mm-dd hh:mm:ss ). With the help of STR_TO_DATE() and DATE_FORMAT() functions you can convert those date strings

Problem Installing mysql-workbench on ubuntu 19.04

和自甴很熟 提交于 2020-01-23 06:14:55
问题 It says it is not available in any source. Tried using the debian provided by oracle. It says libssl versions are incompatible. Any help in this regard. 回答1: Now, mysql workbench is available for ubuntu 19.04 . You can manually install after downloading the file. Step 1: Direct download link- https://dev.mysql.com/downloads/file/?id=488567 OR Visit here select your OS then download as per OS version https://dev.mysql.com/downloads/workbench/ Step 2: sudo apt install file_path_of_downloaded

Problem Installing mysql-workbench on ubuntu 19.04

…衆ロ難τιáo~ 提交于 2020-01-23 06:14:42
问题 It says it is not available in any source. Tried using the debian provided by oracle. It says libssl versions are incompatible. Any help in this regard. 回答1: Now, mysql workbench is available for ubuntu 19.04 . You can manually install after downloading the file. Step 1: Direct download link- https://dev.mysql.com/downloads/file/?id=488567 OR Visit here select your OS then download as per OS version https://dev.mysql.com/downloads/workbench/ Step 2: sudo apt install file_path_of_downloaded

MySQLWorkbench forward engineering error

て烟熏妆下的殇ゞ 提交于 2020-01-22 15:01:26
问题 I'm working on a model in MySql Workbench 8.0, when I click on forward engineering and try to generate the script of my model I get Executing SQL script in server ERROR: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VISIBLE, CONSTRAINT `fk_Compras_Personas` FOREIGN KEY (`persona_id`) R' at line 9 SQL Code: -- ----------------------------------------------------- -- Table `bd_inventario2018_2`.

Create EER Model from an existing DB but with the relations done - Workbench

喜你入骨 提交于 2020-01-22 00:18:45
问题 I'm trying to import an existing DB to mysqlq Workbench. I can do this. It's works perfectly. However the process just import the tables without relations between them. How can I import the the db and create the eer model with relations between them? 回答1: Relationships are the visual expression of foreign keys. If your DB tables use foreign keys (actually: a storage engine supporting foreign keys) then they are automatically shown in the diagram. It should be clear that this condition is only

Where is the ini file for wamp server for MYSQL Workbench integration?

回眸只為那壹抹淺笑 提交于 2020-01-17 08:27:58
问题 I need the ini file, but I don't know which one I need to use. 回答1: On WAMP Server the my.ini file can be found here, assuming you installed wamp on c: c:\wamp\bin\mysql\mysqlx.y.z\my.ini Remember to specify the section called [wampmysqld] when integrating with MySQL Workbench. 来源: https://stackoverflow.com/questions/18538045/where-is-the-ini-file-for-wamp-server-for-mysql-workbench-integration

Identical MySQL query returning different result in MySQL Workbench than from command-line

霸气de小男生 提交于 2020-01-16 05:39:06
问题 This query ` delimiter $$ CREATE DEFINER=`root`@`localhost` FUNCTION `calculatePrice`(cheese VARCHAR(50), meat VARCHAR(50), veg VARCHAR(50)) RETURNS decimal(10,0) DETERMINISTIC BEGIN DECLARE price DECIMAL; SET price = (SELECT SUM(x.Price) FROM ( SELECT `priceFactor` AS Price FROM `tblCheese` WHERE `cheeseName` = cheese UNION ALL SELECT `priceFactor` AS Price FROM `tblMeat` WHERE `meatName` = meat UNION ALL SELECT `priceFactor` AS Price FROM `tblVeggie` WHERE `veggieName` = veg ) x ); RETURN

Insert values referring to another table

 ̄綄美尐妖づ 提交于 2020-01-15 10:19:26
问题 I have created the following simple datamodel : I used the following insert statements to insert values: 1) Table Products : INSERT INTO test.products (ProductName, Price) VALUES ("Product A","99,99"), ("Product B","49,95"), ("Product C","5,95"); 2) Table Orders : INSERT INTO test.orders (Customer) VALUES ("Customer A"), ("Customer B"), ("Customer B"); All this works fine so far. However, now I also want to insert values into the table Products_per_Order . As you can see in the datamodel the

Error 1005 when Forward Engineering EER diagram

南楼画角 提交于 2020-01-15 07:30:07
问题 I have created an EER diagram (as shown in the image bellow) in MySQL Workbench and wanted to Forward Engineer to build the DB. After configuring the model options to the Target MySQL Version and removing the word "Visible" from all the Indexes in the SQL Code (the code goes in the bottom of this post), as it was triggering an error, I have came across a 1005 Error: Executing SQL script in server ERROR: Error 1005: Can't create table `books`.`books` (errno: 150 "Foreign key constraint is