user@host length limit in GRANT

Ask a Question related to MySQL, Design and Development.

  1. #1

    Default user@host length limit in GRANT

    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

    opio Guest

  2. Similar Questions and Discussions

    1. Limit on maximum String length?
      Does anyone know of a Flex limit on String size? I have tests failing on all Strings longer than about 500K. Don't know if this is a limit on...
    2. Anydata CSV format length limit?
      Greetings. I am using Jeff Zucker's Anydata.pm (0.05) with the CSV format for a basic content management system I'm writing. One of the things I'm...
    3. stored proc 128 length limit
      This parameter that is greater than 128 is part of a dynamic SQL statement. How do I get around this limit?? thanks, AJ
    4. URL length limit ?
      Hi ! Here is my problem : I think an url variable could be limited, maybe someone know the maximum length I can use ? (I try to send an html...
    5. How can i grant priviledge to user joaquin???
      Hi I just created a user in Oracle9i with: Creates user -- Create user joaquin identified by joaquin; Grants access database -- Grant connect...
  3. #2

    Default Re: user@host length limit in GRANT

    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.
    [email]jstucklex@attglobal.net[/email]
    ==================
    Jerry Stuckle Guest

  4. #3

    Default Re: user@host length limit in GRANT


    Jerry Stuckle wrote:
    > 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.
    > [email]jstucklex@attglobal.net[/email]
    > ==================
    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.

    strawberry Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139