Questions tagged [mysql-workbench]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

How to run both "before" and "after" update in trigger

I need to calculate prior values in a table before the column values are updated. Basically, I have to calculate the difference between the before the update and after update values. If there is any ...
0
votes
0answers
14 views

Mysql query browser not showing schemata (databases)

Hello, people, I'd appreciate it if you could assist me with this problem. I'm using workbench and mysql, and I have a few schemata (databases) in my sql. However, when I log in using Mysql Query ...
-1
votes
1answer
12 views

Mysql WorkBench Community Edition won't start via terminal

When I try to run Work Bench from command Line: sudo mysql-workbench-community This happens: mkdir: cannot create directory '/run/user/0': Permission denied Warning: Schema “org.gnome.system....
1
vote
1answer
25 views

custom character for strings on mysql workbench

i have a string that contains both characters ' and ", i need to use this strings inside an insert. The problem is that due to those characters the strings results "splitted" therefore ...
0
votes
1answer
26 views

MySQL tables statistics over time

I used MySQL WorkBench to get the most used tables in the MySQL database. I went to Performance > Performance Reports > Database Schema Statistics > Schema Tables Statistics and saw all ...
0
votes
0answers
20 views

MySQL Table structure and data export - Script sequence is not correct

When I export the data and structure of my MySQL database to a file, I notice that the table sequences in the output file are not correct. For example the script of a child table is put before the ...
1
vote
2answers
82 views

Error Code: 1215. Cannot add foreign key constraint

I'm creating a DBSM on Mysql Workbench, but when Itry creating the last table i get an error because it can't add the foreign key, but i can't understand why since the child key has the same data type ...
1
vote
1answer
22 views

Stored procedure support in MySQL Workbench?

I've created a lot of stored procedures when I was using HeidiSQL on Windows. I am now on an iMAC (x64) and it doesn't look like installing HeidiSQL is an option. I've got MySQL Workbench version 8.0....
1
vote
2answers
269 views

Why does MySQL Workbench let me add unique indexes to primary keys?

I'm using MySQL Workbench 8.0.12 Reproduce: Create a table Create the first column id, select it as a primary key (PK) Under indexes, PRIMARY appears Back under columns, also select id as unique (UQ) ...
0
votes
0answers
12 views

Problem with connect mysql databases of remote

I'm getting error with connect remote mysql database. Firstly; 1-) I use windows 10 machine and my remote server also windows 10 machine. 2-) My database at locale at remote windows machine with root. ...
0
votes
0answers
49 views

Write the SQL code that will list only once the Physician-Person appointments

Write the SQL code that will list only once the Physician-Person appointments. In other words it will not list twice an appointment between the same physician and person Can someone help me solve this ...
-6
votes
1answer
35 views

Write the SQL code to find the average charge by the family medicine physicians

We need to write the script to find the average charge of physicians who specialize in "family medicine. But i'm confused on how to write this because when we look at the appointment table, where ...
1
vote
0answers
20 views

is there a way to dump schema tables that don't exist and ignore the ones that exist?

I am using this command to dump schema directly to a different server because the existing server don't have space left to dump the tables/schemas and then transfer to the other server: mysqldump -h ...
0
votes
0answers
26 views

Hide information table in Mysql Workbench

is there any way to hide the table information subcolumn in mysql workbench? I work with version 8.0 Thank you very much in advance.
0
votes
1answer
63 views

ola.hallengren - Alternative MySQL scripts!

Having worked with MS SQL for many years and found ola.hallengren scripts incredibly useful - I find my self in a MySQL environment. Is there a MySQL alternative to ola.hallengren? - Perhaps someone ...
1
vote
1answer
681 views

Mysql Workbench 8 doesn't detect the my.ini file for my MySql 5.7 server. How can I point it to the correct file? [duplicate]

I upgraded MySql workbench to version 8. I'm running MySql Server 5.7. When I open the options file in workbench it says it cannot locate a file for MySql 8 and that it will create one in the path C:\...
0
votes
2answers
310 views

MySQL server will not start/stop

I am currently in the process of setting up a database in MySQL for an application where I will be running PowerBI to do analyses on the data in the database and in a further stage to design an ...
0
votes
1answer
392 views

Why do I have to set MySQL user password with mysql_native_password to connect with Workbench?

I've noticed if I set the mysql user's password like below, I cannot connect with MySQL Workbench. ALTER USER 'root'@'localhost' IDENTIFIED BY 'myPassword' If I use this below I can connect to it: ...
0
votes
1answer
30 views

Handling the foreign keys in data entry

I have two tables (Order and equipment) and they should be linked together by the order No. the SQL script is as the following: -- ----------------------------------------------------- -- Table `rr`.`...
2
votes
1answer
165 views

MySQL Workbench shows running query but query not in process list [closed]

I am having an issue where the same query sometimes completes in 600 seconds or less, but sometimes lags for multiple hours. MySQL Workbench shows the query as 'Running...', and initially I can see ...
1
vote
2answers
468 views

Creating a table with CHECK constraints in MySql workbench

I created a table ORDER using Mysql Workbench as follows: CREATE TABLE IF NOT EXISTS `rr`.`ORDER` ( `Order No.` INT UNSIGNED NOT NULL COMMENT 'The order of the inspected equipment', `Order_Type` ...
1
vote
2answers
64 views

Can I use older MySQL workbench with newest MySQL server?

MySQL newbie here. I'm using Ubuntu 16.04 (64-bit). I've successfully installed MySQL Community Server 5.7 and MySQL Community Workbench 6.3. Unable to find these answers in the MySQL forums. I've ...
0
votes
2answers
441 views

Debugging mode in MySQL Workbench

When running queries in MySQL workbench, some of them are captured to the log file at either: MySQL/Workbench/logs MySQL/Workbench/sql_history However, I'd like to see ALL the possible queries that ...
0
votes
1answer
16 views

How to pull high-level server information from Mysql

MySQL workbench shows the following under server stats: I know it can grab the Connection Name and the Port from the data that I'm using to connect, but where does it grab the Host, socket, Version, ...
0
votes
0answers
20 views

MySQL workbench Client Connection info

I have two mysql installations, one local and one on Amazon RDS. On my local, I can view info on the queries in the Client Connections section: However, in the RDS connection it does not allow me to ...
1
vote
0answers
4k views

MySQL 8.0 - Could not acquire management access - Administration issue

I am using MySQL Workbench for many months, it was working fine. Today, when I tried to open Server Status in the MANAGEMENT tab, below error occurred. MYSQL80 and Windows Management Instrumentation ...
2
votes
1answer
265 views

Incorrect relationships formed in EER diagram by reverse engineering the database script

I have a database with 6 tables. I tried to view the relationships between the tables by using EER diagram. I observed that all the one-to-one relationships were converted into one-to-many ...
0
votes
0answers
38 views

MySQL Workbench - Searching for column in query result

I'm using MySQL Workbench and I have a query result with hundreds of columns within it. Is there a way to search/go to a specific column within the query result (Using the MySQL Workbench interface)? ...
3
votes
1answer
188 views

why am I getting a warning of Depreciation of INT(11) in latest version of MySQL?

When I try to create a table with a column of type INT, it automatically gets allocated as INT(11) and this Int length will get depreciated in the latest version of MySQL. How can I declare the column ...
0
votes
1answer
280 views

mysql 8 datetime default throwing and error when forward engineering

I am trying to create a schema by forward engineering a model eer diagram. But its giving an error on the datetime fields when using the default current_timestamp which is allowed in mysql 8 for ...
0
votes
1answer
37 views

Stored procedure not displaying data when null is passed into input parameter

I recently started learning stored procedures in MySQL and created a procedure like this: CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_getAllDetails`(IN _student_no INT, IN _class_id INT, IN ...
-1
votes
1answer
189 views

MySQL Query Fetch Time increases when LEFT JOIN with big table [closed]

I am fetching the same amount of data with 2 different queries. However, one of them have a fetching time of ~x130 compared to the other. Being the only difference between the two queries a LEFT JOIN ...
0
votes
1answer
28 views

MYSQL+MyISAM+Need information regarding check table statement

The MySQL CHECK TABLE statement checks a table or tables for errors. Does the statement put an auto lock on a table before checking table for errors? Does the statement perform a READ ONLY operation? ...
1
vote
0answers
297 views

Migration from Postgres to MySQL using MySQL Workbench (Error in Reverse Engineering catalog. A task has failed while execution)

When I am trying to migrate database from Postgres to Mysql, I am facing an error in the Reverse engineering source step in which the log shows Starting... Connect to source DBMS... - Connecting... ...
1
vote
0answers
59 views

MySQL - can connect via "reverse engineer" but not by double-clicking the connection using the same connection info

A connection to MySQL Server on the same network fails when double-clicking the connection in MySQL Workbench (i.e. trying to connect the standard way). It gives the error message: "Cannot ...
0
votes
0answers
35 views

Migration from Teradata to MYSQL over partition by

Working SQLs in Teradata select row_number() over (partition by job_name, parent_job_name order by elapsed_sec) as rowno from schema.xyz select min(elapsed_sec) over (partition by job_name, ...
0
votes
0answers
706 views

Attempted to import .csv into mySQL using workbench, but only imports 7 rows?

To start, I'm still a relative SQL noob so this question could have an obvious answer that I'm just missing. I'm trying to start a big practice project in my spare time using a dataset which has ~...
0
votes
1answer
94 views

Change default timezone to America Pacific

SELECT @@GLOBAL.time_zone, @@SESSION.time_zone; Result: SYSTEM SYSTEM SELECT CURRENT_TIME; Result: 06:25:07 But MY System time is 11.55 AM IST and PST TIME is 11.25 PM How can I change ...
0
votes
2answers
62 views

Issue with Auto increment in MYSQL

Current Structure in MYSQL: CREATE TABLE `JOB_ONPREM` ( `JOB_ID` bigint(20) NOT NULL AUTO_INCREMENT, `JOB_NAME` varchar(255) NOT NULL DEFAULT '', `SANDBOX` varchar(100) NOT NULL ...
1
vote
1answer
47 views

SQL Trigger that creates new table when a new record is added to current table

It's been quite a few years since I have done DB work. I am working through mysql workbench (using MS Access as a frontend). I have a base table that I am multilinking (basically a name index type ...
1
vote
1answer
4k views

MySql Workbench csv data import error

I' trying to import a csv file in MySql WorkBench but get an error: Can't analyze file. Please, try to change encoding type. If that doesn't help, maybe the file is not: csv, or the file is empty. ...
0
votes
1answer
164 views

Obfuscate data during migration with MySQL Workbench

Is it possible to obfuscate sensible data during migration using MySQL Workbench? We are going to work on site so we need to make a copy for develpment but the (MySQL) database contains sensible user ...
1
vote
1answer
38 views

MySQL - is there a way to implement a CHECK constraint after creating the table?

I created a table and after entering all the data, I found that I had missed a CHECK constraint in the CREATE TABLE statement. create table jims_faculty ( fac_id int primary key, fac_name varchar(15) ...
0
votes
1answer
258 views

MySQL Workbench Model sync sql_mode

Using MySQL Work Bench, When I look at the system variables of a server I am connected to, it shows the SQL_MODE as "no engine substitution" When I open a Workbench Model, and use the "sync with any ...
0
votes
1answer
2k views

Unknown column in field list

Please help i dont know what i'm doing wrong. CREATE DEFINER=`root`@`localhost` PROCEDURE `setState`(IN `statename` VARCHAR(100), IN `countryID` INT(11)) MODIFIES SQL DATA BEGIN SET @...
2
votes
2answers
874 views

Error Code: 1136. Column count doesn't match value count at row 1

I'm struggling here. This is my code CREATE DEFINER=`****`@*****` PROCEDURE `setCountry`( IN `countryname` VARCHAR(100) CHARSET utf8mb4, IN `nationality` VARCHAR(100) CHARSET utf8mb4, IN ...
1
vote
2answers
157 views

SQL case statement not executing else part

Problem statement: Create a function to search a student with roll_no; if exists show "Student Name and Course" else show "Roll No not exist". CREATE FUNCTION search(roll_num VARCHAR(50)) RETURNS ...
0
votes
2answers
3k views

Data truncation: Incorrect datetime value: '7/21/15' for column 'announced_on' at row 1

I am importing a flat file into a table in DBeaver v7.0.2. When I attempt to import, it's throwing an error for date field formatted as mm/dd/yy. The date column in the table is defined with ...
2
votes
1answer
6k views

DBeaver: Access denied for user 'root'@'localhost' (using password: YES)

Context: I am creating a new Schema and looking to import .sql file generated from mysql dump. I have server running: MySQL 8.0.19. I am using DBeaver client Version 7.0.2 and have setup a new MySQL ...
-1
votes
1answer
1k views

Problems with remote ssh access to mysql with Workbench MacOS

I am having problems connecting Workbench with Siteground. All my connection settings are as instructed, however my question is do I have to open port 3306 on my Mac to connect to the Siteground ...

1
2 3 4 5
10