Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mysql-workbench]

A visual database design tool developed by MySQL. It is the successor application of the DBDesigner4 project.

0
votes
1answer
11 views

Security - Two Factor Authentication in MySQL?

I want to enable or install Two factor Authentication in mysql 5.7 on windows. How can we give user login access by using two factor Authentication method? This is for Windows server running MySQL 5....
0
votes
0answers
22 views

Is it possible to change the color of relationship lines in MySQL Workbench diagrams?

I have MySQL Workbench Community Edition 8.0.15 installed on my Mac OS 10.14.3. I'm currently working on making an ERD with Workbench's EER Diagram. My problem is that whenever I export my diagram, ...
0
votes
0answers
20 views

How to restore the missing mysql db schema?

My DB schema is missing/deleted by someone without my knowledge from ASW EC2 windows machine. Seems some unauthorized user entered into the system illegally and did something. Since I can find some ...
0
votes
1answer
32 views

Why these Two Queries performace so different?

This is Query 1: SELECT A.innings_no AS Inn, bowler, OT.Out_Name AS OutType, Runs FROM (SELECT a.innings_no, a.striker, SUM(b.runs_scored) AS Runs FROM ball_by_ball a ...
0
votes
0answers
68 views

Load From S3 MySQL Error Code 2013 — AWS Aurora

I am attempting to load S3 files to an Aurora MySQL DB Cluster using the below AWS documentation: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.LoadFromS3.html ...
0
votes
0answers
15 views

one to many relation how to create a new row with mysql trigger

i'm really new to mysql triggers so...i have 3 tables: a,b and c. table a is related with table b with a one to many relaion and table c is the table that get the triggered infromation from the 2 ...
0
votes
0answers
23 views

mysql trigger before insert

How can i make this trigger update my table DATA if there is no row to update. Until i insert data in other table lets called ABC, this table uses a after insert trigger to insert information into ...
1
vote
0answers
33 views

Received an unsupported type from Postgres. (14) (SQLGetData)

I have database in PostgreSQL. It is simplest possible database with schema presented here: http://www.postgresqltutorial.com/postgresql-create-table/ I want to migrate it to MySQL. I trying to ...
0
votes
0answers
97 views

MySQL reporting version mismatch due to picking up previous installation

To solve a mysqldump "Workbench was unable to get mysqldump version. Please verify the log for more information.", I opted for the first solution at https://stackoverflow.com/a/44851129/175241 But ...
0
votes
2answers
23 views

How to set all auto increments to 1 in a Schema

Is it possible to reset all auto increment in a schema in one query? if not even just by per table will do. btw I am using MySQL server 8 thanks in advance :)
0
votes
1answer
21 views

MySQL - Split results of count function into columns derived from a separate column

The title seems a bit confusing, but I am struggling to put down what I need this query to do so best to explain it. I have 3 tables in my database (Using MySQL Workbench), but for this query I'm just ...
0
votes
1answer
28 views

MySQL workbench can't deal with MariaDB's new Invisible columns

Recently upgraded to MariaDB 10.3 which has a new feature whereby we can create an invisible column like so: ALTER TABLE MyTable ADD COLUMN `TestA` INT INVISIBLE; But once I create this column, ...
1
vote
1answer
133 views

Error: The user specified as a definer ('Admin'@'%') does not exist

Error de SQL (1449): The user specified as a definer ('Admin'@'%') does not exist I have this error when I'm trying to update a table. I don't know what I must do, because this error only happens ...
0
votes
0answers
12 views

What's the formula for calculating Key Efficiency in MySql? [duplicate]

How to calculate Key Efficiency percentage in MySql
0
votes
5answers
38 views

Mysql: Unable to drop a columns NULL default

Running mariadb 10.3 I have a bunch of columns that were created by default as NULL defaults. I was asked by a third party integrator to remove the NULL defaults, but so far have been unsuccessful. ...
0
votes
1answer
79 views

Unable to export 8.0.1 MySQL database using MySQL Workbench 8.0

I'm unable to export my 8.0.1 MySQL database using MySQL Workbench 8.0. When I go to perform the export via the "Administration" table, with all the default settings (I didn't change anything ...
0
votes
1answer
68 views

mySQL Workbench new Connection : There is no disk in drive. Please insert disk in \Device\Harddisk2\DR2

I'm trying to migrate the data at my company from Excel to mySQL so I'm very new at this. I just installed the latest mySQL package via the standard installer and when I try a new connection (I'm ...
-1
votes
1answer
31 views

Select rows with same Name and their posible ID (could be Null)

So I have this For every username there is at most one unique associated not null col2 value and potentially some null col2 values. +----------+-------+ | username | col2 | +----------+-------+ | a ...
0
votes
1answer
92 views

Error parsing DDL for schema.table in mysql workbench

I have production dbs using Mysql 5.5.31-0ubuntu0.12.04-1 (I know its old, will be upgraded soon). I used a too advanced version of mysql workbench which allowed me to add a comment to key. (Now ...
1
vote
1answer
61 views

Error 2013 in MySQL Workbench when I perform any operation on a certain table

when using mysql workbench I perform any operation on the table "my_table" I get an error: Error Code: 2013 Lost connection to MySQL server during query Previously I stopped the execution of a ...
0
votes
1answer
10 views

Setting model title in MySQL Workbench for Forward Engineering

In MySQL Workbench, when viewing a model, you can select File->Export->Forward Engineer SQL Create Script. The first four lines of the generated file are a comment, something like this: -- ...
2
votes
1answer
45 views

find 16,000 words and replace with ##

I need to do a find a replace but rather than find one word to replace with another I have about 16k words, so as an example; table 1 has two words apple,orange - table 2 has the contents of a book, i ...
1
vote
1answer
73 views

Error 1062: Duplicate entry 'mydb/regimes' for key 'name'

I am not an expert on databases but I'm modeling a database on mysqlworkbench 8.0.13 and when I try to run the script it breaks at this table(regimes). I can't figure out what KEY 'NAME' it is ...
0
votes
1answer
17 views

MySQL 8.0 - SELECT QUERY

Hi I am having trouble with building a select query command with my tables. TABLE CUSTOMER +-----------------+-----------------+--------------+ | customer_number | customer_status | order_status | +-...
1
vote
0answers
18 views

How to fully dump mySQL database via workbench?

I am exporting database in SQL file using workbench. Export is done successfully, but when I import data and compare record counts with older database, some of the records are missing. Not all records ...
0
votes
1answer
25 views

Which query execution will be faster

In the following queries, which query execution will be faster. When I tried executing them in SQLWorkbench, each time query execution time is varying. Also, can you guys suggest some better tools ...
1
vote
2answers
66 views

Creating Multiple Tables with WITH statements

I have created Table1 and Table2 both with WITH statements. I have been trying to create Table3 with WITH statement as well that would be the UNION ALL of Table1 and Table2. Here is my attempt: ...
-1
votes
2answers
176 views

Counting Occurrences of one Column in Multiple Columns in a Different Table

I have two tables, let's call them Table1 and Table2. Table1 has a column c1. and Table2 has two columns called c2 and c3. I would like to count the occurrences of c1 from Table1 in both columns of ...
1
vote
1answer
3k views

Error during table creation : is not valid at this position expecting an identifier

I keeping getting this error during table creation: Order is not valid at this position expecting an identifier. I look up on the Web but I can't figure out how to fix this. What that error means, and ...
3
votes
1answer
147 views

Normalizing/combing mutliple tables with similar data

I'm working on setting up a database of vehicle records based on data from a third party vendor. There are 3 models: Vehicles, Transmissions, and Adaptors. Both Vehicles and Transmissions are 1:n ...
0
votes
3answers
244 views

MYSQL 8.0 server not found in Workbench directory in Windows 10?

I have upgraded my workbench to 8.0CE and also removed the previous 5.7 MYSQL server as well as Workbench 6.3. This is the directory: C:\Program Files\MySQL\MySQL Workbench 8.0 CE Also when I typed ...
0
votes
1answer
25 views

Analyze general log

Motivation : understand the highest CPU\usage\long_query of historic queries running on production. example :10 minute ago on server x graph showed high CPU usage. I thougth for next steps : ...
-1
votes
2answers
54 views

MySQL Query can we count rows using php to reduce time of count(*) in a query or there is no difference?

Having the following queries, where the first query is returning a field of number of rows found, and the second returns the actual rows: First Query: SELECT count(*) as total FROM individual i ...
0
votes
1answer
33 views

Crash of VMWare Workstation when generating EER Diagram

I'm facing an issue when I'm generating an EER diagram with MySQL Workbench 8.0 I'm using MySQL Workbench on a local Windows 10 virtual machine. My VM is running with VMWare Workstation 12.5.0. I ...
0
votes
1answer
862 views

Problem creating my first database , annoying error

I created two tables: person (id as pk , person and purchase) user (id as pk , other columns not relevant to question). After linking the two with an n:m relationship, and proceeding to forward ...
0
votes
1answer
926 views

New tables not showing up in MySQL Workbench Navigator [closed]

I've created a database on a local MySQL server with MySQL Workbench version 8.0 on Windows 10, but when I make a table in said database with a manually typed query CREATE TABLE newtable (column1 ...
0
votes
1answer
478 views

Workbench freezes on connecting after Ubuntu 18.04 upgrade

I recently upgraded to Ubuntu 18.04 and started having this issue, I can connect to my local mysql server via the terminal fine using mysql -u root -p however when I try to use mysql workbench it ...
2
votes
1answer
311 views

Do you know if this are examples of non-identifying or identifying relationships?

Im using MySQLWorkbench to model a diagram. But Im with some doubts about identifying and non-identifying relationships. It seems that all relationships of the project are identifying. For example, a ...
1
vote
1answer
95 views

DBForge can't connect with MySQL server, server is running

I recently installed the latest version of MySQL Server. I initialized it with --initialize-insecure so I have a "root" user with no password set. The server is running, with the command mysqld --...
2
votes
1answer
358 views

MySQL Workbench Visual Explain not working with MariaDB 10.3.9

I recently installed MySQL Workbench 8.0.12 and MariaDB 10.3.9. I created my database and want to start fine tuning indexes and views. I can run a query with the EXPLAIN button and get the results in ...
1
vote
1answer
341 views

getting innodb buffer usage

I am running MySQL 5.5.52 I am trying to see how much of my innodb buffer pool is used. If I run 'show engine innodb status' I see this: ---------------------- BUFFER POOL AND MEMORY -----------------...
0
votes
1answer
184 views

Problems during migration from SQL Server to MySQL via MySQL Workbench

We've found most of the options we needed to include the necessary CHARSET. Here is what we've included in the MySQL my.cnf: [client] default-character-set = utf8mb4 [mysql] default-character-set ...
0
votes
0answers
36 views

MySql Workbench Syncronization does not completely sync the database

I'm using MySql Workbench and Wamp Server on my local computer. I designed a model and syncronised it with "Synchronize Model..." in "Database" menu. It completed successfully but when I trying to ...
2
votes
1answer
350 views

Why MySQL Workbench creates more than two foreign keys for many to many relations?

I'm using MySQL Workbench. I know that an additional table is needed to define a many to many relation. But why sometimes workbench creates this table with more than two foreign keys? Is it added ...
0
votes
1answer
936 views

How to see special characters in MySQL Workbench query results?

In my Database, I made a small mistake by inserting a blank (space character) after a value like this: INSERT INTO MYTABLE(country_name, code, value) values ('France', 'FR ', 345); -- id is ...
0
votes
1answer
504 views

MySQL Workbench Unable to Connect to Azure Databases for MySQL

When trying to connect to a MySQL database in Azure I get the following error: ERROR 2026: SSL connection error: socket layer receive error At first I thought it was a firewall/security issue but ...
0
votes
1answer
150 views

MYSQL - How to make a table with a column that will sum columns from parent tables?

I have a table called FOODS. FOODS has two foreign keys: IDsize and IDflavor. The parent tables FLAVOR and SIZE each have a column price. The table FLAVOR has columns IDflavor, flavor and price with ...
0
votes
0answers
23 views

How to debug difference in command line and work bench out put for MySQL?

I am supposed to create an automated CSV report from our MySQL database. For this purpose I have a standard script from here mysql -u $USER -h $DBSERVER -p $PASS $DB -B -T -e "source myscript.sql" | ...
0
votes
1answer
277 views

Why is my SQL statement sometimes slow and sometimes fast?

I'm using MySQL version 5.5.45 on Windows Server 2016. I'm executing the following statement in MySQL Workbench version 6.3. delete FROM childattendance WHERE date < DATE_SUB(NOW(),INTERVAL 2 ...
0
votes
1answer
515 views

MySQL Workbench is adding --enable-cleartext-plugin option on mysqldump command

For some reason my copy of MySQL Workbench on one of my servers has started adding this --enable-cleartext-plugin option on every mysqldump command, which results in this error every time. 20:13:02 ...