Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Apr 2007
    Posts
    144

    Exclamation Mysql 5.0.91 to MySQL 5.1.48 username problem

    Hi,

    today upgrade Mysql 5.0.91 to MySQL 5.1.48 all username cut maximum length 16.

    some customer username length 18-20 .

    hoe can i fix ?


    Regards,
    Tymsah

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Hello Tymsah,

    Are you stating that previously longer database usernames now aren't working or that you are trying to create a new database username that isn't letting you do so due to the length?

    From my understanding, previously long database usernames should still have been working after the upgrade and you simply cannot have long database usernames going forward. Please clarify if this is impacting already previously created users or this is for a new database user that's trying to be created.

    Thank you.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Apr 2007
    Posts
    144

    Cool

    Hi,

    im change mysql database username column length 16 to 20
    and manual update usernames and site is running

    because php files is encoded zend. i cant change db usernames.


  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    MySQL has long had a limitation of 16 characters for the user name. In versions prior to MySQL 5.1 the server would accept user names longer than 16 characters during the authentication handshake.

    Beginning with MySQL 5.1 the database server will either truncate those user names or simply reject the authentication handshake.

    Your recourse is:

    1. Rollback to MySQL 5.0; or
    2. Change the database user names to be 16 characters or less
    Kenneth
    Product Manager
    cPanel, Inc.

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I had tried to find this documentation previously and wasn't able to find it at that time (while MySQL has great documentation, finding the documentation is sometimes a challenge), and so wasn't sure in my last reply if it was really hard-coded.

    Here's the reference on the 16 character limit for MySQL usernames in MySQL 5.1:

    MySQL :: MySQL 5.1 Reference Manual :: 5.5.1 User Names and Passwords
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member manokiss's Avatar
    Join Date
    Mar 2002
    Posts
    536

    Default Re: Mysql 5.0.91 to MySQL 5.1.48 username problem

    Hi there, wondering if the username length is calculated with the cpanel username on front or without it?

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Mysql 5.0.91 to MySQL 5.1.48 username problem

    The full length of the username is whatever it shows in cPanel for the MySQL username. If a system has database prefixing on, then the cPanel username will always be prepended to the front of the username with a _ after it. If the system has database prefixing turned off, then the customer determines in cPanel whether to use the cPanel username or not as part of the MySQL username.

    Since MySQL uses the full username selected, it is going to count all characters of the username. You could turn off database prefixing in WHM > Disable Database Prefix if you wish to turn off using the cPanel username at the front of the MySQL username.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Changing root username in MySQL
    By fujipadam in forum Database Discussions
    Replies: 2
    Last Post: 10-19-2010, 12:44 PM
  2. MySQL database / username connection
    By shacker23 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-13-2008, 04:13 PM
  3. Change username but mysql not work..
    By Christleo in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-03-2003, 06:45 PM
  4. Username MySQL Errors
    By TheVoice in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-28-2002, 03:44 PM
  5. MySql Username / Passwords
    By esmith in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-15-2002, 10:39 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube