Forum Replies Created
-
AuthorPosts
-
peterlaursen
Participant“it usually opens up the tables list of the DB it has selected, for no apparent reason”. Check settings in tools .. preferences .. others tab .. open 'table' folder …
If this is check the tables folder will open whne a DB is selected. I will check the issue that another DB gets selected.
peterlaursen
ParticipantI simply do not understand what you are telling! Where is that 'copy to clipboard pane' your are referrring to?
peterlaursen
ParticipantI found this:
http://bugs.mysql.com/bug.php?id=35824
.. but according to this it should have been fixed in 5.1.25.
Complete google search:
http://www.google.com/search?client=opera&…-8&oe=utf-8
Anyway I think you should start locating the statement (from HISTORY) causing this. Once the statement (or sequence of statements) has been identified it should be reproducable with all clients.
peterlaursen
ParticipantOK I understand.
The buttons (they are *buttons* that open the 'BLOB-viewer') appear for TEXT and BLOB types. In 8.03 they are much smaller and have a fixed width. Please try this!
But it also very much looks like you are using TEXT types where you should not. For short strings use a CHAR or a VARCHAR instead. In MySQL a TEXT is *not* comparable ot a 'text' in Access for instance (a MySQL TEXT is similar to an Access 'note'). Using TEXTs as intensively as you seem to do has several issues (column default not possible, various performance issues).
Read about string types in MySQL: http://dev.mysql.com/doc/refman/5.0/en/string-types.html
We cannot totally disable the button for TEXTs and BLOB. For several reasons including
1) a BLOB is commonly used for storng images. We can only display images in the BLOB-viewer
2) Both TEXT and BLOB types can have very long data (a normal TEXT 64 KB – a LONGTEXT even 4 GB!). The GRID is simply not not appropriate for such long data
peterlaursen
Participanteither I cannot reproduce or I do not understand.
In attached image I have selected a source and a target schema. Compare button is not greyed out. What am I missing?
[attachment=1150:ssview.jpg]
peterlaursen
ParticipantI do not understand! Maybe you could attach a screenshot or elaborate? Also please tell the program version.
peterlaursen
Participantok .. good point! We will look into it.
What you can do now is to run a batch file like
Code:sja ..
attrib +aBut I am not quite sure about what user privileges are required for ATTRIB on recent windows. It *should* be possible for the user who created the file! But this worked fine for me in cmd.exe (.. indicates that I omittted something)
Code:Microsoft Windows [version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.C:UsersPL>cd desktop
C:UsersPLDesktop>dir *txt
…24-02-2009 14:38 256 plink.txt
…C:UsersPLDesktop>attrib +a plink.txt
C:UsersPLDesktop>
peterlaursen
ParticipantNot reproducable for me with server 5.1.32.
Note there error message “Cannot proceed because system TABLES used BY Event Scheduler were FOUND damaged AT SERVER start”. I remember this error from bugs.mysql.com. I am not sure if if mysql_upgrade program will fix this (hopefully it will). The error message is not ours. It is the server that sends it!
The problem is that the `mysql`.`event` is damaged or incorrect. Was mysql_upgrade executed after last upgrade? Maybe the table does not exist (will happen if server was upgraded from a 5.0 version without running mysql_upgrade.
So 99.9% not our issue. Upgrade the server the correct way or complain to MySQL!
peterlaursen
ParticipantOK .. so you use the hostname/name server alias 'bee'. The reason I asked was that there could be a DNS-'broadcast' problem with Samba or with the network. If that was the reason using the ip instead of 'bee' would probably be faster.
(I remember some years ago that when I had a network with 2 Windows machines and one SuSE 10 (running both Samba server and client), I had lots of networking problems with hostnames if the SuSE firewall was enabled. Disabling this firewall or using the ip instead of host name always worked fine.)
Do you know if it is Samba that broadcasts the hostname or do you have a centralized name server on the network?
You can reply to those if you know the answers. But we will need to try this ourselves. Our test team will be fully manned from tomorrow – it has not been for the last week.
peterlaursen
ParticipantLet us take an example:
— source:
CREATE TABLE `sample` (
`the1st` INT(11) DEFAULT NULL,
`the2nd` INT(11) DEFAULT NULL,
`the3rd` INT(11) DEFAULT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8
— target:
CREATE TABLE `sample` (
`the3rd` INT(11) DEFAULT NULL,
`the1st` INT(11) DEFAULT NULL,
`the2nd` TINYINT(11) DEFAULT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8
— column order is different and one datatype is different for one column
— the script generated will have this ALTER statement:
ALTER TABLE `sample`
CHANGE `the1st` `the1st` int(11) NULL first,
CHANGE `the2nd` `the2nd` int(11) NULL after `the1st`,
CHANGE `the3rd` `the3rd` int(11) NULL after `the2nd`,
COMMENT='';
for each CHANGE the folowing is set
* column name
* column type
* position
(and column name and type are always set – even if there are no change. I think ALTER syntax requires it)
What would you suggest here? Like this I think?
ALTER TABLE `sample`
CHANGE `the2nd` `the2nd` int(11),
COMMENT='';
The problem is that if we look at “CHANGE `the1st` `the1st` int(11) NULL first,” then this string itself has no information that can be used to decide if only 'first' can be ommitted or the complete CHANGE clause can. So it is not possible to 'strip out' – decision will need to be taken at an earlier point of time.
I will ask the developer most familiar with Schema Sync to find out what it invovles if we should give an option to 'allow for different column order'. It will probably be next week only!
(but one cosmetical formatting bug is there: the table-level comment should come in its own line what it does not)
peterlaursen
ParticipantIf you request that statements that do nothing else but reordering should be stripped out from the script, you can tell so!
I think we will need to generate them internally (or at least check for the condition) but I think we could avoid printing them.
But on the other hand you need to reorder only once and then it is over.
peterlaursen
Participant1)
quote from the program help:
Hide and ignore object(s):
Use upto 3 of the 4 checkboxes to hide object matching any of the 4 criteria. What you select has effect on what is displayed in the tree views after clicking the 'Compare' button.
Note that objects that are hidden are also ignored when generating the sync script. This can give you a better overview and you may use the options to protect your data against unwanted changes. Examples:
1) Check 'Identical' object(s) that exists on both hosts. No action will ever be taken with those whether displayed or not. You can hide those to better be able to identify the changes that will take place.
2) Check 'To be dropped in target' will prevent anything being dropped by the sync script as the objects will be invisible to the code generating the sync script.
3) Check both 'To be dropped in target' and 'To be created in target' will ensure that only identically named objects that exist on both hosts will be synced (that is only ALTER statements will be generated – not CREATEs or DROPs.
2)
And tables with different column orders are considered different for the tool. This is as per design (so if it is a *bug* it is a *design bug* :-). This we will not change – and not even optionally. Two reasons:
> As mentioned Schema Sync should be used to ensure that Schemas are 'fit for Data Sync'.
> Programmatically handling the output from SHOW FULL FIELDS will be very-very complex if different column orders should be handled as identical (in particular with a very large number of columns – did you consider how many possibilites there could be wiht 200 columns for instance? I think the answer is 199*198*197* ..*2*1* – what is a very huge a number – and we will need a pointer to each what may crash your computer 🙂 )
peterlaursen
Participant1) There is no issue to fix in my opinion. You only see the effect of 'hide and ignore' after 'compare' of course! Please explain in detail (after reading documentation in case you did not)
2) If you want to do a 'partial schema sync' different from the 'hide and ignore' options provided in the GUI you can edit the script generated.
3) “which is only about the ordering of the fields in the table, right” EXACTLY! That is one purpose of Schema Sync: to prepare the schema for Data Sync (where the schema must be *exactly the same*.
The purpose of Schema Sync is to *sync* simply. We have no intention of supporting 'partial sync' except for for the 'hide and ignore' options introduced in 7.0.
peterlaursen
ParticipantPlease try. I do not remember exactly when this stop option was introduced!
peterlaursen
ParticipantWe do not support compressed protocols in SQLyog (with neither direct connection, HTTP or SSH tunnelling).
We had a similar discussion here recently: http://www.webyog.com/forums//index.php?showtopic=4534
Are you perfectly sure that it is the *transfer* and not the *server* that is slow?
-
AuthorPosts