dbTalk Databases Forums  

user@host length limit in GRANT

comp.databases.mysql comp.databases.mysql


Discuss user@host length limit in GRANT in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
opio
 
Posts: n/a

Default user@host length limit in GRANT - 08-05-2006 , 04:14 AM






Hello,

is it possible to switch off length limit (16 chars) for username in
mysql? I get an error '1145 (42000): The host or user argument to GRANT
is too long' in GRANT command.

I modified User column in both tables (db and user) to char(64) and
manage users and rights on my own, but it isn't best way.

thanks for any advice,
Andrew


Reply With Quote
  #2  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: user@host length limit in GRANT - 08-05-2006 , 08:48 AM






opio wrote:
Quote:
Hello,

is it possible to switch off length limit (16 chars) for username in
mysql? I get an error '1145 (42000): The host or user argument to GRANT
is too long' in GRANT command.

I modified User column in both tables (db and user) to char(64) and
manage users and rights on my own, but it isn't best way.

thanks for any advice,
Andrew

AFAIK, user names are restricted to 16 characters. You'll probably have
to modify the MySQL code to change it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================


Reply With Quote
  #3  
Old   
strawberry
 
Posts: n/a

Default Re: user@host length limit in GRANT - 08-05-2006 , 11:22 AM




Jerry Stuckle wrote:
Quote:
opio wrote:
Hello,

is it possible to switch off length limit (16 chars) for username in
mysql? I get an error '1145 (42000): The host or user argument to GRANT
is too long' in GRANT command.

I modified User column in both tables (db and user) to char(64) and
manage users and rights on my own, but it isn't best way.

thanks for any advice,
Andrew


AFAIK, user names are restricted to 16 characters. You'll probably have
to modify the MySQL code to change it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================
I guess you could have a table of pseudo-users(pseudo-user
-encrypted?,username) that mysql could use to establish the correct 16
character username prior to determining access. I haven't had this
problem myself so I'm really just thinking out loud.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.