Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

Increasing the length of the db user

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Locked
  • Print view
Advanced search
4 posts • Page 1 of 1
eagles051387
Posts: 40
Joined: Mon Dec 22, 2014 1:29 pm

Increasing the length of the db user

Post by eagles051387 » Mon Jan 05, 2015 10:07 am

Hi All,

I am just wondering is it possible to increase the length of 16 characters including the prefix, if not is there a way we could remove the prefix so One can take complete advantage of the full 16 characters?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Increasing the length of the db user

Post by skurudo » Wed Jan 07, 2015 5:43 am

eagles051387 wrote: I am just wondering is it possible to increase the length of 16 characters including the prefix, if not is there a way we could remove the prefix so One can take complete advantage of the full 16 characters?
It's MySQL limitation. Sad, but true.

If it's MySQL's User table, then login as root

Code: Select all

mysql --user=root mysql -pPASSWORD
ALTER TABLE user MODIFY user CHAR(100);
commit;
THE ABOVE IS NOT RECOMMENDED

MySQL manual warns against it:
MySQL user names can be up to 16 characters long. Changing the maximum length is not supported. If you try to change it, for example by changing the length of the User column in the mysql database tables, this will result in unpredictable behavior. (Altering privilege tables is not supported in any case.) Operating system user names might have a different maximum length. For example, Unix user names typically are limited to eight characters.
refer http://dev.mysql.com/doc/refman/4.1/en/user-names.html
Top

eagles051387
Posts: 40
Joined: Mon Dec 22, 2014 1:29 pm

Re: Increasing the length of the db user

Post by eagles051387 » Thu Jan 15, 2015 9:30 am

Thanks for the information.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Increasing the length of the db user

Post by skurudo » Fri Jun 10, 2016 12:48 pm

Added idea on bugtracker:
https://bugs.vestacp.com/issues/258

Please vote for this feature.

Discussion topic:
viewtopic.php?f=14&t=11522
Top


Locked
  • Print view

4 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password