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 ... (169314 views)
- Error no. 2003: Can't connect... (86275 views)
- SQLyog Version History (63952 views)
- Error no. 1045: "Connection denied..." (61348 views)
- Error no. 1251: "Client does not support authentication..." (58317 views)
- Error No. 2005: Unknown MySQL server host... (50193 views)
- What is HTTP-tunneling? (42282 views)
- What Is SSH and SSH-tunneling? (38073 views)
- Can I use SQLyog with the WINE Windows emulator ... (34947 views)
- Why are Stored Procedures not created when I import ... (34267 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
Managing your MySQL Database Systems » Foreign Keys/relationships
I have Foreign Keys and they work but there are a lot of weird names ...
To create a Foreign Key/relationship in MySQL you (or SQLyog) must send a CREATE TABLE or ALTER TABLE SQL-statement like
alter table ´Test´.´TableName´ add constraint ´ConstraintName´ foreign key(´numfield´) references ´TableName2´ (´id´);
In case the constraint name is not explicitly specified MySQL generates it automatically. That is also true for some of the indexes and their names with recent MySQL versions.
As a result the table definition can become very hard to read and understand because of all the weird names occurring in the table definition when Foreign Keys are used extensively.
SQLyog offers you the option to specify index names and constraint names that are clear and logical. To specify an index name go to 'manage indexes' and the option to specify a constraint name is available from 'manage Foreign keys'. Both are conveniently available from the table context menu.
Tags: -
Related entries:
- SQLyog Version History
- What kind of ODBC databases are supported by SQLyog Import External Data Tool?
- What is and what is not imported by the SQLyog Import External Data Tool?
- Can I perform "incremental import" with the SQLyog Import External Data Tool?
- Error messages
Last update: 2006-09-17 12:05
Author: Peter Laursen
Revision: 1.0
You can comment this FAQ