Well .. then it is all explained. The WHERE clause in the DELETE statement will match all rows. I am not able to understand why you want to have duplicate rows. But you may copy the DELETE statement from HISTORY tab and add “LIMIT 1” at the end. But there still is no way to control *which* of the rows is deleted. The MySQL server will delete the first one it finds. Even the server cannot distinguish them. You should have a Primary Key in you tables.
SQLyog does not 'know' the query used for populating the VIEW. Bascially SQLyog will just SELECT * … for every table (or VIEW). Even if you use the option to 'specify a query' in SQLyog the query is sent to to theserver (ie. SQL server) who returns a result set. SQLyog creates a table on (ie MySQL) and populates this table with the result set.
So this is strange – also as Excel loads the VIEW very fast it does not seem to be an problem with ODBC either.
Please tell:
1) Are the machines on the same network or are you importing over the Internet?
2) How big is that VIEW? (#of rows, the data length for the table in MySQL after import as returned by SHOW TABLE STATUS)
3) Can you try creating a table on source with the same data and next import just to see if it makes any difference (not sure about SQL Server syntax but there must be something like CREATE TABLE … AS SELECT …)
If it is not a networking issue or a MySQL configuratiobn issue I am afraid we will need a complete test case with data to comment further (access to the database or a copy). Can you provide that? And please create a support ticket for privacy when exchanging such details.
It looks like Problem is that your webserver (probably a shared Apache server) fails to serve HTTP requests from SQLyog. There is no reason why SQLyog should only import a specific number of rows.
Does it 'break' exactly the same place everytime? If not this can only be solved by the server admin with your hosting. We have seen before that very cheap (or otherwise bad) hosting overburdens the webserver. What happens is simply the same as what happens if you refresh a webpage and the page does not load completely.
We reproduced some/almost same problem if we show more than 65563 (not 65535) rows in a specific table.
We are now trying to identify exactly what the problem is. I guess (only) that it is not related to 2^16/16bit integer resolution. Rather some internal pointer issue.
However we can only reproduce with the scrollbar – not the arrow-down icon below the scrollbar.
You can neither DELETE nor UPDATE change) a single row. This is because of the nature of SQL. The WHERE-clause identifying one row will identify them all if there is no Primary Key. The Primary Key will enusre that each row is uniquely identifued. But what is your setting here?
Basically you should ask this question to MySQL (in the MySQL Forums for instance) and not to us. But according to http://dev.mysql.com/doc/refman/5.1/en/replication-features-temptables.html temporary tables are replicated. If failing when using the proxy it could be because the proxy (LUA) script you are using are not supporting this properly. From where did you get this LUA script?
If you have a clearly reproducible test case you may report to http://bugs.mysql.com if you think it is a bug with the proxy or a official MySQL LUA script for the proxy.
But no guarantee either that is is not a server bug with the server version you are using. Are you sure that without proxy it replicates?
One workaround I can think of is to use MEMORY tables (what is not the same as temporary tables) if possible with your scenario.
It is not a problem with SQLyog. Could you try another client please (like Query Browser for instance). The error 2005 is not coming from our code but from the MySQL API. Any client compiled with same API will do the same. MySQL documentation about errors: