We will have to find out if this is a server-side or client-side problem (or both).
Do you have access to another computer where you can install SQLyog and another server you can connect to? If you don't have already please try to install a MySQL server on your local machine.
SELECT HEX(somecolumn) FROM sometable WHERE somecondition
The statement should return data from a single column/row combination containing a non-latin string. Next try to enter the expected non-latin string in a HEX-editor or just a 'hexdump' program of some kind (Linux 'hexdump' command for instance).
If the SQL-statement and the HEX-editor does not return the same hexadecimal string then the data are not stored in the database as what you think.
It may (depending on what exactly the issue is) be a workaround to use SQLyog 5.32 as before 6.0 we had an option to define client character set (after full unicode support in 6.0 that is not required – client character set is now simply always utf8).
and finally: If you dump a small table (with SQLyog or mysqldump .. not phpMyAdmin and other PHP-based tools) and open in an editor what does it display like?
Yes .. you are right – it is not authentication that is a problem. It is a DNS/routing problem.
If you have a webserver locally with PHP + mysql extensions you can test that PHP script yourself. This is actually the only way I think. I think they overlooked something but trying the PHP script from your machine will tell.
If you are not familiar with setting up such software stack you can let us try. However, we will need your details of course. You may crate a support ticket for privacy.
This is as per design, has been asked dozens of time (please search before posting) and it is well documented too: Rows on either host having the same value for a Primary Key will be compared and for suchwill overwrite (or UPDATE using a SQL-term). What should else be the purpose of a Primary Key if it is not a unique identifcation of a row?
The solution is to define the PK so that same value for the PK will not be created on both hosts. Two ways (at least) to do this:
* use the autoincrement_increment and autoincrement_offset server variables to ensure that on one host PK's are EVEN and on the other ODD (you may use this if you have a PK on an autoincrement value)
* or add to the current PK a constant column with different defaults on either host.
Of course it should make no difference how you enter data into a cell.
1)
Are you telling that with 'paste from clipboard' you get another behavior as compared to 'type with keyboard'?
2)
Is this UDATE statement correct (what you did)
Code:
UPDATE `students` SET `tag`='x',`last_name`='Onion',`first_name`='Suzy',`teacher`='Crabtree' WHERE `tag`='x' AND `last_name`='Onion' AND `first_name`='Suzy' AND `teacher`='';
.. changed `teacher` from '' (empty string) to 'Crabtree'?
(I still do not understand why you do not add an auto_increment PK to your tables. You will get lots of issues (example: no protection against duplicate rows) and bad performance!)
It would be easiest if you pasted the queries (or better: attach a .txt document with the original formatting).. We will not need any data. The text of the query itself is all we need.
You may create a ticket if you want privacy – and rename databases, tables etc.if you want as long as it is reproducable.
There is no activity and no guarantee that there will ever be.
It was more complicated that what we thought in the first place and we estimated that we could not afford the resources it would take. At least not for the moment.
But I think it could very well be a encoding issue (file encoding, charset for the connection and/or browser encoding setting conflict). This “near 'PK'” seems to indicate such thing. Do you know how the file is encoded? Then select a corresponding encoding in the browser and also ensure that there is an appropriate SET NAMES statement.
I suggest that you try to import SQLyog (with or without HTTP-tunnelling)
Author
Posts
Viewing 15 posts - 1,816 through 1,830 (of 7,398 total)