Navigation
- FAQ Home
- All categories
- About Webyog support and about this FAQ
- About the SQLyog program

- Connection issues

- Using the GUI
- Managing your MySQL Database Systems

- Database Schema Synchronization
- MySQL DATA synchronization
- SQL Scheduler and Reporting Tool
- Importing external data
- Backup/Restore
- SQLyog Job Agent (SJA)

- Working with Views, Stored Procedures and Triggers
- Character Set and Localization Issues
- MySQL bugs that affect SQLyog
- Questions on Open Source and Compiling
- Sitemap
Most popular FAQs 
- I get error 1130 "Host is not allowed to ... (169222 views)
- Error no. 2003: Can't connect... (86215 views)
- SQLyog Version History (63912 views)
- Error no. 1045: "Connection denied..." (61323 views)
- Error no. 1251: "Client does not support authentication..." (58308 views)
- Error No. 2005: Unknown MySQL server host... (50162 views)
- What is HTTP-tunneling? (42269 views)
- What Is SSH and SSH-tunneling? (38047 views)
- Can I use SQLyog with the WINE Windows emulator ... (34917 views)
- Why are Stored Procedures not created when I import ... (34261 views)
Latest FAQs 
- SQLyog Version History (2012-01-26 08:20)
- SQLyog is a client for the MySQL server - ... (2011-11-04 04:48)
- I get error 1130 "Host is not allowed to ... (2011-11-01 05:21)
- Problems on Ubuntu 11.x (2011-10-29 13:02)
- Problems creating a functional DSN on 64 bit Windows. ... (2011-09-15 14:34)
Sticky FAQs
Using the GUI
Does SQLyog GUI understand the meaning of special MySQL KEYWORDS.
Yes it does!
Starting from SQLyog version 5.1 specific MySQL KEYWORDs are given a special treatment by the GUI. The KEYWORDS supported like this currently are:
- NULL
- CURRENT_USER
- CURRENT_TIMESTAMP
- UTC_TIMESTAMP
- localtimestamp
Also (from version 6.1) in the special context of the 'default' column of the CREATE/ALTER TABLE dialogue
- ''
Finally SQLyog implements the word
- default
to be treated like a KEYWORD
Also read here about FUNCTIONS support in SQLyog GUI.
To insert CURRENT_USER (like 'memyself@localhost') you simply only need to enter "CURRENT_USER" (without quotes) from SQLyog DATA and RESULT panes. When the row is saved SQLyog sends the string 'CURRENT_USER' (also without quotes) and the server does the rest - inserts the user like 'memyself@localhost'. Similar for the four other KEYWORDs. With NULL there is that special thing that SQLyog always displayed NULL as (NULL) in the GRIDs. It still does. To enter NULL in a cell you can write "NULL" or "(NULL)" (without quotes) as you like. This is to facilitate 'old' as well as 'new' users.
In case you for some reason should want to enter the literal string 'NULL' or 'CURRENT_TIMESTAMP' etc. SQLyog 5.1 introduces the backquote character as a special 'code' that means: this is a literal. You can surround the KEYWORD with backquotes like "´CURRENT_TIMESTAMP´" (the KEYWORD surrounded with backquotes and no other quotes) and SQLyog sends "'CURRENT_USER'" (with singlequotes but without doublequotes) and "CURRENT_USER" is inserted as a literal. To insert the backquote itself you must thus write "´´´" (three backquotes). Actually you can enclose any literal string like 'mystring' with backquotes too, but there is no need for that - is only needed for those strings that are supported special MySQL KEYWORDs ' with two exceptions/additions: 1) SQLyog 5.1 implements the word 'Default' as a special supported KEYWORD of it's own. Writing 'Default' (without quotes and no matter the letter-case) will set the cell value to the column default (if there is no default for the column an empty string will be used). So to enter the literal 'default' you must also here use backquotes like ´default´! As with "NULL"/"(NULL)" "(DEFAULT)" is synonym with "DEFAULT".
This also solves this issue often requested by users lately: To create a TIMESTAMP column as the first timestamp column in the table With MySQL >= 4.1 defined as
Default CURRENT_TIMESTAMP not NULL on update CURRENT_TIMESTAMP
...the only thing you will need to do is to check the 'Not Null' checkbox. SQLyog and the MySQL server will do the rest. This in fully in accordance with the 'standard' behavior of TIMESTAMPs as described by MySQL AB here. When UPDATING such 'on update ...' TIMESTAMP SQLyog will not either send the old value to MySQL as before. And the server will then update with a new CURRENT_TIMESTAMP (as it was meant to be!). More information on defining TIMESTAMP properties with SQLyog here.
All this of course applies only to the GUI functionalities of SQLyog - not the SQL pane.
We can expect more of that type KEYWORDS with MySQL in the future. SQLyog now has the features needed to implement them as soon as they become available.
Starting from SQLyog 5.1 you can also set 'Default', 'NULL' and 'Empty String' by right clicking a cell in the grid. As SQLyog uses the '' (empty) sql_mode for the connection with MySQL 5.x, the server will actually set the value of a numerical field to 0 (zero) when you are setting it 'empty string'. MySQL versions before 5.x do the same unless the GLOBAL sql_mode has been changed from the default setting in the configuration.
Starting from SQLyog version 5.2 it is possible to turn of this feature from 'preferences' if you do not want it.
Tags: -
Related entries:
- Do I need PHP to use SQLyog with MySQL?
- SQLyog gives you the most options for connecting to MySQL
- Welcome to the SQLyog FAQ
- Installation and upgrading
- Buying and Licensing SQLyog
Last update: 2009-02-16 05:37
Author: Peter Laursen
Revision: 1.5
You can comment this FAQ