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 ... (169224 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..." (58309 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 ... (34918 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
Database Schema Synchronization
Problem with string default '' (empty string) and Schema Synchronisation
You experience that Schema Sync finds no difference for a string type declared NOT NULL default '' (empty string) and NOT NULL (with no default).
This is happening because SHOW FULL FIELDS statement does not return proper information. Try simply to create two tables like this
CREATE TABLE ´t1´ (´id´ varchar(20) NOT NULL);
and
CREATE TABLE ´t2´ (´id´ varchar(20) NOT NULL default '');
And execute SHOW FULL FIELDS FROM .. against both tables.
The most recent server versions at the time of writing (including 5.0.67 and 5.1.30) will return NULL in the 'default' column for the first table but older servers (like 4.1.22 and 5.0.45) will return an empty string in the 'default' column for both. Consequently SQLyog Schema Sync cannot distinguish the default setting for the two tables (and parsing the returns of SHOW CREATE TABLE is not something we want to do as there is a simple workaround for this: upgrade the server).
The same server bug affects Data Sync. This is described here.
Tags: -
Related entries:
- Welcome to the SQLyog FAQ
- SQLyog Version History
- Error no. 1045: "Connection denied..."
- Plans for future versions of SQLyog
- Types of support that Webyog offers
Last update: 2009-01-21 07:20
Author: Peter Laursen
Revision: 1.0
You can comment this FAQ