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

Forum Replies Created

Viewing 15 posts - 556 through 570 (of 642 total)
  • Author
    Posts
  • in reply to: Error importing from Access #14680
    Shadow
    Member
    Quote:
    Duplicate entry '416' for key 1

    The answer is in the SQL statement you included in your question: the statement tries to insert the value 416 to the field “id_termo”, but the table already contains a record with the same id_termo. id_termo is the primary key for the table (at least, I guess it is), so it must be unique.

    Possible causes:

    – you forgot to declare id_termo field as primary key in Access

    – the Access db is corrupt (allowed the insertion of the same value more than once) – a slim chance

    – you try to import records that already exist in the MySql db, try writing your own import query instead of copying the whole table

    in reply to: Uploading Access Files #14679
    Shadow
    Member

    ODBC import is the solution (Tools menu). Creating indices (primary key or unique) will prevent you from adding duplicate entries. Besides, you can write your own query which will import those records only that you specify!

    in reply to: how do i set a field as unique with SQLyog 3.11 #14678
    Shadow
    Member

    Create a unique index on the given field. Import will fail if you want to import into an existing table (known flaw in v3.11)! After selecting wich table you want to import click transform, then click Edit SQL. Add a unique index on the given field. Run the import. SQLyog is going to give you a warning each time it encounters a duplicate entry and whether you want to proceed with the import.

    in reply to: Error No: 2007 #14662
    Shadow
    Member

    But send that notice soon, I'll be on holiday from tomorrow!

    in reply to: Error No: 2007 #14661
    Shadow
    Member

    Yes, SQLyog v3.11 is still available (it is absolutely free). If you can't find it on webyog site then give me a notice and I will send it to you via e-mail.

    in reply to: sqlyog feature #14667
    Shadow
    Member

    Sorry, I must have overlooked that one!

    in reply to: sqlyog feature #14665
    Shadow
    Member

    It's there, but I can't see this option showing up in any menus!

    in reply to: Error No: 2007 #14659
    Shadow
    Member

    Are you sure the message reads “Server Version = 9 Client Version = 10” and not vice versa (S. V.=10 C. V.=9)? This means the server and the client use different protocols. Usually it is the client you need to upgrade, but in your case you may have to upgrade MySql to a more recent version, providing you quoted the error message right.

    in reply to: Hot Keys F7(Manage Indexes), N (New) Crashes 3.52 #14658
    Shadow
    Member

    It's not the first time when my SQLyog seems to behave differently from others… Pressing N does not cras my SQLyog. In fact, nothing happens. I have to click the “New” button, then the button gets the focus and from then N works as expected. Furthermore, I could not move the focus out of the “Existing indexes” grid by keyboard…

    in reply to: comments break sql in 3.5/3.51 #14616
    Shadow
    Member

    Error 1064 corresponds to syntax error meaning you have a flaw in the most recently executed SQL statement. In this case SQLyog may have generated a “bad” INSER/UPDATE command for some of your tables. What version of SQLyog and MySql do you use? What was the table type?

    in reply to: varchar latin1 -> varchar latin2 #14657
    Shadow
    Member

    What if you set the charset of the entire db to latin2? Here is an extract from MySql manual:

    Quote:
    By default, MySQL uses the ISO-8859-1 (Latin1) character set. To change the default set, use the –with-charset option:

    shell> ./configure –with-charset=CHARSET

    CHARSET may be one of big5, cp1251, cp1257, czech, danish, dec8, dos, euc_kr, gb2312, gbk, german1, hebrew, hp8, hungarian, koi8_ru, koi8_ukr, latin1, latin2, sjis, swe7, tis620, ujis, usa7, or win1251ukr. See section 4.6.1 The Character Set Used for Data and Sorting. If you want to convert characters between the server and the client, you should take a look at the SET CHARACTER SET command. See section 5.5.6 SET Syntax. Warning: If you change character sets after having created any tables, you will have to run myisamchk -r -q –set-character-set=charset on every table. Your indexes may be sorted incorrectly otherwise. (This can happen if you install MySQL, create some tables, then reconfigure MySQL to use a different character set and reinstall it.) With the option –with-extra-charsets=LIST you can define which additional character sets should be compiled into the server. Here LIST is either a list of character sets separated with spaces, complex to include all characters that can't be dynamically loaded, or all to include all character sets into the binaries.

    in reply to: Error Code 1210: wrong arguments to = #14642
    Shadow
    Member

    What charset does your os use? Because that influences how SQLyog displays the characters!

    in reply to: what is mySQL host address? #14540
    Shadow
    Member

    Basically it's the same, the only difference is the hostname. If you have a local MySql server then hostname may be either your computer's name/IP address or 'localhost'/127.0.0.1 , while connecting to a remote server you will need the exact hostname or the IP address.

    You should also ask whether direct connection is enabled, if not, then you may have to use ssh tunneling.

    in reply to: Shared virtual private server (ensim) #14650
    Shadow
    Member

    Yes, that's exactly what I meant!

    in reply to: Shared virtual private server (ensim) #14647
    Shadow
    Member

    Don't forget to ask them whether they allow direct connection to MySql, otherwise you may have to find ways to tunnel SQLyog to MySql!

Viewing 15 posts - 556 through 570 (of 642 total)