mysql-workbench

MySQL A or B but NOT both

若如初见. 提交于 2019-12-31 05:09:12
问题 This seems like an easy query but I cannot seem to get it or relate it to other posts on stack overflow. Would anyone be able to explain... This is what I have so far, it is returning records for all bars where one or both people go. TBL frequents Schema - drinker VARCHAR(50) PK, bar VARCHAR(50) PK Bars which are frequented by John or Rebecca but not by both of them SELECT DISTINCT bar FROM frequents WHERE drinker = 'John' XOR drinker = 'Rebecca' AND bar NOT IN ( SELECT f1.bar FROM frequents

Working with Events in MySQL

人盡茶涼 提交于 2019-12-30 11:53:11
问题 I have a stored procedure which basically selects data from one table and insert into another table. Basically I am doing data archiving manually. Now, I want to write an event just like discussed here However, after reading that post and researching online, I came to know that it's not possible to create an event inside a stored procedure. Is there a way to accomplish my goal in MySQLWorkbench? 回答1: I believe you are thinking this in the oposite direction: You can't create an event in a

Can't export my database from mysql workbench

会有一股神秘感。 提交于 2019-12-29 12:38:49
问题 Hey guys i am trying to export my database from mysql workbench but i get this on the export progress: Running: mysqldump.exe --defaults-file="c:\users\user\appdata\local\temp\tmp2h91wa.cnf" --user=root --host=localhost --protocol=tcp --port=3306 --default-character-set=utf8 --skip-triggers "mydb" mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'mydb' AND TABLE_NAME =

Can't export my database from mysql workbench

て烟熏妆下的殇ゞ 提交于 2019-12-29 12:37:30
问题 Hey guys i am trying to export my database from mysql workbench but i get this on the export progress: Running: mysqldump.exe --defaults-file="c:\users\user\appdata\local\temp\tmp2h91wa.cnf" --user=root --host=localhost --protocol=tcp --port=3306 --default-character-set=utf8 --skip-triggers "mydb" mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'mydb' AND TABLE_NAME =

import text file into mysql workbench?

你离开我真会死。 提交于 2019-12-29 07:14:10
问题 I was wondering how to import text file into MySQL workbench? I have a text file delimited by | and the first row are the tables, FEATURE_ID|FEATURE_NAME|FEATURE_CLASS then it follows by data information after that 1388627|Etena|Populated Place What is the best way to import this .txt file into MySQL workbench? Thanks1 回答1: It's not clear what exactly you intend to achieve, but if you want to import delimited text file into db then you can use LOAD DATA INFILE like this: LOAD DATA INFILE '

How to connect MySQL Workbench to Amazon RDS?

核能气质少年 提交于 2019-12-29 05:26:06
问题 I am accessing the Amazon RDS (MySQL) from Putty. MySQL Workbench works through SSH commandline only, but I would like to access the cloud MySQL host database directly from MySQL Workbench. 回答1: In the MySQL forums is a posting that links to various sources for connecting MySQL Workbench to online resources: http://forums.mysql.com/read.php?152,252640,252640#msg-252640. The essential steps for Amazon RDS are on this page: https://thoughtsandideas.wordpress.com/2012/05/17/monitoring-and

Accessing a mysql database from external host/ip? (ie: mysql workbench)

无人久伴 提交于 2019-12-28 02:06:40
问题 I have a mysql server running on x.x.x.x, and can access it internally no problem (of course). However when attempting to connect externally, ie using mysql workbench, or even from an external server, I get the error message "Host 'bla.bla.bla' is not allowed to connect to this MySQL server". I have done: GRANT ALL PRIVILEGES ON *.* TO mysql@x.x.x.x IDENTIFIED BY "somepass"; And I have opened port 3306 in iptables. Is there another fundamental security issue I am missing? 回答1: You need to do

When I run this simple query, The values of each table is being repeated, and I dont know why. Sorry I am beginner

寵の児 提交于 2019-12-25 21:02:53
问题 enter image description hereHere is the result i am getting when I run this simple query Kevin Norwood Bacon 6.2 Alexander Rae Baldwin 6.2 Kevin Norwood Bacon 6.7 Alexander Rae Baldwin 6.7 Kevin Norwood Bacon 7.1 Alexander Rae Baldwin 7.1 Kevin Norwood Bacon 6.6 Alexander Rae Baldwin 6.6 Kevin Norwood Bacon 7.2 Alexander Rae Baldwin 7.2 来源: https://stackoverflow.com/questions/58988703/when-i-run-this-simple-query-the-values-of-each-table-is-being-repeated-and-i

When I run this simple query, The values of each table is being repeated, and I dont know why. Sorry I am beginner

佐手、 提交于 2019-12-25 21:02:11
问题 enter image description hereHere is the result i am getting when I run this simple query Kevin Norwood Bacon 6.2 Alexander Rae Baldwin 6.2 Kevin Norwood Bacon 6.7 Alexander Rae Baldwin 6.7 Kevin Norwood Bacon 7.1 Alexander Rae Baldwin 7.1 Kevin Norwood Bacon 6.6 Alexander Rae Baldwin 6.6 Kevin Norwood Bacon 7.2 Alexander Rae Baldwin 7.2 来源: https://stackoverflow.com/questions/58988703/when-i-run-this-simple-query-the-values-of-each-table-is-being-repeated-and-i

mysqlworkbech 6.1 how to apply inserts data changed

一笑奈何 提交于 2019-12-25 18:56:52
问题 iam new to mysqlworkbench. i am using the latest 6.1 version of it. While iam designing model(EER diagram) i created a table and tried to insert some default data to it in the bottom inserts tab of the respective table. now when i try to close the bottom tab i get a pop up for saying to apply the changes, but i cant find the apply button anywhere on the GUI , Please help where is the apply button so that i can apply 回答1: There's an apply button on the toolbar: 来源: https://stackoverflow.com