Sorry of my English.
I use Heidi 5. If my user name database is 17 chars - heidi use only 16 chars. I cant login to my mysql.
Please help.
User database name lenght problem
HeidiSQL just follows the MySQL implementation, which says the user name can have a maximum length of 16 chars. You can see that in your table mysql.user - the column "User" is defined as VARCHAR(16). See screenshot:
... and the docs: http://dev.mysql.com/doc/refman/5.0/en/user-names.html
... and the docs: http://dev.mysql.com/doc/refman/5.0/en/user-names.html
@togropl
it sounds quite impossible what you're describing.
first: it is impossible to store a string that is longer then the defined length of the (var)char column. Mysql will always either cut it of (and generate a warning) or throw an error (in strict mode)
second: it is simply not possible to create a username longer than 16 characters. some prove:
So, it's only preferable that heidi doesn't allow this either (to avoid confusion)
it sounds quite impossible what you're describing.
first: it is impossible to store a string that is longer then the defined length of the (var)char column. Mysql will always either cut it of (and generate a warning) or throw an error (in strict mode)
second: it is simply not possible to create a username longer than 16 characters. some prove:
CREATE USER seventeencharacte;//
/* SQL Error (1470): String 'seventeencharacte' is too long for user name (should be no longer than 16) */
So, it's only preferable that heidi doesn't allow this either (to avoid confusion)
I have two databases. Name of one of them has 16chars and the second 17 chars, but they differ only the last char (my provider adds next number at the end of the name of the second database). Both databases have the same password. When I Login to the first database with 16 chars there is everything ok but when I try to login to the second (17 chars) then Heidi login me to the first database - cut this 17th chars.
When I change password to the second database I can't login.
When I change password to the second database I can't login.
Ok, understand. So you were just guessing that Heidi cuts at 16 chars. In fact Heidi does not cut your username, I checked that.
I think that the server, not the client library has this limitation, but I may be wrong - in which case it may help to check if Navicat uses a different libmysql.dll and place that one into your heidisql directory.
I think that the server, not the client library has this limitation, but I may be wrong - in which case it may help to check if Navicat uses a different libmysql.dll and place that one into your heidisql directory.
@togropl
Hi! I have the same problem on home.pl
I have 18 chars domain and my database is name after domain and also has 18 chars. Every another database is domain+digit (1,2,3) so it will be 19 chars.
Username is the same name as database, and home.pl claims, that he cannot add another user or change user name. I do not know what to do.
User in MySQL must be max 16 char.
Did you solve your problem?
Hi! I have the same problem on home.pl
I have 18 chars domain and my database is name after domain and also has 18 chars. Every another database is domain+digit (1,2,3) so it will be 19 chars.
Username is the same name as database, and home.pl claims, that he cannot add another user or change user name. I do not know what to do.
User in MySQL must be max 16 char.
Did you solve your problem?
Please login to leave a reply, or register at first.