<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Workbench - Database Modeling</title>
        <description>Forum for general discussions about MySQL Workbench.</description>
        <link>http://forums.mysql.com/list.php?153</link>
        <lastBuildDate>Mon, 20 May 2013 12:32:02 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?153,586730,586730#msg-586730</guid>
            <title>Forward Engineer - Force insert order for FK constraints? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,586730,586730#msg-586730</link>
            <description><![CDATA[ I'm having an issue with the Forward Engineer when generating INSERT statements because the order the INSERT statements are ran causes some to fail FK constraints.<br />
<br />
Is there a way to force the order of the INSERT statements (without editing the resulting script everytime), or to have the FKs defined after the INSERTs?]]></description>
            <dc:creator>Courtney Miles</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Sun, 19 May 2013 07:07:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,585098,585098#msg-585098</guid>
            <title>Undiagrammed Catalog Tables - How To Find (3 replies)</title>
            <link>http://forums.mysql.com/read.php?153,585098,585098#msg-585098</link>
            <description><![CDATA[ (I posted this in the wrong section originally - sorry)<br />
<br />
I have got the catalog and diagrams to work, and can see how they relate.<br />
<br />
How can I find tables that are in the catalog but not on any diagram? It is important to me that all tables have been documented. And the catalogue list only shows it for the current diagram.<br />
<br />
I suppose I will have to write a script - but surely this is a common requirement.<br />
<br />
Thanks<br />
<br />
Lawrence]]></description>
            <dc:creator>lawrence karthauser</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Thu, 02 May 2013 08:50:26 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,584599,584599#msg-584599</guid>
            <title>Design Issue: How to design the data model for SAAS based application? (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,584599,584599#msg-584599</link>
            <description><![CDATA[ Designing data model for STANDARD and USER SPECIFIC records for SAAS based model.<br />
<br />
In my SAAS based application, I have users and their associated (One to One) roles.  Tenants can create their own roles specific to their company and assigned to their users.   And the SYSTEM have some standard roles provided for the tenants to use.   The SYSTEM defined standard roles are common to all tenants.<br />
<br />
I have the ROLE and COMPANY tables as follows:<br />
<br />
Table: COMPANY<br />
COMPANY_ID	|	COMPANY_NAME	<br />
100		|	Acme Inc.<br />
101		|	E Technologies.<br />
<br />
Table: ROLE<br />
ROLE_ID	|	COMPANY_ID	| ROLE_NAME		| IS_STANDARD_ROLE<br />
1		|			| ADMINISTRATOR	|Yes<br />
2		|			|MANAGER		|Yes<br />
3		|	100		|MyAdmin		|No<br />
4		|	100		|MySpecialist		|No<br />
5		|	101		|Supervisor		|No<br />
<br />
Here I have ROLE.COMPANY_ID references COMPANY.COMPANY_ID<br />
<br />
I am trying to figure out the best way to accommodate both standard and user defined roles in the same table and have Hibernate 3.0 with annotations can pull with no complexity. <br />
<br />
Here are the alternatives I am having in place.<br />
<br />
1.	I can have both standard and customer defined roles in the same table as above and leave the ROLE.COMPANY_ID field blank(if mysql permits) for standard. But the challenge is for hibernate3.0 to pull both ROLE.COMPANY_ID=100 OR ROLE.COMPANY_ID=&lt;blank&gt;<br />
2.	I can define a dummy company called SYSTEM in the company table and refer all standard/SYSTEM records to the Company called SYSTEM. Again the same challenge to pull records with OR in hinernate 3.0 with aootations.<br />
Not sure, how to do this OR clause on hibernate 3.0 with annotations without custom HQL? Some how , team don’t like the idea of dummy company record in database.<br />
3.	I can create copies of standard records for each tenant and assign them to their own company_id. But the chanllange here is, I will have at least 80 standard records for each tenant and If I expect 1000 free trail tenants, I will end up allocating 80,000 records space.  Any thought with this design?  Not a clover option, but Choose this with no options left..<br />
Instead I would prefer to have one copy of standard records, where all tenants can share as they are SYSTEM records.<br />
<br />
Any thoughts of Mr. Perfect’s design in terms of programmability, maintenance, DB space for SAAS startup.?]]></description>
            <dc:creator>kkk ttt</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 22 Apr 2013 16:26:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,583007,583007#msg-583007</guid>
            <title>work with more than 1 database at a time (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,583007,583007#msg-583007</link>
            <description><![CDATA[ Is there a way in the Workbench that you can work with multiple databases at once?  I have the latest release installed.]]></description>
            <dc:creator>Chris Bassett</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Wed, 03 Apr 2013 07:44:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,581232,581232#msg-581232</guid>
            <title>relationship notation explanation (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,581232,581232#msg-581232</link>
            <description><![CDATA[ I am the &quot;Connect to Columns&quot; relationship notation and there are some things which need explanation.<br />
<br />
In some tables and in the column where the line(the black line which depicts the relationship between the 2 columns) leads there is the number 1 and in other cases there is an 8 but lying horizontally (I hope you understand what I am talking about).<br />
<br />
What the above two mean?]]></description>
            <dc:creator>Dimitris Papageorgiou</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Thu, 14 Mar 2013 08:33:21 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,581069,581069#msg-581069</guid>
            <title>How to create visitors comments database for website (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,581069,581069#msg-581069</link>
            <description><![CDATA[ Where do we find the code or method to create a simple database for visitors comments on a yet-to-be-launched website? Website built in Dreamweaver &amp; assume we're using php.]]></description>
            <dc:creator>David Danon</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Tue, 12 Mar 2013 02:44:48 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,580644,580644#msg-580644</guid>
            <title>EER Diagram tables are rearranged on re-open (2 replies)</title>
            <link>http://forums.mysql.com/read.php?153,580644,580644#msg-580644</link>
            <description><![CDATA[ Hi,<br />
<br />
I am using Mysql Workbench to redesign my data model.<br />
After arranging tables in an EER Diagram in a certain way, saving and closing the document, the arrangement gets lost. When I reopen the model, all tables are huddled together in the top left corner.<br />
Furthermore, I can only move them horizontally, they seem to 'stick' to the upper border of the diagram.<br />
<br />
I don't think this is expected behavior?<br />
Am I missing something?<br />
<br />
Best regards...<br />
c@cba]]></description>
            <dc:creator>C. Y.</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Wed, 06 Mar 2013 12:26:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,580397,580397#msg-580397</guid>
            <title>Engine and collation (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,580397,580397#msg-580397</link>
            <description><![CDATA[ Hi,<br />
<br />
When i right click on a table and select &quot;copy SQL to clipboard&quot;, i get for example such script:<br />
<br />
CREATE  TABLE IF NOT EXISTS `mydb`.`industries` (<br />
  `id` INT(11) NOT NULL AUTO_INCREMENT ,<br />
  `code` VARCHAR(100) NOT NULL ,<br />
  PRIMARY KEY (`id`) )<br />
ENGINE = MyISAM<br />
DEFAULT CHARACTER SET = utf8<br />
COLLATE = utf8_unicode_ci<br />
COMMENT = '			'&quot;<br />
<br />
1. is it possible to get sql script but WITHOUT &quot;schema&quot; ? in my case the <br />
&quot;mydb&quot; schema before table name ?<br />
2. how can i set the same default charset/collation for all tables in this schema ?<br />
3. how can i set the same engine for all tables in this schema ? I have some former tables that stayed in innoDB while in workbench preferences i set MyISAM engine.<br />
<br />
thx.]]></description>
            <dc:creator>Alain Roger</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 04 Mar 2013 09:10:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,580396,580396#msg-580396</guid>
            <title>colorize table or group of tables (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,580396,580396#msg-580396</link>
            <description><![CDATA[ Hi,<br />
<br />
is it possible to colorize tables to create (visually) a group of table (grouped by theme or independency) ?<br />
<br />
thx]]></description>
            <dc:creator>Alain Roger</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 04 Mar 2013 09:13:43 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,580220,580220#msg-580220</guid>
            <title>hidden ER diagram (3 replies)</title>
            <link>http://forums.mysql.com/read.php?153,580220,580220#msg-580220</link>
            <description><![CDATA[ Hi,<br />
<br />
i'm trying to use Workbench 5.2.47 to create a model of my database.<br />
<br />
In the table definition window, if i press DELete key to remove a column name, automatically, all tables and relationships in the diagram view disappear.<br />
After that i only have 1 option, it's to drag and drop all tables again on the page to view how they are and their relationships.<br />
<br />
This is not standard behavior i guess.... i had the same issue with previous version of Workbench.<br />
<br />
So is there an option to set to avoid such behavior ?<br />
I always would like to see the diagram on the top windows part (as it is by default).<br />
<br />
thx]]></description>
            <dc:creator>Alain Roger</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 04 Mar 2013 09:20:15 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,579331,579331#msg-579331</guid>
            <title>Database layout (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,579331,579331#msg-579331</link>
            <description><![CDATA[ &quot;I'm a Newbie to SQL. I need assistance with my Database layout. I want to create a electronic parts catolgue to hold all the parts of a mulitply vehicles. This is what I have so far. It seems that I will havedata redundency issue but can get around them. An ideas to simply this????<br />
<br />
+----------------------------------+<br />
| Tables_in_test4                  |<br />
+----------------------------------+<br />
| vehicle                    |<br />
| groupsection                     |<br />
| groupsection_has_vehicle         |<br />
| parts                            |<br />
| parts_has_subsection_has_vehicle |<br />
| subsection                       |<br />
| subsection_has_vehicle           |<br />
+----------------------------------+<br />
<br />
<b><br />
vehicle  </b> <br />
+----------+-------------+------+-----+---------+-------+<br />
| Field    | Type        | Null | Key | Default | Extra |<br />
+----------+-------------+------+-----+---------+-------+<br />
| ModelVin | varchar(20) | NO   | PRI | NULL    |       |<br />
| Type     | varchar(25) | NO   |     | NULL    |       |<br />
| Vin      | varchar(15) | NO   |     | NULL    |       |<br />
+----------+-------------+------+-----+---------+-------+<br />
<br />
<b>groupsection</b><br />
+-----------+-------------+------+-----+---------+-------+<br />
| Field     | Type        | Null | Key | Default | Extra |<br />
+-----------+-------------+------+-----+---------+-------+<br />
| SectionID | varchar(4)  | NO   | PRI | NULL    |       |<br />
| Section   | varchar(45) | NO   |     | NULL    |       |<br />
| GroupID   | varchar(4)  | NO   | PRI | NULL    |       |<br />
| Group     | varchar(45) | NO   |     | NULL    |       |<br />
+-----------+-------------+------+-----+---------+-------+<br />
<br />
<b>subsection</b><br />
+--------------+-------------+------+-----+---------+-------+<br />
| Field        | Type        | Null | Key | Default | Extra |<br />
+--------------+-------------+------+-----+---------+-------+<br />
| SubSectionID | varchar(4)  | NO   | PRI | NULL    |       |<br />
| SubSection   | varchar(45) | NO   |     | NULL    |       |<br />
+--------------+-------------+------+-----+---------+-------+<br />
<br />
<b>parts</b><br />
+---------+-------------+------+-----+---------+-------+<br />
| Field   | Type        | Null | Key | Default | Extra |<br />
+---------+-------------+------+-----+---------+-------+<br />
| PartsNo | varchar(15) | NO   | PRI | NULL    |       |<br />
| ItemNo  | varchar(3)  | NO   |     | NULL    |       |<br />
| Desc    | varchar(45) | NO   |     | NULL    |       |<br />
| Qty     | varchar(4)  | NO   |     | NULL    |       |<br />
| Remark  | varchar(45) | YES  |     | NULL    |       |<br />
| Pic     | varchar(15) | NO   | PRI | NULL    |       |<br />
+---------+-------------+------+-----+---------+-------+<br />
<br />
<br />
<b><br />
groupsection_has_vehicle</b><br />
+------------------------+-------------+------+-----+---------+-------+<br />
| Field                  | Type        | Null | Key | Default | Extra |<br />
+------------------------+-------------+------+-----+---------+-------+<br />
| GroupSection_SectionID | varchar(4)  | NO   | PRI | NULL    |       |<br />
| GroupSection_GroupID   | varchar(4)  | NO   | PRI | NULL    |       |<br />
| Vehicle_ModelVin       | varchar(20) | NO   | PRI | NULL    |       |<br />
+------------------------+-------------+------+-----+---------<br />
<br />
<b><br />
subsection_has_vehicle</b><br />
+-------------------------+-------------+------+-----+---------<br />
| Field                   | Type        | Null | Key | Default<br />
+-------------------------+-------------+------+-----+---------<br />
| SubSection_SubSectionID | varchar(4)  | NO   | PRI | NULL<br />
| Vehicle_ModelVin        | varchar(20) | NO   | PRI | NULL<br />
| GroupSection_SectionID  | varchar(4)  | NO   | PRI | NULL<br />
| GroupSection_GroupID    | varchar(4)  | NO   | PRI | NULL<br />
+-------------------------+-------------+------+-----+---------<br />
<br />
<br />
<b>parts_has_subsection_has_vehicle</b><br />
+------------------------------------------------+-------------+------+-----+---<br />
------+-------+<br />
| Field                                          | Type        | Null | Key | De<br />
fault | Extra |<br />
+------------------------------------------------+-------------+------+-----+---<br />
------+-------+<br />
| Parts_PartsNo                                  | varchar(15) | NO   | PRI | NU<br />
LL    |       |<br />
| Parts_Pic                                      | varchar(15) | NO   | PRI | NU<br />
LL    |       |<br />
| SubSection_has_Vehicle_SubSection_SubSectionID | varchar(4)  | NO   | PRI | NU<br />
LL    |       |<br />
| SubSection_has_Vehicle_Vehicle_ModelVin        | varchar(20) | NO   | PRI | NU<br />
LL    |       |<br />
| SubSection_has_Vehicle_GroupSection_SectionID  | varchar(4)  | NO   | PRI | NU<br />
LL    |       |<br />
| SubSection_has_Vehicle_GroupSection_GroupID    | varchar(4)  | NO   | PRI | NU<br />
LL    |       |<br />
+------------------------------------------------+-------------+------+-----+---&quot;]]></description>
            <dc:creator>Des Govender</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Sun, 17 Feb 2013 15:56:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,579278,579278#msg-579278</guid>
            <title>EER Diagram - Coloring Fields (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,579278,579278#msg-579278</link>
            <description><![CDATA[ Dear all,<br />
<br />
I'm modeling a database using the Data Modeling Component in the workbench.<br />
<br />
I'm trying to color code specific Table Fields (Columns), for example, highlight integer columns with green, or highlight unused/empty columns with red.<br />
<br />
However it seems I can't do that in the tool... I can only color the whole table. could you please let me know if this feature is available and if yes how to do it...<br />
<br />
Many thanks,]]></description>
            <dc:creator>Hussam Zabalawi</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 18 Feb 2013 07:58:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,578171,578171#msg-578171</guid>
            <title>Best Practice Database Design (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,578171,578171#msg-578171</link>
            <description><![CDATA[ Hey I am new to these forums so first i would like to say hey to everyone. <br />
<br />
I am starting a new project and was looking for some advice. I am building a database where users need to make selections of multiple choice questions. Each unique user will have to answer 380 questions over several months. I am not sure of the most efficient way to store these selections (1,2 or 3).<br />
<br />
I could either have 1 row per user with each selection being one column. This would result in each row being about 390 columns each.<br />
<br />
Alternatively i could simply have each unique selection be a new row referencing which user_id, which question_id and what their selection was. This would result in thousands of rows being created in the database the more users that join the greater the number. <br />
<br />
I will be using and displaying this information on a website driven by PHP so either solution will display fine but i am concerned about the speed of my website. Would either of the two solutions be better or worse and why? I don't want to run into any database integrity issues or anything like that.<br />
<br />
So the question is whats best, to have thousands of rows with only a small amount of data. Or hundreds of rows with loads of columns. <br />
<br />
Thanks in advance,<br />
Mike]]></description>
            <dc:creator>Michael McLean</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Wed, 30 Jan 2013 07:58:32 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,578034,578034#msg-578034</guid>
            <title>DATETIME millisecond datatype (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,578034,578034#msg-578034</link>
            <description><![CDATA[ Does anyone know how to add millisecond DATATIME(6) fields to models in MySqlWorkbench 5.2.45. Whenever I try it in the modeling interfaces, it reverts to DATETME as soon as I leave the field, i.e., it deletes the (6). <br />
<br />
Am I missing something, or maybe a bug?<br />
<br />
Thanks.<br />
AUstin Kalb]]></description>
            <dc:creator>Austin Kalb</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 28 Jan 2013 07:52:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,577933,577933#msg-577933</guid>
            <title>Multi-valued SET element? (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,577933,577933#msg-577933</link>
            <description><![CDATA[ Hello,<br />
<br />
I am trying to model a student research data collection form and having a bit of trouble, so I thought I would see if anyone could help by pointing me to any information that might help me understand how to do this.<br />
<br />
The form has a field where the student can enter the collection location, and multiple selections are allowed. Obviously a SET would work for this, except for one entry. The selections are &quot;Beach&quot;, &quot;Bay&quot;, &quot;Surf&quot;, &quot;Dunes&quot;, and &quot;Other&quot;. Selecting &quot;Other&quot; is to bring up a free-form text field, and I'm having trouble modeling the relationship between the &quot;Other&quot; input and collection row it is associated with. I can store the &quot;Other&quot; input as a VARCHAR in another table, but how do I relate it back to the specific collection it refers to? (Other is limited to 127 characters)<br />
<br />
<pre class="bbcode">
DROP TABLE IF EXISTS data_collection.student ;
CREATE  TABLE IF NOT EXISTS data_collection.student
(
  student_pk        INT         NOT NULL   AUTO_INCREMENT,
  student_id        CHAR(10)    NOT NULL,
  student_surname   VARCHAR(45) NOT NULL,
  student_givenname VARCHAR(45) NOT NULL,
  PRIMARY KEY (student_pk),
  UNIQUE INDEX student_id_UNIQUE (student_id ASC)
)

DROP TABLE IF EXISTS data_collection.collection ;
CREATE  TABLE IF NOT EXISTS data_collection.collection
(
  collection_pk    INT   NOT NULL   AUTO_INCREMENT,
  collection_date  DATE  NOT NULL,
  collection_place SET('Beach', 'Bay', 'Surf', 'Other') NOT NULL,
  PRIMARY KEY (collection_pk)
)

DROP TABLE IF EXISTS data_collection.student_collection ;
CREATE  TABLE IF NOT EXISTS data_collection.student_collection
(
  student_collection_pk INT        NOT NULL  AUTO_INCREMENT,
  student INT(11)       NOT NULL,
  collection INT(11)    NOT NULL,
  PRIMARY KEY (student_collection_pk),
  INDEX fk_student (student ASC),
  INDEX fk_collection (collection ASC),
  CONSTRAINT fk_student
    FOREIGN KEY (student )
    REFERENCES data_collection.student (student_pk )
    ON DELETE RESTRICT
    ON UPDATE CASCADE,
  CONSTRAINT fk_collection
    FOREIGN KEY (collection )
    REFERENCES data_collection.collection (collection_pk )
    ON DELETE RESTRICT
    ON UPDATE CASCADE
)
</pre>]]></description>
            <dc:creator>Melvin Call</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Fri, 25 Jan 2013 18:47:08 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,577917,577917#msg-577917</guid>
            <title>Broken Catalog Tab (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,577917,577917#msg-577917</link>
            <description><![CDATA[ Hi, <br />
<br />
Since a number of versions, the catalog tab in diagram is completely broken on linux (ubuntu). As soon as you expand tables and mouse-over a table, it turns into gibberish. <br />
<br />
It is unusable, and should have been fixed by now. Very difficult to work with...]]></description>
            <dc:creator>Tomasz Rakowski</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 28 Jan 2013 07:46:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,577487,577487#msg-577487</guid>
            <title>Changing the page size for a Model print out (6 replies)</title>
            <link>http://forums.mysql.com/read.php?153,577487,577487#msg-577487</link>
            <description><![CDATA[ I've got several legacy databases for which all the original developers have long since left the company.<br />
<br />
In order to get a handle on the data structure and relationships, I've used Workbench to produce diagrams that mostly fit in either a 2x2 or 2x3 grid in the modeler.  <br />
<br />
I'd like to be able to print them out 24x36 paper.  Printer accepts PDFs, but I haven't found a way to get Workbench to export to pdf  anything other than 8.5x11.<br />
<br />
Is there any way to get Workbench to spit out a pdf using a page size of 24x36 ?]]></description>
            <dc:creator>Mike Moran</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 18 Feb 2013 07:57:16 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,576931,576931#msg-576931</guid>
            <title>Complex drupal query (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,576931,576931#msg-576931</link>
            <description><![CDATA[ I am looking for weeks to the following issue.<br />
A friend of mine made a query in Access runs fine.<br />
My DB is Mysql using Drupal 7.<br />
I used copy and paste for the table create statements.<br />
<br />
I have the following tables at the bottom I describe my view. The complex query runs on the view:<br />
<br />
delimiter $$<br />
<br />
A table with nodes (D&amp; way):<br />
delimiter $$<br />
<br />
CREATE TABLE `node` (<br />
  `nid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'The primary identifier for a node.',<br />
  `vid` int(10) unsigned DEFAULT NULL COMMENT 'The current node_revision.vid version identifier.',<br />
  `type` varchar(32) NOT NULL DEFAULT '' COMMENT 'The node_type.type of this node.',<br />
  `language` varchar(12) NOT NULL DEFAULT '' COMMENT 'The languages.language of this node.',<br />
  `title` varchar(255) NOT NULL DEFAULT '' COMMENT 'The title of this node, always treated as non-markup plain text.',<br />
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT 'The users.uid that owns this node; initially, this is the user that created it.',<br />
  `status` int(11) NOT NULL DEFAULT '1' COMMENT 'Boolean indicating whether the node is published (visible to non-administrators).',<br />
  `created` int(11) NOT NULL DEFAULT '0' COMMENT 'The Unix timestamp when the node was created.',<br />
  `changed` int(11) NOT NULL DEFAULT '0' COMMENT 'The Unix timestamp when the node was most recently saved.',<br />
  `comment` int(11) NOT NULL DEFAULT '0' COMMENT 'Whether comments are allowed on this node: 0 = no, 1 = closed (read only), 2 = open (read/write).',<br />
  `promote` int(11) NOT NULL DEFAULT '0' COMMENT 'Boolean indicating whether the node should be displayed on the front page.',<br />
  `sticky` int(11) NOT NULL DEFAULT '0' COMMENT 'Boolean indicating whether the node should be displayed at the top of lists in which it appears.',<br />
  `tnid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'The translation set id for this node, which equals the node id of the source post in each set.',<br />
  `translate` int(11) NOT NULL DEFAULT '0' COMMENT 'A boolean indicating whether this translation page needs to be updated.',<br />
  PRIMARY KEY (`nid`),<br />
  UNIQUE KEY `vid` (`vid`),<br />
  KEY `node_changed` (`changed`),<br />
  KEY `node_created` (`created`),<br />
  KEY `node_frontpage` (`promote`,`status`,`sticky`,`created`),<br />
  KEY `node_status_type` (`status`,`type`,`nid`),<br />
  KEY `node_title_type` (`title`,`type`(4)),<br />
  KEY `node_type` (`type`(4)),<br />
  KEY `uid` (`uid`),<br />
  KEY `tnid` (`tnid`),<br />
  KEY `translate` (`translate`)<br />
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='The base table for nodes.'$$<br />
<br />
A table holding week prices:<br />
<br />
delimiter $$<br />
<br />
CREATE TABLE `field_data_field_price` (<br />
  `entity_type` varchar(128) NOT NULL DEFAULT '' COMMENT 'The entity type this data is attached to',<br />
  `bundle` varchar(128) NOT NULL DEFAULT '' COMMENT 'The field instance bundle to which this row belongs, used when deleting a field instance',<br />
  `deleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'A boolean indicating whether this data item has been deleted',<br />
  `entity_id` int(10) unsigned NOT NULL COMMENT 'The entity id this data is attached to',<br />
  `revision_id` int(10) unsigned DEFAULT NULL COMMENT 'The entity revision id this data is attached to, or NULL if the entity type is not versioned',<br />
  `language` varchar(32) NOT NULL DEFAULT '' COMMENT 'The language for this data item.',<br />
  `delta` int(10) unsigned NOT NULL COMMENT 'The sequence number for this data item, used for multi-value fields',<br />
  `field_price_value` int(11) DEFAULT NULL,<br />
  PRIMARY KEY (`entity_type`,`entity_id`,`deleted`,`delta`,`language`),<br />
  KEY `entity_type` (`entity_type`),<br />
  KEY `bundle` (`bundle`),<br />
  KEY `deleted` (`deleted`),<br />
  KEY `entity_id` (`entity_id`),<br />
  KEY `revision_id` (`revision_id`),<br />
  KEY `language` (`language`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Data storage for field 5 (field_price)'$$<br />
<br />
A table indicating a week is free:<br />
<br />
delimiter $$<br />
<br />
CREATE TABLE `field_data_field_free` (<br />
  `entity_type` varchar(128) NOT NULL DEFAULT '' COMMENT 'The entity type this data is attached to',<br />
  `bundle` varchar(128) NOT NULL DEFAULT '' COMMENT 'The field instance bundle to which this row belongs, used when deleting a field instance',<br />
  `deleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'A boolean indicating whether this data item has been deleted',<br />
  `entity_id` int(10) unsigned NOT NULL COMMENT 'The entity id this data is attached to',<br />
  `revision_id` int(10) unsigned DEFAULT NULL COMMENT 'The entity revision id this data is attached to, or NULL if the entity type is not versioned',<br />
  `language` varchar(32) NOT NULL DEFAULT '' COMMENT 'The language for this data item.',<br />
  `delta` int(10) unsigned NOT NULL COMMENT 'The sequence number for this data item, used for multi-value fields',<br />
  `field_free_value` int(11) DEFAULT NULL,<br />
  PRIMARY KEY (`entity_type`,`entity_id`,`deleted`,`delta`,`language`),<br />
  KEY `entity_type` (`entity_type`),<br />
  KEY `bundle` (`bundle`),<br />
  KEY `deleted` (`deleted`),<br />
  KEY `entity_id` (`entity_id`),<br />
  KEY `revision_id` (`revision_id`),<br />
  KEY `language` (`language`),<br />
  KEY `field_free_value` (`field_free_value`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Data storage for field 6 (field_free)'$$<br />
<br />
<br />
delimiter $$<br />
CREATE TABLE `field_data_field_reserved` (<br />
  `entity_type` varchar(128) NOT NULL DEFAULT '' COMMENT 'The entity type this data is attached to',<br />
  `bundle` varchar(128) NOT NULL DEFAULT '' COMMENT 'The field instance bundle to which this row belongs, used when deleting a field instance',<br />
  `deleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'A boolean indicating whether this data item has been deleted',<br />
  `entity_id` int(10) unsigned NOT NULL COMMENT 'The entity id this data is attached to',<br />
  `revision_id` int(10) unsigned DEFAULT NULL COMMENT 'The entity revision id this data is attached to, or NULL if the entity type is not versioned',<br />
  `language` varchar(32) NOT NULL DEFAULT '' COMMENT 'The language for this data item.',<br />
  `delta` int(10) unsigned NOT NULL COMMENT 'The sequence number for this data item, used for multi-value fields',<br />
  `field_reserved_value` int(11) DEFAULT NULL,<br />
  PRIMARY KEY (`entity_type`,`entity_id`,`deleted`,`delta`,`language`),<br />
  KEY `entity_type` (`entity_type`),<br />
  KEY `bundle` (`bundle`),<br />
  KEY `deleted` (`deleted`),<br />
  KEY `entity_id` (`entity_id`),<br />
  KEY `revision_id` (`revision_id`),<br />
  KEY `language` (`language`),<br />
  KEY `field_reserved_value` (`field_reserved_value`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Data storage for field 7 (field_reserved)'$$<br />
<br />
A table with week numbers and dates:<br />
<br />
CREATE TABLE `field_data_field_saturday` (<br />
  `entity_type` varchar(128) NOT NULL DEFAULT '' COMMENT 'The entity type this data is attached to',<br />
  `bundle` varchar(128) NOT NULL DEFAULT '' COMMENT 'The field instance bundle to which this row belongs, used when deleting a field instance',<br />
  `deleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'A boolean indicating whether this data item has been deleted',<br />
  `entity_id` int(10) unsigned NOT NULL COMMENT 'The entity id this data is attached to',<br />
  `revision_id` int(10) unsigned DEFAULT NULL COMMENT 'The entity revision id this data is attached to, or NULL if the entity type is not versioned',<br />
  `language` varchar(32) NOT NULL DEFAULT '' COMMENT 'The language for this data item.',<br />
  `delta` int(10) unsigned NOT NULL COMMENT 'The sequence number for this data item, used for multi-value fields',<br />
  `field_saturday_value` datetime DEFAULT NULL,<br />
  PRIMARY KEY (`entity_type`,`entity_id`,`deleted`,`delta`,`language`),<br />
  KEY `entity_type` (`entity_type`),<br />
  KEY `bundle` (`bundle`),<br />
  KEY `deleted` (`deleted`),<br />
  KEY `entity_id` (`entity_id`),<br />
  KEY `revision_id` (`revision_id`),<br />
  KEY `language` (`language`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Data storage for field 111 (field_saturday)'$$<br />
<br />
To make things simpeler I created a view like this:<br />
<br />
delimiter $$<br />
<br />
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER <br />
VIEW `acquia_drupal4`.`vweek` AS select `acquia_drupal4`.`node`.`title` <br />
AS `title`,`acquia_drupal4`.`field_data_field_saturday`.`field_saturday_value` <br />
AS `saturday`,`acquia_drupal4`.`field_data_field_price`.`field_price_value` <br />
AS `price`,`acquia_drupal4`.`field_data_field_free`.`field_free_value` <br />
AS `free`,`acquia_drupal4`.`field_data_field_reserved`.`field_reserved_value` <br />
AS `reserved` from ((((`acquia_drupal4`.`node` left join `acquia_drupal4`.`field_data_field_free` <br />
on((`acquia_drupal4`.`field_data_field_free`.`entity_id` = `acquia_drupal4`.`node`.`nid`))) <br />
left join `acquia_drupal4`.`field_data_field_price` on((`acquia_drupal4`.`field_data_field_price`.`entity_id` = `acquia_drupal4`.`node`.`nid`))) <br />
left join `acquia_drupal4`.`field_data_field_saturday` on((`acquia_drupal4`.`field_data_field_saturday`.`entity_id` = `acquia_drupal4`.`node`.`nid`))) <br />
left join `acquia_drupal4`.`field_data_field_reserved` on((`acquia_drupal4`.`field_data_field_reserved`.`entity_id` = `acquia_drupal4`.`node`.`nid`))) <br />
where (`acquia_drupal4`.`node`.`type` = 'week')$$<br />
<br />
The query on the view like this (the 2 is number of weeks which is a variable):<br />
<br />
select alle.title,<br />
  alle.saturday as startdatum,<br />
  DATE_ADD(alle.saturday,INTERVAL (2 * 7) DAY),<br />
  MAX (res.reserved) as reserved,<br />
<br />
  sum (res.price) as price<br />
from ((vweek as alle<br />
left outer join vweek as occ<br />
on (occ.saturday &gt;= alle.saturday<br />
   and occ.saturday &lt; DATE_ADD(alle.saturday,INTERVAL (2 * 7) DAY)<br />
   and occ.free = 0)<br />
)<br />
left outer join vweek as res<br />
on (res.saturday &gt;= alle.saturday<br />
   and res.saturday &lt; DATE_ADD(alle.saturday,INTERVAL (2 * 7) DAY))<br />
)<br />
where occ.saturday is null<br />
group by alle.title,  alle.saturday<br />
<br />
Error Code: 1630. FUNCTION acquia_drupal4.MAX does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual    0.037 sec<br />
[5:49pm]<br />
<br />
Also complains on sum function.<br />
<br />
Thanks for patience and help!<br />
<br />
John]]></description>
            <dc:creator>John Ophof</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Sun, 06 Jan 2013 17:49:48 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,576746,576746#msg-576746</guid>
            <title>MySQL Workbench 5.2.45: Upgrade from MySQL Administrator, MySQL Query Browser (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,576746,576746#msg-576746</link>
            <description><![CDATA[ MySQL Workbench 5.2.45: Upgrade from MySQL Administrator, MySQL Query Browser<br />
<a href="http://mysqlworkbench.org/2012/12/mysql-workbench-5-2-45-ga-released/"  rel="nofollow">http://mysqlworkbench.org/2012/12/mysql-workbench-5-2-45-ga-released/</a><br />
<br />
WB 5.2 includes:<br />
- Model (upgrade from DBDesigner)<br />
- Query (upgrade from MySQL Query Browser)<br />
- Admin (upgrade from MySQL Administrator)<br />
- Migration (upgrade from MySQL Migration Toolkit)<br />
- SSH-Tunnel (new)<br />
<br />
<br />
WB Downloads: <a href="http://dev.mysql.com/downloads/workbench/"  rel="nofollow">http://dev.mysql.com/downloads/workbench/</a><br />
WB Forums: <a href="http://forums.mysql.com/index.php?151"  rel="nofollow">http://forums.mysql.com/index.php?151</a><br />
WB Blogs: <a href="http://mysqlworkbench.org/x.php?151"  rel="nofollow">http://mysqlworkbench.org/x.php?151</a><br />
WB Blogs: <a href="http://mysqlworkbench.org/"  rel="nofollow">http://mysqlworkbench.org/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Thu, 03 Jan 2013 00:05:52 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,576263,576263#msg-576263</guid>
            <title>Problem to display relationships... (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,576263,576263#msg-576263</link>
            <description><![CDATA[ Hi,<br />
<br />
I'm using MySQL Workbench from two PC. On the first (WIndows Vista) there is no problem and I created an EER diagram. On second (Windows XP service pack 3) I use reverse enginering to create the model from my INODB Database. The EER schema doesn't dislay all relationships, but only some of them... But I can see all relationships, one by one if I select one and the other one... I swap from one style to display relationship to the other but the result is the same. I'm wonderer if there is a problem with .Net version (or Java I don't know what is the technologie use by Workbench). But I installed this week the last .Net version... Is it a bug ?<br />
<br />
Thank for your help.]]></description>
            <dc:creator>Patrick Gelin</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Thu, 03 Jan 2013 08:34:24 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,576151,576151#msg-576151</guid>
            <title>Impossble to connect db 4free (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,576151,576151#msg-576151</link>
            <description><![CDATA[ Hi everyone since yesterday i try to connect db4free server but it fails.Event if i try to precise my database name as defaultshema the programm crash when i try to query.Please help i'm just a newbie. Down is the log.Thanks.<br />
<br />
10:33:58 [ERR][      Workbench]: Console redirection failed.<br />
10:33:58 [INF][      WBContext]: Parsing application arguments.<br />
10:33:58 [INF][      WBContext]:     C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44\MySQLWorkbench.exe<br />
10:33:58 [INF][      Workbench]: Starting up Workbench<br />
10:33:58 [INF][      Workbench]: Current environment:<br />
	Command line: &quot;C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44\MySQLWorkbench.exe&quot; <br />
	CurrentDirectory: C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44<br />
	HasShutdownStarted: False<br />
	OSVersion: Microsoft Windows NT 6.1.7600.0<br />
	SystemDirectory: C:\Windows\system32<br />
	TickCount: 2849717<br />
	UserInteractive: True<br />
	Version: 4.0.30319.296<br />
	WorkingSet: 29519872<br />
10:33:58 [INF][      Workbench]: Environment variables:<br />
	Path = C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;E:\Programmes\MKVToolNix;C:\Program Files\Lucidlogix Technologies\VIRTU MVP;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT<br />
	TEMP = C:\Users\ALEXAN~1\AppData\Local\Temp<br />
	SESSIONNAME = Console<br />
	PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC<br />
	USERDOMAIN = Alexandre-PC<br />
	asl.log = Destination=file<br />
	ProgramW6432 = C:\Program Files<br />
	ProgramFiles(x86) = C:\Program Files (x86)<br />
	APPDATA = C:\Users\Alexandre\AppData\Roaming<br />
	windir = C:\Windows<br />
	LOCALAPPDATA = C:\Users\Alexandre\AppData\Local<br />
	CommonProgramW6432 = C:\Program Files\Common Files<br />
	TMP = C:\Users\ALEXAN~1\AppData\Local\Temp<br />
	USERPROFILE = C:\Users\Alexandre<br />
	ProgramFiles = C:\Program Files (x86)<br />
	CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files<br />
	FP_NO_HOST_CHECK = NO<br />
	HOMEPATH = \Users\Alexandre<br />
	COMPUTERNAME = ALEXANDRE-PC<br />
	ProgramData = C:\ProgramData<br />
	PROCESSOR_ARCHITEW6432 = AMD64<br />
	USERNAME = Alexandre<br />
	NUMBER_OF_PROCESSORS = 4<br />
	PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 58 Stepping 9, GenuineIntel<br />
	ComSpec = C:\Windows\system32\cmd.exe<br />
	SystemRoot = C:\Windows<br />
	PROCESSOR_ARCHITECTURE = x86<br />
	LOGONSERVER = \\ALEXANDRE-PC<br />
	AMDAPPSDKROOT = C:\Program Files (x86)\AMD APP\<br />
	SystemDrive = C:<br />
	CommonProgramFiles = C:\Program Files (x86)\Common Files<br />
	PROCESSOR_LEVEL = 6<br />
	PROCESSOR_REVISION = 3a09<br />
	PSModulePath = C:\Windows\system32\WindowsPowerShell\v1.0\Modules\<br />
	ALLUSERSPROFILE = C:\ProgramData<br />
	PUBLIC = C:\Users\Public<br />
	OS = Windows_NT<br />
	PROG05202499050 = 1<br />
	HOMEDRIVE = C:<br />
10:33:58 [INF][      Workbench]: Current version given by meta info is: 5.2.44<br />
10:33:58 [INF][      Workbench]: Setting PATH to: C:\Windows\system32;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;E:\Programmes\MKVToolNix;C:\Program Files\Lucidlogix Technologies\VIRTU MVP;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT<br />
10:33:58 [INF][ mforms managed]: Initializing mforms wrapper<br />
10:33:58 [INF][   WBContext UI]: Initializing workbench context UI with these values:<br />
	base dir: C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44<br />
	plugin path: C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44<br />
	struct path: <br />
	module path: C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules<br />
	library path: C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44<br />
	user data dir: C:\Users\Alexandre\AppData\Roaming\MySQL\Workbench<br />
	open at start: <br />
	open type: <br />
	run at startup: <br />
	run type: <br />
	Force SW rendering: No<br />
	Force OpenGL: No<br />
	quit when done: No<br />
10:33:58 [INF][      WBContext]: WbContext::init<br />
10:33:58 [INF][            grt]: Scanning module directory C:\Users\Alexandre\AppData\Roaming\MySQL\Workbench\modules.	<br />
10:33:58 [INF][            grt]: Scanning module directory ..	<br />
10:33:58 [INF][               ]: Trying to load module '.\db.grt.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module '.\db.mysql.grt.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module '.\db.mysql.query.grt.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module '.\db.mysql.sqlide.grt.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module '.\db.mysql.sqlparser.grt.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module '.\forms.grt.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module '.\wb.model.grt.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module '.\wb.mysql.import.grt.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module '.\wb.utils.native.grt.dll' (cpp)<br />
10:33:58 [INF][            grt]: Scanning module directory C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules.	<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\catalog_utils.grt.lua' (lua)<br />
10:33:58 [INF][               ]: Initialized Lua module C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\catalog_utils.grt.lua (WbUtils)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\code_utils_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_generic_migration_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_generic_re_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_mssql_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_mssql_migration_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_mysql_fe_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_mysql_migration_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_mysql_re_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_postgresql_migration_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_postgresql_re_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_sql92_migration_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_sql92_re_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_sybase_migration_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\db_sybase_re_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\migration_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\sqlide_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\table_utils_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\text_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\wb_admin_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\wb_bug_report_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\wb_dev_utils_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\wb_doclib_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\wb_query_analysis_grt.py' (python)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44/modules\wb_utils_grt.py' (python)<br />
10:33:58 [INF][            grt]: Scanning module directory C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44.	<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44\db.mysql.diff.reporting.wbp.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44\db.mysql.editors.wbp.be.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44\db.mysql.wbp.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44\wb.model.editors.wbp.be.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44\wb.model.snippets.wbp.dll' (cpp)<br />
10:33:58 [INF][               ]: Trying to load module 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44\wb.printing.wbp.be.dll' (cpp)<br />
10:33:59 [INF][      WBContext]: System info:<br />
 	MySQL Workbench CE for Windows version 5.2.44  revision 9933<br />
	Configuration Directory: C:\Users\Alexandre\AppData\Roaming\MySQL\Workbench<br />
	Data Directory: C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44<br />
	Cairo Version: 1.8.8<br />
	OS: Microsoft Windows 7 Ultimate Edition (build 7600), 64-bit<br />
	CPU: 4x Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz, 7.9 GiB RAM<br />
	Active video adapter (0): AMD Radeon HD 6800 Series<br />
	Installed video RAM: 1024 MB<br />
	Current video mode: 1920 x 1080 x 4294967296 couleurs<br />
	Used bit depth: 32<br />
	Driver version: 9.2.0.0<br />
	Installed display drivers: aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atiumd64.dll,atidxx64.dll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll<br />
	Current user language: Français (France)<br />
10:33:59 [INF][      Workbench]: UI is up<br />
10:33:59 [INF][      Workbench]: Running the application<br />
10:34:52 [INF][     SSH tunnel]: Starting tunnel<br />
10:35:01 [INF][wb_admin_control.pyc]: Created SQL connection to MySQL server. Server version is (5, 5, 28), conn status = True, active plugins = set([('partition', 'STORAGE ENGINE'), ('INNODB_CMPMEM_RESET', 'INFORMATION SCHEMA'), ('INNODB_BUFFER_POOL_STATS', 'INFORMATION SCHEMA'), ('CSV', 'STORAGE ENGINE'), ('mysql_native_password', 'AUTHENTICATION'), ('INNODB_BUFFER_PAGE', 'INFORMATION SCHEMA'), ('InnoDB', 'STORAGE ENGINE'), ('ARCHIVE', 'STORAGE ENGINE'), ('INNODB_CMP', 'INFORMATION SCHEMA'), ('INNODB_TRX', 'INFORMATION SCHEMA'), ('binlog', 'STORAGE ENGINE'), ('INNODB_LOCKS', 'INFORMATION SCHEMA'), ('INNODB_CMPMEM', 'INFORMATION SCHEMA'), ('INNODB_LOCK_WAITS', 'INFORMATION SCHEMA'), ('MEMORY', 'STORAGE ENGINE'), ('MRG_MYISAM', 'STORAGE ENGINE'), ('PERFORMANCE_SCHEMA', 'STORAGE ENGINE'), ('mysql_old_password', 'AUTHENTICATION'), ('BLACKHOLE', 'STORAGE ENGINE'), ('MyISAM', 'STORAGE ENGINE'), ('INNODB_CMP_RESET', 'INFORMATION SCHEMA'), ('INNODB_BUFFER_PAGE_LRU', 'INFORMATION SCHEMA')])<br />
10:35:01 [INF][wb_admin_grt.pyc]: AdministratorTab: Server version (5, 5, 28) is supported<br />
10:35:04 [INF][wb_admin_grt.pyc]: do_open_administrator(): Completed<br />
10:35:06 [INF][wb_admin_control.pyc]: Created SQL connection to MySQL server. Server version is (5, 5, 28), conn status = True, active plugins = set([('partition', 'STORAGE ENGINE'), ('INNODB_CMPMEM_RESET', 'INFORMATION SCHEMA'), ('INNODB_BUFFER_POOL_STATS', 'INFORMATION SCHEMA'), ('CSV', 'STORAGE ENGINE'), ('mysql_native_password', 'AUTHENTICATION'), ('INNODB_BUFFER_PAGE', 'INFORMATION SCHEMA'), ('InnoDB', 'STORAGE ENGINE'), ('ARCHIVE', 'STORAGE ENGINE'), ('INNODB_CMP', 'INFORMATION SCHEMA'), ('INNODB_TRX', 'INFORMATION SCHEMA'), ('binlog', 'STORAGE ENGINE'), ('INNODB_LOCKS', 'INFORMATION SCHEMA'), ('INNODB_CMPMEM', 'INFORMATION SCHEMA'), ('INNODB_LOCK_WAITS', 'INFORMATION SCHEMA'), ('MEMORY', 'STORAGE ENGINE'), ('MRG_MYISAM', 'STORAGE ENGINE'), ('PERFORMANCE_SCHEMA', 'STORAGE ENGINE'), ('mysql_old_password', 'AUTHENTICATION'), ('BLACKHOLE', 'STORAGE ENGINE'), ('MyISAM', 'STORAGE ENGINE'), ('INNODB_CMP_RESET', 'INFORMATION SCHEMA'), ('INNODB_BUFFER_PAGE_LRU', 'INFORMATION SCHEMA')])]]></description>
            <dc:creator>alexandre thegg</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Thu, 03 Jan 2013 08:41:01 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,575628,575628#msg-575628</guid>
            <title>forward engineer user@localhost (1 reply)</title>
            <link>http://forums.mysql.com/read.php?153,575628,575628#msg-575628</link>
            <description><![CDATA[ Hi<br />
I am using MySQLWorkbench 5.2.38 and I am truying to forward engineer database users.<br />
When i add user 'someuser' it is &quot;engineered&quot; as someuser@%<br />
how do i make it as someuser@localhost?]]></description>
            <dc:creator>vasilj davidovic</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 10 Dec 2012 09:12:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,575522,575522#msg-575522</guid>
            <title>Misleading prompt in creating pivot table (2 replies)</title>
            <link>http://forums.mysql.com/read.php?153,575522,575522#msg-575522</link>
            <description><![CDATA[ If I have table1 and table2 in an n:m relationship, I can have workbench create the pivot table in workbench by choosing the n:m button on the left.  The prompt on the bottom says &quot;Select the Table to receive the Foreign Key&quot;.  This seems ambiguous to me since there is no table yet, we are creating one.]]></description>
            <dc:creator>Joseph Hesse</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 10 Dec 2012 17:16:01 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,575458,575458#msg-575458</guid>
            <title>Adding a foreign key to simplify a query - good or bad modeling? (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,575458,575458#msg-575458</link>
            <description><![CDATA[ My question involves 3 tables:<br />
&quot;SalesPeople&quot; in a car dealership who invoice clients &quot;Invoices&quot; for one or more cars &quot;CarsSold&quot;<br />
<br />
The cardinality relationships are:<br />
&quot;SalesPeople&quot; 1-to-n &quot;Invoices&quot; 1-to-n &quot;CarsSold&quot;<br />
<br />
The 3 table definitions are:<br />
<br />
CREATE  TABLE  SalesPeople (<br />
  SalesPersonID INT NOT NULL ,<br />
  SalesPersonName VARCHAR(45) NULL ,<br />
  PRIMARY KEY (SalesPersonID) );<br />
<br />
CREATE  TABLE  Invoices (<br />
  InvoiceID INT NOT NULL ,<br />
  SalesPersonID INT NOT NULL ,<br />
  CompanyName VARCHAR(45) NOT NULL ,<br />
  PRIMARY KEY (InvoiceID, SalesPersonID) ,<br />
  INDEX fk_Invoices_SalesPeople_idx (SalesPersonID ASC) ,<br />
  CONSTRAINT fk_Invoices_SalesPeople<br />
    FOREIGN KEY (SalesPersonID )<br />
    REFERENCES SalesPeople (SalesPersonID ) );<br />
<br />
CREATE  TABLE  CarsSold (<br />
  VinNumber VARCHAR(100) NOT NULL ,<br />
  InvoiceID INT NOT NULL ,<br />
  CarModelName VARCHAR(45) NOT NULL ,<br />
  PRIMARY KEY (VinNumber, InvoiceID) ,<br />
  INDEX fk_CarsSold_Invoices1_idx (InvoiceID ASC) ,<br />
  CONSTRAINT fk_CarsSold_Invoices1<br />
    FOREIGN KEY (InvoiceID )<br />
    REFERENCES Invoices (InvoiceID ) );<br />
<br />
I want a query that lists all the SalesPersonName and the CarModelName they have sold.  The query involves joining 3 tables and looks like:<br />
<br />
SELECT SalesPersonName, CarModelName<br />
FROM SalesPeople<br />
JOIN Invoices ON SalesPeople.SalesPersonID=Invoices.SalesPersonID<br />
JOIN CarsSold ON Invoices.InvoiceID=CarsSold.InvoiceID;<br />
<br />
If I add another foreign key to the &quot;CarsSold&quot; table that refers to SalesPeople.SalesPersonID then I could do the same query with only 2 table joins.  The modified &quot;CarsSold&quot; table and the shorter query are shown below.<br />
<br />
CREATE  TABLE  CarsSold (<br />
  VinNumber VARCHAR(100) NOT NULL ,<br />
  InvoiceID INT NOT NULL ,<br />
  SalesPersonID INT NOT NULL ,  # &lt;== Add foreign key<br />
  CarModelName VARCHAR(45) NOT NULL ,<br />
  PRIMARY KEY (VinNumber, InvoiceID, SalesPersonID) ,<br />
  INDEX fk_CarsSold_Invoices1_idx (InvoiceID ASC) ,<br />
  INDEX fk_CarsSold_SalesPeople1_idx (SalesPersonID ASC) ,<br />
  CONSTRAINT fk_CarsSold_Invoices1<br />
    FOREIGN KEY (InvoiceID )<br />
    REFERENCES Invoices (InvoiceID )<br />
  CONSTRAINT fk_CarsSold_SalesPeople1<br />
    FOREIGN KEY (SalesPersonID )<br />
    REFERENCES SalesPeople (SalesPersonID ));<br />
<br />
SELECT SalesPersonName, CarModelName<br />
FROM SalesPeople<br />
JOIN CarsSold ON SalesPeople.SalesPersonID=CarsSold.SalesPersonID;<br />
<br />
My question is:  I have added a foreign key for the purpose of simplifying a query.  Is this good data modeling?<br />
<br />
Thank you for reading this lengthy question.<br />
Joe]]></description>
            <dc:creator>Joseph Hesse</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Thu, 06 Dec 2012 20:24:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,574442,574442#msg-574442</guid>
            <title>Forward engineering not updating table on remote server (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,574442,574442#msg-574442</link>
            <description><![CDATA[ Can drop all tables on remote server and load table structures via forward engineering and reverse engineer the databases.<br />
<br />
However when I make a change on the EER diagram and try to forward engineer the change, WB goes through the motions and says it was a success but the remote tables stay the same.  IE, I drop a column in a table on the EER diagram and then try to forward engineer the change. I get a success message but the remote table stays the same.<br />
<br />
I did add records to the live tables.  Could it be that you need to first reverse engineer the database and then forward engineer the EER before you make and changes to the remote database?  I could be missing a whole lot.  Haven't been using the data modeling aspects of WB for more than a few days.  What am I missing?<br />
<br />
Using InnoDB tables.  Making changes on a saved EER originally from a reverse engineer.<br />
<br />
thanks<br />
<br />
ED]]></description>
            <dc:creator>ed ziffel</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Fri, 23 Nov 2012 04:16:03 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,574035,574035#msg-574035</guid>
            <title>Identification of tables already or not yet used in any EER diagram. (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,574035,574035#msg-574035</link>
            <description><![CDATA[ Change Log for version .43 claims:<br />
<br />
On Linux, tables that are present are now marked with a black point in the diagram editor. (Bug #14107656, Bug #65210).<br />
<br />
I have .44 on Ubuntu 10.04 and can not see this. Would anybody have a screendump for me ? Maybe I am looking for the wrong thing alltogether ?<br />
<br />
Ingo]]></description>
            <dc:creator>Ingo Korndoerfer</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Sun, 18 Nov 2012 10:22:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,574034,574034#msg-574034</guid>
            <title>Update model from DB flakes or crashes workbench (2 replies)</title>
            <link>http://forums.mysql.com/read.php?153,574034,574034#msg-574034</link>
            <description><![CDATA[ I am trying to update my EER model from the current version of my MySQL database. The changes are recognized correctly but are not carried out, no matter what I try. In the worst case the workbench will crash.<br />
<br />
This is version .44 on Ubuntu 10.04.<br />
<br />
Any ideas ?<br />
<br />
I'd be happy to supply .mwb file and .sql dump, if anybody would want to give it a shot ?<br />
<br />
Greetings<br />
<br />
Ingo]]></description>
            <dc:creator>Ingo Korndoerfer</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Mon, 19 Nov 2012 18:04:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,573801,573801#msg-573801</guid>
            <title>EER MODEL FROM EXISTING DATABASE (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,573801,573801#msg-573801</link>
            <description><![CDATA[ Hi, I need urgent fix this issue, I have a database, I need to make the relationship diagram of it, I try to do for the CREATE DATABASE EER FROM EXISTING, So far so good, but when trying to connect to the database I have the following error &quot;Operation failed: Unknown character set: 'utf8'&quot; I need this urgently diagram in the next twelve hours I need a solution please. -]]></description>
            <dc:creator>Lino Laneri</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Wed, 14 Nov 2012 22:49:32 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,573196,573196#msg-573196</guid>
            <title>Relationships to Views (3 replies)</title>
            <link>http://forums.mysql.com/read.php?153,573196,573196#msg-573196</link>
            <description><![CDATA[ I have a new MySQL Model and have created an EER Diagram.  I'm able to create relationships between all of my tables, but when I create a new View on my diagram, no fields show up in the view for which I can create relationships.<br />
<br />
Is it not possible to create relationships between tables and views?<br />
<br />
Should I be seeing fields in my view displayed in the diagram?<br />
<br />
My view is defined as:<br />
<br />
CREATE VIEW adults AS<br />
SELECT id, first_name, last_name FROM individuals<br />
WHERE age &gt; 18]]></description>
            <dc:creator>Cody Steele</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Wed, 14 Nov 2012 09:01:05 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?153,572529,572529#msg-572529</guid>
            <title>How to force &quot;Fix Index Names&quot; (no replies)</title>
            <link>http://forums.mysql.com/read.php?153,572529,572529#msg-572529</link>
            <description><![CDATA[ I have a model that I recently loaded into Workbench and was prompted to &quot;Fix Index Names&quot;.  At the time, I chose &quot;Ignore&quot; since I was using MySQL 5.1.<br />
<br />
Now I am using 5.5 and I want to have Workbench perform this rename for me.<br />
<br />
How can i force it?  I cannot see to find a way.  I am using Workbench 5.2.43.<br />
<br />
...Matt]]></description>
            <dc:creator>Matt Houser</dc:creator>
            <category>Workbench - Database Modeling</category>
            <pubDate>Tue, 30 Oct 2012 19:35:02 +0000</pubDate>
        </item>
    </channel>
</rss>
