Forum Replies Created
-
AuthorPosts
-
peterlaursen
ParticipantFirst you should normally not need to copy the log file. You can retrive the *live* log using SSH or from a local or shared folder. But anyway this should work too of course!
Please see attached image (the filter dialogue). There are two settings 'reading limit' and 'timeframe'. It is the *smallest* of those that will take effect ('reading limit' decides how big a log CHUNK is considered and 'timeframe' decides what entries are reported *from that log CHUNK*.
Maybe you have a 'timeframe' setting so that no queries were logged in the timeframe? Please try select 'ALL' everywhere (it make take some time though!)
peterlaursen
ParticipantReproduced. Will be fixed with priority!
peterlaursen
Participantwell .. it really depends on how both the database and the spreadsheet are organised. Like
* do you have a seperate sheet for every table in the database?
* is the sheet *complete* (means: does the shet have exactly the same columns as the table – no less and no more) ?
If the two conditions above are satisfied you can export every sheet to a .CSV file and import using SQLyog CSV-import (but back up the database in case you should not understand all the options!). If not the two conditions above are satisfied it will be more complicated. One option would be as described by another user here: http://www.webyog.com/forums//index.php?showtopic=4603
* create a CSV file for every table in the database from your spreadsheet.
* Create a script that reads the CSV file line by line and writes a SQL file with UPDATE statements or INSERT .. ON DUPLICATE KEY UPDATE statements.
* Now import the SQL file from SQLyog tools .. 'restore from SQL dump'
peterlaursen
ParticipantI think this may interest others. The reporter himslef found this scripting solution for generating a series of relevant UPDATE statements (updating 5 columns for every line in the CSV file). This will of course not affect other columns of the database.
Code:loop i = 1 to recs
get(DQ,i)
etc_localmanifest{prop:SQL} = 'UPDATEetc_localmanifest_nvdmv_2005 SET field1 = <39>'& clip(DQ.search1) &'<39>,' &|
'field2 = <39>'& clip(DQ.search2) &'<39>,' &|
'field3 = <39>'& clip(DQ.search3) &'<39>,' &|
'field4 = <39>'& clip(DQ.search4) &'<39>,' &|
'field5 = <39>'& clip(DQ.search5) &'<39> WHERE id = ' & DQ.ID?Progress1{prop:progress} = i
display
endpeterlaursen
ParticipantYou may know this FAQ: http://webyog.com/faq/content/8/147/en/how…g-gives-me.html
Also you could try out the ENTERPRISE (TRIAL). It supports SHOW PROFILE (supported with recent MySQL versions)
I do not know what Query Analyzer does, but the MySQL client/server protccol has no way where a client instance can communicate with the server to retrieve such information while the query is executed. The client is in 'wait state' untill the server returns the result.
We could have a counter running in a seperate thread displaying the time where the client has waited (sampling the time from the client system). I think we have this request already. But only SHOW PROFILE will tell the true execution time (cleaned for transfer time and client processing time). SHOW PROFILE is a server functionality.
peterlaursen
ParticipantYou can do that exactly the same way in SQLyog!
Write 2 queries like
SELECT 1;
SELECT 2;
.. and now 'execute all' (shift + F9) or 'double arrow' icon. Two result tabs will open with a result for each.
('execute' (F9 or single arrow) will execute the query where cursor is positioned).
With SQLyog you can have
* multiple program instances running
* multiple connection windows in each instance
* multiple query tabs in each connection window
* multiple queries in each query tab
Please go through the menus and see what options there are.
peterlaursen
Participanttools .. preferences .. editor tab
[attachment=1161:case.jpg]
peterlaursen
Participant'download my databases at set times' means 'scheduled backup' I think?
In Windows you execute and schedule this command “
sja jobfile.xml “In Linux you execute and schedule this command “wine
sja jobfile.xml“ To schdule on Linux you must set up a CRON job. You can use 'crontab' command, but likely Ubuntu has some GUI interface for scheduling as well (but I don't know Ubuntu and Gnome very well – when using Linux I use SuSE with the KDE destop)
peterlaursen
ParticipantI have replied in your ticket that SQLyog uses the LOAD DATA statement as described here:
http://dev.mysql.com/doc/refman/5.1/en/load-data.html
.. and that the server will replace *the complete row* will replace with data from the file if there is a Primary Key conflict. Data/columns missing will be reset to column default (NULL in your case). This is expected behaviour with LOAD DATA. There is no bug, but your expectations about what we would do are different from what we do!
To solve this, your CSV file will need to be parsed and UPDATE statements will need to be generated (UPDATE table set col_x = …, col_y = .. WHERE pk_column = ..” ) based on the content of every line in your file. The server can only update individual columns of a row when processsing UPDATE statements.
Nw you decide if you wnat to continue here in the Forums on in the ticket. But please use one option only (it gets confusing if discussion goes in parallel two or more places)
peterlaursen
ParticipantPlease read this FAQ: http://webyog.com/faq/content/28/73/en/i-h…g-csv-data.html
We will not discuss refund option in a public Forums – also in order to protect you privacy. Please create a support ticket here: http://www.webyog.com/support
If fields do not populate when importing it is likely becuase you did not specify the escapes etc. as it is used in your file. There is not a single CSV format – the term 'CSV format' covers dozens or hundreds of slightly different formats. Best of all you should attach a small example file to the ticket and also provide the CREATE statement for the table you import to (and most important notice the difference with English and most non-English Excel versions as regards the use of COMMA or SEMICOLON as field delimiter – the FAQ describes)
peterlaursen
ParticipantSometimes new program versions also ship wiht a new tunneller file. Simply becasue new features and fixes may require it. Last time it was because of a fix with binary data.
You find the new tunneller file in the installation folder. Simply replcae the old one with the new one on your site(s).
We told here: http://www.webyog.com/blog/2009/03/31/sqly…-been-released/
peterlaursen
ParticipantI have reopened an old bug report of mine in bugs.mysql.com here:
http://bugs.mysql.com/bug.php?id=44189
What we do is correct (and the same as what mysqldump does), but MySQL 5.1+ servers have a problem with it!
peterlaursen
ParticipantThe only thing I could suggest is that you try to uninstall and install again. We fixed such issue between 3.04 and 3.05 and I understand that upgrading using the RPM 'on top' of an older version does not necessarily fix this.
Alternatively we will need to give to a spcecial build that saves a core dump. But I am afraid that due to Easter holiday will will only be able to from Monday
peterlaursen
Participant“developer comment in the sp breaks it”
then use the comment styles
— comment
or
#comment
inside SP's.
What we are doing her is exactly what 'mysqldump' and similar programs do!
peterlaursen
ParticipantThis
/*!50003 …. */
is NOT a comment! Please note the ” ! “-sign and refer to:
http://dev.mysql.com/doc/refman/5.1/en/comments.html
” ! “ is the same as “NOT” i C-style programming languages. Read it like this: “If MySQL version is lower than 5.03 this is a comment – and if MySQL version is 5.03 or higher it is NOT a comment.” This is the standard way of handling syntax constructions that are version-dependent in MySQL!
-
AuthorPosts