Skip to main content

Unable to create a database issue

Comments

5 comments

  • cPanelMichael
    Hello, MySQL username limits are documented at _MySQL Username Limit - Documentation - cPanel Documentation : MySQL limits the database username to 16 characters. The system includes the database prefix (the first eight characters of the cPanel account's username and an underscore character) in the character count for the username. For example: [LIST]
  • A MySQL database with the db_ prefix allows usernames up to 13 characters long.
  • A MySQL database with the example_ prefix allows usernames up to 8 characters long. MariaDB limits the database username to 47 characters. The system includes the database prefix (all of the cPanel account's username and an underscore character) in the character count for the username. For example: [LIST]
  • A MariaDB database with the db_ prefix allows usernames up to 44 characters long.
  • A MariaDB database with the example_ prefix allows usernames up to 39 characters long.
    This seems like an issue with the specific plugin you are using, if that's the only time you notice the issue. Have you verified that the servers are using the latest version of the Installatron plugin, and if so, have you reported the issue to their support team? Thank you.
  • 0
  • wickedmx
    Thanks for the reply Michael, however, the issue is not specific to Installatron as it also occurred when attempting a manual installation completely independent of Installatron. After looking at the documentation, the only way around this I believe is to disable the inclusion of the username prefix for new databases. However, on a shared server this is not ideal as the username at the front makes it much easier to manage a large number of databases across many users. The problem only exists for accounts that are manually created via WHM, as this defaults to the newer naming protocol that allows usernames up to 16 characters. So this is mostly affecting resellers that are still using the WHM account creation process. Is there a way to force cPanel to only create users with the previous 8 character limit?
    0
  • cPanelMichael
    Thanks for the reply Michael, however, the issue is not specific to Installatron as it also occurred when attempting a manual installation completely independent of Installatron.

    Could you provide us with a method to reproduce the issue that does not involve a third-party application? Or, are you stating that any database creation attempt outside of our API or user-interface results in this issue? Thank you.
    0
  • Stefanfan
    Could you provide us with a method to reproduce the issue that does not involve a third-party application? Or, are you stating that any database creation attempt outside of our API or user-interface results in this issue? Thank you.

    I ran into this issue today, as well. 1. Use WHM to create an Account manually, using more than 8 characters for the username. 2. Log on to cPanel for the Account you created 3. Install WordPress with the default options. The installation fails early with the error described above. I worked around the issue by terminating the account I had created, and then re-creating it with an 8-character username.
    0
  • cPanelMichael
    . Use WHM to create an Account manually, using more than 8 characters for the username. 2. Log on to cPanel for the Account you created 3. Install WordPress with the default options. The installation fails early with the error described above.

    I'm unable to reproduce this issue when installing WordPress via the "Site Software" option in cPanel. Could you clarify if you are using a third-party application such as Installatron to install WordPress? I've seen reports of this problem for other control panels on the Installatron forums and the issue was resolved by the Installatron development team. Thank you.
    0

Please sign in to leave a comment.