Forum Replies Created
-
AuthorPosts
-
peterlaursen
Participantdoes this help:
http://dev.mysql.com/doc/refman/5.1/en/resetting-permissions.html
“Alternatively, on any platform, you can set the new password using the mysql client (or any client like SQLyog – my addition)… stop mysqld and restart it with the –skip-grant-tables option.”
Now you can connect without password, add/edit users (with SQLyog or whatever). Now again start server normally. But you will need privileges to stop and start MySQL of course.
peterlaursen
ParticipantJust a link: http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html says
The FLOAT and DOUBLE data types are used to represent approximate numeric data values
… and …
The DECIMAL and NUMERIC data types are used to store exact numeric data values
peterlaursen
ParticipantAs far as I remember MySQL will cast values to binary strings before comparison in such case. So you will need to use string functions (http://dev.mysql.com/doc/refman/5.0/en/string-functions.html) what seems quite tricky (= almost hopeless) here or use or cast to a numeric type that can be round()ed.
Basically I also think the design does no seem to look very good. In MySQL it is common to ue a decimal(19,4) type for currency/money data and with FLOATING points variables you have the precision problem as described here: http://dev.mysql.com/doc/refman/5.0/en/problems-with-float.html .. so it is pretty much uncertain if a match will always occur when it should.
Can't you use DECIMAL types for both columns? Or at least cast to DECIMAL before the match performed by JOIN the JOIN like
Code:JOIN .. ON (cast(col1 as decimal(19,4)) = (cast(col2 as decimal(19,4))(note that I never tried something like it myself before so the syntax may not be correct or possible inside JOIN – so a little experimentation may be required).
But idea is shown here in its most simple form:
Code:SELECT ROUND(CAST(1.1111111 AS DECIMAL(19,4)),2). First the original value is cast to a number (decimal) with 4 decimals that is next rounded to 2 decimals. Also always do this rounding as the very last step to avoid rounding errors. Using 4 decimal precision internally is a de-facto standard with financial systems that should return 2 decimals. That ensures 2 additional decimal positions to catch/eliminate/absorb accumulated rounding errors (what is normally sufficient with such systems).
If we shall comment further we will need the CREATE TABLE statements and the query. Also understand that this is beyond normal product support so helping here will not be first priority. This is more a (My)SQL question than a SQLyog question
peterlaursen
ParticipantIf 'field' means column here the answer is no. SQLyog Data Sync will always sync complete rows. For this you will need to write some kind of script/application, I think.
peterlaursen
ParticipantWe just discussed same a few days ago.
http://www.webyog.com/forums/index.php?showtopic=5045&st=0&p=21927
peterlaursen
ParticipantI do not understand the question. All tables are external in the sense that they are stored on the MySQL server and not in SQLyog (the client).
With recent MySQL version there are 'federated' tables. refer to http://dev.mysql.com/doc/refman/5.1/en/federated-storage-engine.html
.. and also note that this need to be enabled in configuration with some MySQL versions. Ther is also a 'federatedX' 3rd party storage engine. This one is better maintained than the official 'federated' one but only ships with patched/unofficial servers like MariaDB.
peterlaursen
ParticipantOnly the Query Profiler will not display any information from SHOW PROFILE statement. But your server does not support it anyway.
peterlaursen
Participantthe only thing you can do is to got to tools .. preferences .. powertools tab .. enable query profiler group …. and here uncheck 'show profile'.
peterlaursen
ParticipantPeople who use SQLyog will have one or more applications (web applications, adminsitrative applications etc.). There is no need to use a GUI client (except for learning situations) if there is no other application – because there would be no data then. The application(s) will be what *users* see – mostly only *maintainer(s)* will see data in SQLyog. For that reason SQLyog will have to let data be *as they are*.
Even this Forums itself would stop working if SQLyog changed data as stored by the Forums system.
peterlaursen
ParticipantYeah .. and one good method is to write a query with a WHERE clause .. 🙄
We have discussed GUI filtering on multiple columns before and did some research on different programs. The conclusion from research we did at the time was that OpenOffice Base had the most usable filter dialogue (or at least the design that would fit best into SQLyog).
I also did not tell that we will never do it – only we will add more single column filtering options soon.
peterlaursen
ParticipantWe have discussed and we won't do like this. It may work fine with a few columns, but consider what scrolling you will need to do if you have 200 columns. Besides it 'steals' space. There are other ways (check Office programs like MS Office and Open Office)
We will add more filtering options in 2-4 weeks (but still only filtering on one column in the first place). What next is not decided.
peterlaursen
ParticipantWe cannot not change a single bit in a BLOB (and not zip it either) – for the simple reason that it is the server that stores data and not the client. If we manipulate what is stored it will fail wiht other clients (like web applications).
Did I mess something?
peterlaursen
ParticipantLooks like you got a friend! 😆
February 5, 2010 at 5:38 am in reply to: Sqlyog Disappears In Taskmanager When Viewing A 'large' Table #30419peterlaursen
ParticipantAs told we plan to display RESULT tab in pages as default (similar to what DATA tab does) in next major release (5.3). This will eliminate the problem.
First beta will probably be available next week. Please check this out when available.
peterlaursen
ParticipantIssue confirmed with Info tab – text mode.
-
AuthorPosts