mysql-workbench

Cannot open SQL editor on macOS High Sierra

半世苍凉 提交于 2019-12-06 09:18:38
问题 Since updating to macOS High Sierra, I have not been able to open the SQL Editor on MySQL Workbench. When I try to connect to the database, as usual, I'm given the following prompt: However, after a few seconds, it simply disappears. I'm given no error or any indication from the application that anything went wrong. I've tried redownloading the application, but I'm getting the same result. edit: I tried using previous versions of Workbench, and it works perfectly on version 2.6.5. 回答1:

MySQL Workbench columns tab deactivated

心不动则不痛 提交于 2019-12-06 08:58:20
问题 I'm trying to add a new table in MySQL Workbench but I can't because the columns tab is deactivated. Do you have any idea of what's happening? Thanks in advance. 回答1: Simply pull the whole lower tab a bit upwards and you'll see the bit where to enter your columns. 来源: https://stackoverflow.com/questions/12414723/mysql-workbench-columns-tab-deactivated

MySQL workbench : How to export mysql database to .sql file?

烈酒焚心 提交于 2019-12-06 08:41:30
问题 I need to export my database in mysql workbench to a file .sql. What to do? Can anyone help me please? Thanks and regards 回答1: try this and select export to self constrained file .sql along with the path. 来源: https://stackoverflow.com/questions/22381577/mysql-workbench-how-to-export-mysql-database-to-sql-file

MySQL return all rows where a column contains any but only keywords from a set

自闭症网瘾萝莉.ら 提交于 2019-12-06 07:38:11
问题 Is there a way to select rows where one of the column contains only , but any number of, predefined values? I've been using this, but it returns any rows where my column contains at least one of the values (which is exactly what it's suppose to do, I know). But I'm looking for a way to only select rows that have ONLY my keywords in the keyword column. SELECT * FROM `products`.`product` WHERE keywords LIKE '%chocolate%' AND keyword LIKE '%vanilla%'; Example Keywords: chocolate, sugar, milk,

MySQL Workbench Load Data Local Infile error

给你一囗甜甜゛ 提交于 2019-12-06 06:08:22
I have been running into a problem with MySQL's Load Data Local Infile command. I know that they disabled it by default due to a security threat. I have a SQL Script that I would like to run in MySql Workbench. I keep getting the error "1148. The used command is not allowed with this MySQL version." I have been able to get this to work from the command line using command line arguements. However I havent had any success in the Workbench. Any help would be appreciated. Here is my script. DROP DATABASE IF EXISTS a2004TS; CREATE DATABASE IF NOT EXISTS a2004TS; USE a2004TS; DROP TABLE IF EXISTS

Lost connection to MySQL server at 'reading initial communication packet', system error: 61

陌路散爱 提交于 2019-12-06 05:35:00
问题 3 days on this and have hit a wall. I'm running mac os x. I have installed the mysql-5.5.14-osx10.6-x86_64.dmg. As far as the context, I need to install the mysql gem for use with ruby on rails and that won't install properly unless there is a valid instance of mysql running. I've tried using the /Library/StartupItems/MySQLCOM/MySQLCOM [start|stop|restart] method to start the mysql server and it comes back with no errors, but when I try to connect to localhost via the MySQL Workbench, it

Unable to connect to mysql on digitalocean using workbench over ssh

谁说我不能喝 提交于 2019-12-06 05:03:28
I have got my droplet set with the laravel app and database. Created my db while on putty ssh. Now when I am trying to connect to my mysql database as in image, i am getting error. Error: Authentication error, unhandled exception caught in tunnel manager, plese refer to logs for details. Note that my credentials are right, as that what I use to connect through putty. Any help on how can I see view my database? Got this solved like this. Turns out this is an ssh level issue. The digital ocean server doesn't have the support for the Kex algorithm as mentioned in the error the following can be

How to run a .sql file as part of a MySQL Workbench 6.2 query?

安稳与你 提交于 2019-12-06 00:48:28
I'm using MySQL Workbench 6.2 [Windows7] and I want to create a script with all my steps. Among the steps, I have a series of .sql files stored from on my computer that create and populate tables. I want to run these files from the query tab but every time I use this command: source C:/Users/[username]/Desktop/sampdb/create_president.sql; I get an Error 1064, which says "Error Code: 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 'mysql> source C:/Users/[username]/Desktop/sampdb/create_president.sql at

Is it possible to save MySQL Workbench files as plain XML?

跟風遠走 提交于 2019-12-05 23:21:21
问题 DB Designer had a lot of bugs but one outstanding feature was that database models were saved in plain XML by default . This allowed a user to diff file versions via SVN or Beyond Compare , easily finding any changes made to the database. Unfortunately, DB Designer's succsssor, MySQL Workbench, stores files in a proprietary MVW file format , which is unreadable. Is it possible to force MySQL Workbench to save as XML? 回答1: No, the current version (5.2.10 beta) does not support that. However,

file conversion- .mwb to .sql file

♀尐吖头ヾ 提交于 2019-12-05 18:09:42
问题 I have a database in .mwb format. I want to use it in eclipse so i need to convert it into .sql format. If anyone know how to do that by using any tool. I think My sql workbench can do that, but don't know how to do that. 回答1: In the menu click "Database" and then "Forward engineering" (shortcut CTRL+G). UPDATE: Your .mwb file is a proprietary format, which also holds information of the graphical representation in Workbench. Your generated .sql file is a script, which your MySQL server needs