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

No PRIMARY KEY bug?

  • This topic is empty.
Viewing 5 reply threads
  • Author
    Posts
    • #8859
      gh0st
      Member

      hey guys

      im running mysql 4.1.10

      i know that if there is no primary key synchronization is skipped, however, when doing a sync, sja tells me that 3 of my 6 tables do not have primary keys. Only one of my tables does not have a primary key.

      `access` ****<---- only table that does not have a primary key Check sja.log for complete error details. `access` ****<---- only table that does not have a primary key Check sja.log for complete error details. `alias` 0 0 0 0 0 `alias` 0 0 0 0 0 `domain` 177 177 0 0 No change `domain` 177 177 0 0 No change `mailbox` 12842 12843 0 0 No change `mailbox` 12843 12842 1 0 No change `transport` Check sja.log for complete error details. `transport` Check sja.log for complete error details. `virtual` Check sja.log for complete error details. `virtual` Check sja.log for complete error details. the sja.log shows as follows No PRIMARY KEY defined in the table '`access`' No PRIMARY KEY defined in the table '`access`' No PRIMARY KEY defined in the table '`transport`' No PRIMARY KEY defined in the table '`transport`' No PRIMARY KEY defined in the table '`virtual`' No PRIMARY KEY defined in the table '`virtual`' please help!!

    • #17183
      Ritesh
      Member

      Please provide complete description of your setup. Versions of MySQL, SQLyog and whether you are using tunneling.

      Can you send me a backup of your db?

    • #17184
      gh0st
      Member

      I am using two mysql servers version 4.1.10, both running on seperate servers running fedora core 2 linux

      I am not using tunneling

      I am using SQLyog job agent 4.0 on the primary sql server, running fedora core 2 linux

      i cannot readily send a dump of our db as it contains passwords, i can send a dump of one of the tables which does infact have a primary key (in which sja reports that it does not)

      if that would be enough, where would you like me to send the dump?

    • #17185
      Ritesh
      Member
      Quote:
      i can send a dump of one of the tables which does infact have a primary key (in which sja reports that it does not)

      Send to ritesh AT webyog DOT com

    • #17186
      Ritesh
      Member

      I received your SQL file. The table structure looks like:

      CREATE TABLE `virtual` (

      col1,

      col2, col3,

      UNIQUE KEY `col` (`col1`)

      }

      If you notice then the key is UNIQUE but not PRIMARY. You have to explicitly define PRIMARY KEY for the table. SQLyog does not support UNIQUE KEY as of now.

    • #17187
      gh0st
      Member

      so, its a feature then, not a bug

      thanks 😉

Viewing 5 reply threads
  • You must be logged in to reply to this topic.