mysql-workbench

Export Data Dictionary of my database using MySQL Workbench CE?

牧云@^-^@ 提交于 2019-12-05 11:58:00
I have a database on server with around 60 tables and now I want to export Data Dictionary of the database (including table structures).. I can do that on my local machine which has PHPMyAdmin , however, I am not able to find way to export it on server using Workbench . Any one who can help? You may install db_doc.lua, a Lua script plugin for MySQL Workbench that generates data dictionaries, similar to those generated by DBDoc on MySQL Workbench Enterprise. Download it from: https://docs.google.com/file/d/0BxXM2ftdUPGeNkM4OGpiYmFxdFk/edit?pli=1 Plugin developer's website http://tmsanchezdev

Error Code 1111. Invalid use of group function

女生的网名这么多〃 提交于 2019-12-05 11:19:37
问题 So this works: SELECT c.name AS country_name, c.population AS country_population, SUM(ci.population) AS city_population, ROUND(100*(SUM(ci.population)/c.population)) AS city_population_percent FROM country AS c JOIN city AS ci ON c.code = ci.countrycode WHERE c.continent = 'Europe' GROUP BY c.name But I need to only grab the city_population_percent values greater than 30, so I try this: SELECT c.name AS country_name, c.population AS country_population, SUM(ci.population) AS city_population,

Can not create table in MySQL workbench 5.2.40

时间秒杀一切 提交于 2019-12-05 10:47:05
I've just created anew schema & want to create a new table. When ever I right click on 2myschema' that I created, and select 'new table', I give a name for the table to be created, but I get the following error: I searched about the error, and I found that the cause if I typed a reserved word such as 'order' but there is no way that table2 is reserved word, and I tried many different names and always get the same message. The column Name is not activated, so I can't enter column names. I figured out that the columns area was not disabled, but it needed scroll down from the thin rectangle as

MySQL Workbench: Unable to see text

爱⌒轻易说出口 提交于 2019-12-05 09:46:47
My installation of MySQL Workbench is rather unusable because of the font/background colours. Initially I assumed that this was due to the Light/Dark theme on Mac OSX Mojave, but I have switched between both and it still remains the same. The problem has only started since I upgraded to Mac OSX Mojave. Is there anything I can do to make things more visible? Edit: My currently selected theme is the 'Light Theme' MySQL Workbench 8.0.13 doesn't support the new dark mode of macOS Mojave yet. This will come with a future release. Until then keep using the light mode if the use of MySQL Workbench

how pass dynamic parameter in mysql view

霸气de小男生 提交于 2019-12-05 06:49:59
I have created this in mysql CREATE VIEW MYVIEW AS ( SELECT A.FNAME , A.LNAME , B.EMAIL FROM EMPLOYEE A, EMPEMAIL B WHERE A.EID = :empId AND A.EID = B.EID AND B.EMAILTYP = :emailType) now i want make " empId " and " emailType " dynamic.I mean pass the value at select time. what need to change in code?? thanx in advance Just create the view without the parameters (i.e., to take care of the join only): CREATE VIEW MYVIEW AS ( SELECT A.FNAME , A.LNAME , B.EMAIL , A.EID AS EID -- added to be used in the WHERE , B.EMAILTYP AS EMAILTYP -- added to be used in the WHERE FROM EMPLOYEE A, EMPEMAIL B

lower_case_table_name Error

核能气质少年 提交于 2019-12-05 05:21:58
I'm trying to set the lower_case_table_name value to 2 , since it is a Windows server. But when I start MySQL Workbench and connect to my server I get the following error: A server is in a system that does not properly support the selected lower_case_table_names option value. Shouldn't a Windows server support a value of 2 ? I'm running MySQL 5.6 on Windows Server 2012 and using MySQL Workbench 6.3. You can safely ignore this error. I recently installed MySQL on a new Windows computer and got this error as well after setting lower_case_table_names to 2 . I don't remember seeing it previously.

Declare syntax error in MYSQL Workbench

点点圈 提交于 2019-12-05 04:35:10
How can I declare and set a variable in my MYSQL WORKBENCH in a stored procedure? It gives a syntax error like unexpected Declare_sym at the first line with a cross sign. I am using the following code for it: Declare StartDate datetime set StartDate = '2013-07-01'; Renish Patel After some googling, I got my answer. A Declare statement must be in between Begin and End statement. Additionally, it must be the first statement after the Begin statement. I got the answer from this wonderful site. 来源: https://stackoverflow.com/questions/17759544/declare-syntax-error-in-mysql-workbench

MySQL Workbench : Server Administration Configuration - HOW TO

笑着哭i 提交于 2019-12-05 04:22:34
I am getting an error upon trying to Create New Server Instance Profile (click this to see the image) : Operation failed: /usr/local/mysql/support-files/mysql.server start is invalid I am not sure where the setting panel is for the workbench to fix the start and stop commands, and the location of '/usr/local/mysql/support-files/mysql.server'. I am using Zend Server CE and I have no directory called '/usr/local/mysql', instead mysql.server is situated in '/usr/local/zend/mysql/bin' but how do I tell Workbench to look for it in the appropriate place. The start and stop commands are : sudo /usr

MySQL Workbench - Is Schema the same thing that Database? [closed]

旧时模样 提交于 2019-12-05 04:19:30
I'm trying to set the Database name for a php code. But I have a doubt, because in Workbench I have a MySQL schema called ** . Is it equivalent to a Database or is a diferent thing? I'm asking that because I haven't found any explicit reference to DB creating in Workbench. Yes, in MySQL, schema and database are synonyms. This even extends to the syntax: CREATE DATABASE foo; DROP SCHEMA foo; CREATE SCHEMA bar; DROP DATABASE bar; Both a schema and a database is basically a namespace for tables. In some other implementations of SQL, the terms database and schema are used differently. 来源: https:/

MySQL ERROR 1005: Can't create table (errno: 150)

别等时光非礼了梦想. 提交于 2019-12-05 04:07:39
I am trying to create the following table create table messaInScena ( data date, ora time, spazio varchar(20), spettacolo varchar(40), postiDisponibili smallint, prezzoIntero decimal(5,2), prezzoRidotto decimal(5,2), prezzoStudenti decimal(5,2), primary key (data, ora, spazio), foreign key (spazio) references spazio(nome) on update cascade on delete set null, foreign key (spettacolo) references spettacolo(titolo) on update cascade on delete set null, constraint RA3_1 check (postiDisponibili >= 0) ) ; but I get the following error: Error Code: 1005 Can not create table 'teatrosql.messainscena'