mysql-workbench

Change comment font color in MySQL Workbench query

最后都变了- 提交于 2019-12-10 22:01:36
问题 Is it possible to change the font color from a light grey to something more vibrant # GET TODAY'S EVENTS ONLY <- this is the font I want to change where event_date = CURDATE(); I am currently using MySQL Workbench version 6.0.9.11421 on Windows 7 OS 回答1: What you want to change in fact is the colors for syntax highlighting. These colors are stored in an xml file and there's currently no GUI to change them. But you can edit the xml file directly (restart MySQL Workbench to pick up any change).

Unable to Run Query in MySQL syntax error unexpected

跟風遠走 提交于 2019-12-10 20:53:13
问题 I'm running Workbench 5.2.47. I have a long procedure I wrote with basic data checking. If a record did not exist in the database, the record would be inserted. The procedure saved with no problems, but MySQL 5.5 throws an error when I try running it. It is long, and has a lot of company sensitive data in it, or I would post it here. I am trying to debug the procedure by executing small chunks of the code, but I can't seem to get Workbench to allow anything I try. MySQL shows how to create a

Mysql-installer showing error : Memoy could not be written

瘦欲@ 提交于 2019-12-10 20:17:49
问题 I am trying to install MySql Workbench and download mysql-installer-web-community-5.7.13.0.msi . When i run this file i got following error: "The instruction at 0x6d4424ff referenced memory at 0x6d4424ff. The memory could not be written" Click Ok to terminate the program. My system config : Windows i7 64 bit machine with 8 GB RAM and 4gb graphics. Anyone knows the solution of this problem??? Thank you 回答1: First of all check if you have installed multiple "mysql installer"(check in "uninstall

MySQL Workbench failing to connect via SSH due to key

。_饼干妹妹 提交于 2019-12-10 19:54:50
问题 Trying to create a remote management connection to the MySQL server via MySQL Workbench v6.3.5 gets me an "ERROR Could not establish SSH connection: ('Bad authentication type', [u'publickey']) (allowed_types=[u'publickey'])." error message. I've already tried the workarounds published on this older post, and this one as well but can't get it to work. The SSH key works fine to establish a command-line connection via OpenSSH on terminal, but Workbench is unable to accept it. 回答1: Ok, I have a

MySQL stored procedure: OUT parameter not being set

*爱你&永不变心* 提交于 2019-12-10 19:01:18
问题 I've got a stored procedure in MySQL that gets the next unique ID from a table, to use as an ID for 2 other tables (not the best way to do it, I'm sure, but I'm modifying someone else's code here). The procedure is as follows: DELIMITER $$ CREATE DEFINER=`root`@`%` PROCEDURE `GetNextID`( OUT id bigint ) BEGIN DECLARE uid VARCHAR(255); SET uid = uuid(); INSERT INTO `ident_column_generator` (u) VALUES (uid); SELECT ID INTO id FROM `ident_column_generator` WHERE u = uid; DELETE FROM `ident

How do I rename a tab in Workbench?

本秂侑毒 提交于 2019-12-10 17:23:57
问题 When I create a new query tab, it is named "SQL File 1" or similar. I want to rename it to identify them better. Is it possible? 回答1: You could have named queries tabs registering them. File > Save Script I'm going post the feature request which I find relevant and I think easy to implement. 回答2: No, this is not possible atm. Please file a feature request (http://bugs.mysql.com) if you want to have that implemented. 回答3: I was successful when I did this: In MySQL Workbench, click on the tab

MySQL WorkBench - How come the Duration time + Fetch time < real waiting time

和自甴很熟 提交于 2019-12-10 17:18:15
问题 I am running a query in mySQL Workbench. It takes 5 minutes from the start of the query to the display of the results. Nevertheless, the following "processing" times are shown (in WorkBench output panel): Duration : 0.000 sec Fetch : 2.562 sec Question : how can this difference be explained : 5 min vs 2.562 sec ? BTW : this question is not a duplicate of people asking what the difference between duration and fetch is... 回答1: I guess the problem is with Duration, the query execution time. I

add a temporary column in SQL, where the values depend from another column

£可爱£侵袭症+ 提交于 2019-12-10 14:49:59
问题 I have this table: ID | name | result | -------------------- 1 | A | 1 | -------------------- 2 | B | 2 | -------------------- 3 | C | 1 | -------------------- 1 | A | 2 | -------------------- 4 | E | 2 | -------------------- I want to add a new temporary column next to |result|, and where result=1 the value should be 100, and where result=2 the value should be 80 so it should look like this: ID | name | result | NewColumn| ------------------------------- 1 | A | 1 | 100 | -------------------

Parameterize MySQL workbench statements: How to define variables

放肆的年华 提交于 2019-12-10 13:53:17
问题 I'm trying to parameterize a set of frequently used queries in my workbench. This works: select * from providers where id='112233'; This WbVarDef var1=112233; select * from providers where id='$[var1]'; gives error Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from providers where id='112233'' at line 1 My reference was this. Just to be clear, these are in the MySQL workbench and not a

Why do I get a syntax error when using CAST in MySQL?

前提是你 提交于 2019-12-10 12:57:41
问题 I am using MySQL workbench v5.2.44 CE. I am running it against a local MySQL 5.5 install. I am trying to use the CAST function, but keep getting the following error: syntax error, unexpected INT_SYM It doesn't matter what the source and target date types are. The only time it doesn't give me an error is when the target datatype is DECIMAL . Here is an example: SELECT CAST(IFNULL(comboCount, 1) * COUNT(partID) AS INT) INTO comboCount FROM productOption I have tried everything, but nothing