Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Forum Replies Created

Viewing 15 posts - 1,831 through 1,845 (of 7,398 total)
  • Author
    Posts
  • in reply to: Sticky Location For Log On Scheduled Jobs #29193
    peterlaursen
    Participant

    but maybe request was the -l and -s parameter values could optionally be stored in the job.xml?

    in reply to: Upgraded To 8.12…db Changes Not Saved…? #29240
    peterlaursen
    Participant

    No problem! We will fix this as it is a clear bug in SQLyog. Likely a wrong variable assignment in a prepared statement or something like that. You had good reasons to report this and we appreciate it.

    in reply to: Upgraded To 8.12…db Changes Not Saved…? #29238
    peterlaursen
    Participant

    OK .. you are UPDATING! I think you told you were INSERTING. Please use clear terms! INSERTS and UPDATES are different things!

    I got it reproduced wiht 8.13 beta

    1)

    I create the table.

    2)

    I insert values `last_name`='Que' AND `first_name`='Suzy' AND `grade`='11' AND `ethnic`='W' AND `sex`='' from data tab

    3)

    I execute “SELECT * FROM students ORDER BY last_name, first_name ;”

    4)

    From result tab I change 'sex' column from '' to 'F' SQLyog generates (correctly)

    UPDATE `students` SET `last_name`='Que',`first_name`='Suzy',`grade`='11',`ethnic`='W',`sex`='F' WHERE `last_name`='Que' AND `first_name`='Suzy' AND `grade`='11' AND `ethnic`='W' AND `sex`='';

    5)

    Again I execute the SELECT and now I change *every column* from result tab. SQLyog generates

    UPDATE `students` SET `last_name`='abc',`first_name`='def',`grade`='7',`ethnic`='c',`sex`='m' WHERE `last_name`='abc' AND `first_name`='def' AND `grade`='7' AND `ethnic`='c' AND `sex`='F';

    .. the WHERE clause is identical to the SET clause. It should not be of course – the WHERE-clause should be the old data. It is a clear bug of course (but if you had a decent table with a Primary Key it would not happen either).

    I request that you learn from this in order to be more systematic (describe *step by step*, use clear terms, use SQL where possible etc.) on how to report another time. Properly reported it would take 10 minutes to verify. But it took almost 3 hours for me.

    in reply to: Upgraded To 8.12…db Changes Not Saved…? #29236
    peterlaursen
    Participant

    'codebox' is there, but I do not understand what columns d,e,f, and g are.

    The only thing that really matters is what SQL is sent to the server. Please check that in HISTORY tab. But I do not exclude the possibilty that there was a bug that we failed to document in 8.12. However you will need to describe a a reprodcuable way .. *step by step*

    in reply to: Upgraded To 8.12…db Changes Not Saved…? #29234
    peterlaursen
    Participant

    1) you mentioned columns d,e,f, and g. But your table does not have such columns. How should we be able to reproduce or even understand exactly what you are doing?

    2) I asked you to check in HISTORY tabe what SQL SQLyog sends to the server. You did not reply to this.

    I have to request that you are more accurate and detailed when reporting issues! Explains things *step by step* in every detail so that we can reproduce it.

    in reply to: Upgraded To 8.12…db Changes Not Saved…? #29233
    peterlaursen
    Participant

    Apache is completely irrelevant for SQLyog. Unless you use HTTP-tunnel of course.

    I create this table and enter data in every column from DATA tab. I move cursor to next row and SQLyog executes

    Code:
    INSERT INTO `students`(`last_name`,`first_name`,`grade`,`ethnic`,`sex`) VALUES ( 'a','b','c','d','e');

    now I “SELECT * FROM students, click the + icon in order to add a new row. Here I enter data. SQLyog executes

    Code:
    INSERT INTO `students`(`last_name`,`first_name`,`grade`,`ethnic`,`sex`)VALUES('h','i','j','k','l');

    I am moving back to DATA tab and click the 'refresh' button. Data loads and both rows are there. See attached.

    I think you are overlooking the option in program preferences ('others' tab) to 'automatically refresh DATA tab on focus'. What say?

    (Note: you can only see what data are stored on the server by sending a SELECT query to the server!)

    (BTW: your table design is bad. You should have a primary key and possible more indexes – your application will perform horribly if you don't!)

    (But also the way we format the queries (using SPACE totally randomly) is not good!)

    in reply to: How Tuning Mysql Innodb #29228
    peterlaursen
    Participant

    Well .. if you installed MONyog for the first time only a few days ago and if you never worked with prformance tuning before you will have to accept that there are things to learn.

    1)

    I maybe do not understand this “in the Monyong advise it not give how much value that i should store to config, only what i get is 70-80% from actual RAM”.

    But it could be this:

    Quote:
    Description

    InnoDB buffer pool caches both data and index pages. You can set this value to 70-80% of available memory for Innodb-only installations

    Formula

    innodb_buffer_pool_size

    If MONyog advices you to use 70% of avalable RAM for some parameter then you will have to decide fist how much RAM MySQL should be allowed to use (and what should be reserved for Tomcat and other applications) and take 70% of the rest.

    Example: You have 3G RAM and decide to let MySQL use around 1G (Also Tomcat is RAM-intensive). If you only or almost only use InnoDB tables the advice applies. Then in configuration ([mysqld] section) you can try to insert

    Code:
    innodb_buffer_pool_size=712M

    .. for instance and restart the server. Compare peformance before and after. Try to put heavy load on the complete system. If it looks like the machine still has free memory you may try with settings that allocate 1.5 or 2G RAM to MySQL.

    Actually the 'innodb_buffer_pool_size' is probably the most important thing to configure with production systems using InnoDB so that mySQL and InnoDB will use the resources on the system (but official InnoDB guidelines are that it should not exceed 1G as this will prolong the time for crash recovery. However I have seen tuning experts set it as high as 4G-6G in special situations. But a crash recovery could then easily take the whole night!)

    2)

    The two most important columns in EXPLAIN output are: *possible indexes* and *index used*.

    If there are no *possible indexes* then try to add one and see if it will use it. If *index used* is NULL and *possible indexes* in not empty you can try add FORCE INDEX to the statement and benchmark performance before and after. this is described here: http://dev.mysql.com/doc/refman/5.1/en/index-hints.html. (and do not take it for granted that using an index is always faster – with small tables if is not always and also non-unique indexes often make no difference (and it may then sometimes be slower to use the index))

    Also read: http://dev.mysql.com/doc/refman/5.1/en/mysql-indexes.html

    (and search google with 'use mysql indexes' or 'how mysql indexes' etc and you will find lots of stuff.

    in reply to: Upgraded To 8.12…db Changes Not Saved…? #29230
    peterlaursen
    Participant

    1) Please post the CREATE TABLE statement for that particular table. It is difficult for us to understand what “columns d,e,f, and g” are. It also matters what the Primary Key is and if there are any floating type data columns (FLOAT and DOUBLE types).

    2) You can see what SQL SQLyog sends in the HISTORY tab – if it does send. Always check here, because that is what really matters!

    3) If it does not save when you move the cursor down next row it looks like a bug. Does it save when you click the 'save' icon (the small diskette icon)?

    4) Also tell what server version you are using.

    5) And could you try 8.13 beta1 please?

    in reply to: Restoring Databases After Computer Crash #29225
    peterlaursen
    Participant

    .. but that (my last post) applies only to MYISAM tables. If you have InnoDB tables there will only be a .frm file for every table – no datafile (.myd) and no indexes file (.myi) as all InnoDB data are not stored in the table folder (unless you had set the innodb per_table option) but in ibdata* and ib_logfile* (for non-commited transactions) files.

    You have to copy the *COMPLETE data folder* from the old harddrive in one operation. Do not attempt to copy data for individual databases and tables if you use InnoDB.

    in reply to: Restoring Databases After Computer Crash #29224
    peterlaursen
    Participant

    if you lost the .myd files then you will have no data. (myd = mysql data)

    in reply to: How Tuning Mysql Innodb #29226
    peterlaursen
    Participant

    1) For those counters that display some (yellow or red) alert click on the counter name (it is a link) read the advice and try to change the server configuration accordingly (in the [mysqld] section of the server configuration file). This will have to be an iterative process.

    2) Use the Query Analyzer to identify slow queries. EXPLAIN those with some interactive client like SQLyog. From the output of EXPLAIN decide indexes to be added or rewrite queries to use existing indexes.

    There is no auto performance tuning. If it was so simple the server would probably do it all automatically! Tuning requires configuration changes and/or schema or query changes – and some understanding of how the server works will be required to do this. MONyog will help you to identify problematic configuration parameters and problematic queries. But it takes some database skills to resolve things.

    in reply to: Does Not Support Pk's On String Types #29218
    peterlaursen
    Participant

    I think the PK columns are now using utf8_bin collation? utf8_unicode_ci or utf8_general_ci (or any utf8_**_ci) are the alternatives (utf8_general_ci is fastest, but utf8_unicode_ci handles a few national characters more correct (most important German 'sharp s' as far as I remember). I do not know your application and cannot tell how the PK is defined and thus also not if it is feasible to change with that application.

    All such customer/order databases I have seen before would use an auto_increment integer PK.

    If PK columns currently are not utf8_bin then it looks like a bug in SQLyog In that case please paste the CREATE STATEMENT for the two tables.

    in reply to: Configure Http Connection #29214
    peterlaursen
    Participant

    Simply backup the sqlyog.ini file. All connections details are stored here.

    in reply to: Restoring Databases After Computer Crash #29222
    peterlaursen
    Participant

    This question is not SQLyog related. You generally cannot read mysql data any other way than letting a server use the data (only exception I can think of is data stored using the CSV storage engine). SQLyog (and other clients) does not read data on disk – the server does. Clients only send SQL statements to the server.

    The most simple way to rescue the old data is simply to copy the complete mysql 'data' folder from the old drive to a new MySQL installation (stop MySQL while doing). Actually you can even do this across different platforms. MySQL data is in all users' 'Application Data' folder (recent server versions) or as a subfolder to the server installation folder (older versions).

    However the mysql version on new machine will need to be the same or higher than the old server version, as downgrading system tables is almost impossible. If new MySQL version is higher than the old one you must execute the 'mysql_upgrade' program as the first thing after starting the new server with the old data folder.

    So:

    1) install MySQL

    2 stop MySQL service

    3) replace the MySQL data folder with the one from the old drive

    4) start MySQL service

    5) with command line navigate to server /bin folder and execute mysql_upgrade (“mysql_upgrade -uroot -p” will normally be enough, but there are more parameters to use for special setups)

    6) Install SQLyog and you will see your old data used by new server.

    note: the 'command line' referred to in 5) is not the mysql command line client, but the Windows command line ('DOS box').

    peterlaursen
    Participant

    When target table is empty we are just doing a plain copy (there are no data to compare). It will be almost as fast as importing a dump if network is fast. But I cannot give numbers.

Viewing 15 posts - 1,831 through 1,845 (of 7,398 total)