Skip to main content

How does cPanel handle username conflicts in MySQL?

Comments

4 comments

  • cPanelLauren
    Hello @kabatak They're completely separate so in theory, they could be the same user. There's a root mysql user as well as a root user. What's the context in which you're experiencing an issue?
    0
  • kabatak
    Hi
    0
  • sparek-3
    You won't be able to create the foobaruser2 user. You'll get an error saying that the first 8 characters aren't unique on the system. ... This all really begs the question.... what's the point of having usernames longer than 8 characters? I've been asking that question for years. It's an example of cPanel's left hand not knowing what the right hand is doing. MariaDB (and maybe newer version of MySQL?) allow for the use of longer names. Removing the 8 character username limit made sense if everyone was using MariaDB and cPanel did not have to enforce this. But... not everybody is using MariaDB... and not everybody is using an up-to-date system... and not everyone has new users that were created today. So yea... if I had my druthers... I'd prefer cPanel to just restrict usernames to 8 characters on account creation. It makes the most sense. But the cat's already out of the bag with this one... so... Fore-thought... it's important.
    0
  • kabatak
    You won't be able to create the foobaruser2 user. You'll get an error saying that the first 8 characters aren't unique on the system.

    I see. I think that's an acceptable behavior. I share your sentiments but at least there's an error during conflict right on the Cpanel account creation part (and not during MySQL db creation).
    0

Please sign in to leave a comment.