no .. rows are printed in the order they are received from MySQL with a SELECT statements with no ORDER BY-clause. You will probably get different results depending on storage engine and/or indexes on the table.
I guess sqlyog is calling a mysqldump on the server
No it doesn't! Even if we wanted to we cannot do this. A 'pure' MySQL client cannot access file system and execute commands on remote servers. That would require a SSH-shell or similar inside the program and there is no such. SQLyog is compiled with the MySQL client C-API (you may know it as 'libmysql') and that one is all what is used for connection. We can only execute SQL (and similar API-calls). The backup file is aggregated on the client machine from the returns of SELECT statements and the settings specified by user.
Please try a recent program version. You can use the 8.2 TRIAL. What can we do if there is a bug in 6.13? Nothing really as we can only fix 'forwards' not 'backwards'.
If problem persists with 8.2 then please
1) tell versions of bothand server. The 'illegal mix of collation' error could very well be a server bug if you are using an early 4.1 or 5.0 server.
2) Attach two small dumps to reproduce with. At least we will need *table structure* – but even better would be a dump of a single table with a few rows where this is reproducible (please zip into one file)
When calculating percentages on very small numbers I do not think you should put much emphasis on the %tage. The percentage may increase with subsequent executions if other operations are faster and this one take the same time. 'freeing items' is basically OS call that makes memory temporarily used by the server available to the OS again.
hmmm .. we have < and > buttons in data tab. We could add << and >> buttons. That should then return the first/last rows (as defined by current LIMIT setting). Something like that you imagine?
One problem is that for >> we will need first to execute a SELECT COUNT (*) – what can take very long time (= several minutes) to return result with large InnoDB tables (SHOW TABLE STATUS cannot be used as it is not exact – it only returns an 'estimate' with InnoD:cool: and an exact 'rowcount' with InnoDB is sometimes horribly slow. This is actually the reason why we did not introduce << and >> when we introduced < and >.
Maybe you can use an INSERT .. SELECT construction. If your table has the columns (id, col1, col2, col3)
Code:
INSERT INTO table1 (col1, col2, col3) SELECT col1, col2, col3 FROM table2;
.. note that primary/unique key is not specified in (col1, col2, col3) list. Import the two dumps to two different tables first.
However if you have Foreign Keys or other types of references between tables I do not believe it is possible in simple SQL. It will require some programming logic to ensure that references between rows of different tables are kept intact. You may use your favorite scripting/programming language or a Stored Procedure.
Currently you will have to execute it manually. We have discussed before solutions like:
1) an option for user to specify queries to be executed at connection time.
2) some GUI-element (like icons/bottons) for start transaction/commit/rollback
.. you are welcome to comment on that.
We will not make “set autocommit=0” because it will break backwards compatibility and also it will have no effect with non-transactional engines (MyISAM first of all).
I think I already told that such implicit JOIN in an UPDATE statement (updating same rows in multiple tables as what are used for specifying the JOIN) may not be a good idea. Was that other discussion also our post (I do not remember details).
As regards the profiler 'overhead': You will understand if you try to execute same statement with and without profiler and next see in HISTORY tab what was actually executed by SQLyog in both cases. Profiler adds quite a lot of 'helper statements' of course. It may take a few seconds to execute and transfer results for those 'helper statements' with remote hosts. But if will not have any effect on the execution time of the *principal statement*.
This also means that it runs independent of user logon. If you 'switch user' or 'logout' it will still run. It start with the OS – not with the user login.
You can see the MONyog service in control panel .. administration .. services on Windows (and what similar option you have to view installed and running services on your Linux-distribution).
OK .. you are executing multiple queries with SQLyog. You would like to see which ones have completed already and which one is currently being executed. Did I understand?
Author
Posts
Viewing 15 posts - 1,681 through 1,695 (of 7,398 total)