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 ... (169366 views)
- Error no. 2003: Can't connect... (86310 views)
- SQLyog Version History (63975 views)
- Error no. 1045: "Connection denied..." (61371 views)
- Error no. 1251: "Client does not support authentication..." (58326 views)
- Error No. 2005: Unknown MySQL server host... (50214 views)
- What is HTTP-tunneling? (42290 views)
- What Is SSH and SSH-tunneling? (38087 views)
- Can I use SQLyog with the WINE Windows emulator ... (34956 views)
- Why are Stored Procedures not created when I import ... (34273 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
Connection issues » Connection problems
I have a very long username for the MySQL database at my ISP. SQLyog won't let me use it.
Right! Because a MySQL user name is up to 16 characters long. The MySQL docs clearly state:
MySQL usernames can be up to 16 characters long. Operating system usernames might have a different maximum length. For example, Unix usernames typically are limited to eight characters.
However it is a bad practice with some ISP's that they generate longer usernames than that. It is typically 'cheaper' hosting providers that offer a single MySQL database as part of a 'personal' or 'small business' subscription plan. They auto-generate the username from the user's domain name and it could be somewhat like mydb_myveryowndomain or similar. It is also true that some of our competitors offer support for that. However it is very bad practice! To make it work you will have to:
1) ALTER the TABLE mysql.users and change the mysql.users.users column from a char(16) to some longer value
2) You can no longer GRANT user rights, but must INSERT/UPDATE the mysql system tables directly
3) You must 'patch' (or rather 'hack') the MySQL API/client code
We have had intense discussions with this the MySQL AB on this issue. From the official correspondence we quote:
"This is simply a lucky fluke of sorts (if it works). MySQL simply does not support longer usernames .... Altering the system tables, aside from using our own mysql_fix_privilege_tables script to keep up with our changes, is simply unsupportable. There are server and client changes needed to properly handle any sort of modifications here, even though in some cases a quirk (as above) may seem to function .... This is, basically, dangerous behavior. We will attempt to curb it as well as we can.... Luckily, our manual states clearly that in both cases, MySQL will not provide support if any problems arise ... That is , it may work and it may not work, but MySQL will not ponder as to why it works or why it does not work ... We simply do not provide support for such cases."
We won't play that game as others do! You should convince your ISP that changing the format of the user table is bad and dangerous practice!
And further: MySQL has 'stopped the game'. Again we quote from the above correspondence:
"To make things even more precise, I will now send a server patch to our development management. This patch adds a code that will truncate user column at 16 chars and other columns to their nominal sizes. This will ensure that future 4.1 and 5.0 versions will not work with longer names, whatever changes some application could envisage."
So with the most recent builds in the MySQL 4.1.x series and with MySQL 5.0 it would not work anyway. There is now code in the server binary itself that truncates any user name to 16 characters.
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: 2005-11-08 17:52
Author: Peter Laursen
Revision: 1.0
You can comment this FAQ