Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Forum Replies Created

Viewing 15 posts - 2,251 through 2,265 (of 7,398 total)
  • Author
    Posts
  • in reply to: #28249
    peterlaursen
    Participant

    Personally I would prefer a two-column PK as I described in 3). I think it is both most simple and most safe!

    in reply to: #28254
    peterlaursen
    Participant

    What I meant was of course: From SQLyog version 7.0 Data Sync will only work with MySQL 4.1 servers and above.

    (I missed the “4.1”, but it seems you understood anyway)

    in reply to: #28247
    peterlaursen
    Participant

    If you need to automate it daily you should ensure that the PK-column (I think 'counter' is a PK-column?) will be unique in/across both tables. Possible solutions are:

    1) You can offset 'counter' with 1 in one table and a high number (like 10,000,000) on the other

    2) If tables are on different servers you can use the auto_increment_increment and auto_increment_offset setting in server configuration to generate even numbers on one server and odd numbers on the other (this requires a reasonable recent server).

    3) you can add a 'dummy' column to both tables that have one default on one table and another default in the other and next have a 2-column PK on the 'counter'+'dummy' columns. Then also the PK-will be unique in/across both tables

    (to achieve 1+2 you will need to temporarily drop the PK in one (solution 1) or both (solution 2) tables)

    Once the PK is unique across databases you can use SQLyog DataSync (ENTERPRISE FEATURE – but functional in the TRIAL with two tables per job). This can be fully automated and scheduled but tables will need to be in different databases – what I also understand they are!).

    As long as the two tables have conflicting PK values (or if you like: same PK value for data that should both be retained) I don't think you will find a better solution than the one I described first. There is no solution possible in 'pure' SQL. It requires code in an external client program – whether C/C++ (what we use) or Perl, PHP etc – that finds out when a row should be INSERTED, UPDATED(overwritten) or even possible DELETED (if you ever want to do this). Traditional SQL databases like MySQL are not designed for 'distributed data' like this and you need a specialised tool like SQLyog Data Sync to handle it.

    in reply to: #28235
    peterlaursen
    Participant

    the htmlayout.h file seems to be one more issue, but the compilation errors may be VS2008 related (we still build SQLyog on VS2003 – but we should ensure that it builds without need for workarounds on 2005 and 2008 as well).

    in reply to: #28252
    peterlaursen
    Participant

    From SQLyog version 7.0 Data Sync will only work with MySQL 4.1 servers and above. The speed improvements in 7.0 depend on server functionalities not existing in earlier versions.

    If a 3.23 or 4.0 server is involved in the job you will need to stay with SQLyog 6.x. You can have both versions installed in parallel and use the most recent for everything except for Data Sync with such old server.

    Please create a ticket here http://www.webyog.com/support if you want a download link and registration details for 6.56 ENTERPRISE (latest 6.x).

    Sooner or later we will have to 'phase out' support for 3.x and 4.0 servers and focus on the new ones (5.1 and 6.x). 3.x and 4.0 are officially also not supported by MySQL anymore.

    in reply to: #28233
    peterlaursen
    Participant

    Could you please try again now. The developer team tell me they have committed missing files!

    in reply to: #28231
    peterlaursen
    Participant

    Could you try “show global status like …”

    in reply to: #28245
    peterlaursen
    Participant

    I think the question rather is if 2 tables can be merged! As I understand I think it is irrelveant if tables are in different or same databases. Corrrect?

    This can be done like that (if I understand):

    1) export one table

    2) edit the .sql file and 'search and replace' replace “INSERT INTO tbl1 ..” with “INSERT IGNORE INTO tbl2 ..” and save

    3) now import into tbl2

    (INSERT IGNORE means that if one row cannot be inserted then no error occurs an the remaining will not be skipped).

    It is the Primary Key (or a Unique Key built on non NULLable colums) that decides whether a row is identical to an existing one, not data. However you may build a special Primary Key for this purpose (for instance create a PK on all columns) before exporting.

    One detail: if you have BLOBs or other binary data be sure that the editor will not damage the binary data!

    in reply to: #28195
    peterlaursen
    Participant

    @everybody reporting 'duplicate key' error!

    Please try version 7.5 RC

    http://www.webyog.com/blog/2009/01/21/sqly…-been-released/

    .. this fixes the issue with all the test cases we have!

    .. bute note this

    Quote:
    Funtionality changed:

    * The SQL_WHERE option in Data Sync is changed so that WHERE-condition is evaluated againstonly (before it was bothand (logically OR’ed)).

    in reply to: #28229
    peterlaursen
    Participant

    “As some collation settings are dependent on the charset” .. well, they ALL are! If charset is 'utf8' collations can be 'uft8_general_ci', 'uft8_unicode_ci' and 'uft8_danish_ci' etc – but nothing else than someting 'utf8_*' (not 'latin1_danish_ci' for instance). As such it is sufficient to specify collation as charset is implicit.

    But what is the problem you are facing?

    in reply to: #28227
    peterlaursen
    Participant

    DQ has replied nicely. Nothing to add except that we had a similar discussion in another thread recently too:

    http://www.webyog.com/forums//index.php?showtopic=4461

    in reply to: #28220
    peterlaursen
    Participant

    OK .. but for colums only? what about database, index, constraint, routine names etc.?

    And you want to force 'thiscase', others will want 'Thiscase' or 'THISCASE' (and 'ThisCase' and 'THIScase' cannot be supported of course!). It will be very difficult to make everybody happy!

    And BTW: if the Formatter does not have the options you need, then please tell what you need!

    in reply to: #28218
    peterlaursen
    Participant

    Have you tried 7.5 (beta) and the Query Formatter introduced here? I think this request is a request for the Query Formatter – and not for Autocomplete.

    in reply to: #28216
    peterlaursen
    Participant

    column names are not case sensitive in MySQl. The case sensitivity discusion is *only* relevant with table names! you may use another lettercase in queries as how it is stored! see attached!

    [attachment=1099:columns.jpg]

    (and this applies to all platforms!)

    in reply to: #28224
    peterlaursen
    Participant

    No this

    Table and database names are stored on disk using the lettercase specified in the CREATE TABLE or CREATE DATABASE statement, but MySQL converts them to lowercase on lookup. Name comparisons are not case sensitive.

    you should understand like if you specify the tablename as “TableName” it will display like that in various SHOW statements and in SQLyog Object Browser and AutoComplete. “but MySQL converts them to lowercase on lookup” means that executing “SELECT * FROM TableName” will fetch data stored in file system as 'tablename' OR 'TäbleName' (on Windows you cannot both have 'tablename' OR 'TäbleName – the file system prevents it (for MyISAM only of coruse, but for consistency same applies to all table types/engines on Windows)

    If you have a test server / a local server just insert

    lower_case_table_names = 2

    in the [mysqld] section of my.ini/my.conf and restart the server. You can easily see the effect.

    Also note that to rename an existing 'tablename' to 'Tablename' after setting the variable = 2 on Windows you will have to rename in two steps: 'tablename' > 'dummy' > 'Tablename'

    And BTW: how should be be able to do as you request here? We cannot know if user wants 'Tablename', 'TableName', 'TABLENAME' or 'tABLEnAME'!

Viewing 15 posts - 2,251 through 2,265 (of 7,398 total)