Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: 11.28 Backwards Incompatible Change - Technical Advisory

  1. #1
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Lightbulb 11.28 Backwards Incompatible Change - Technical Advisory

    Edited to reflect Version Number Designation Changes July 29, 2010

    With version 11.28, cPanel introduces the Database Mapping feature. This feature lays the groundwork for providing more flexibility in naming databases and database users.

    In the past, cPanel has always appended an account's username to any database name or database username created by the account (for example, a database might be named "user_dbname"). This changes with the addition of the Database Mapping feature.

    In cPanel 11.28, Database Mapping provides the following benefits:

    1. Accounts transferred from non-cPanel servers, such as those running Plesk or Ensim, will no longer have the cPanel account name added as a prefix to the names of databases and database users. This means applications like blogs and forums should work with minimal (or no) changes after transfer.

    2. Server owners can disable use of the database name prefix server-wide. If a server owner chooses this option, databases and database users will no longer be created with the cPanel account as a prefix (for example, a database could be named "dbase" instead of "user_dbase"). This option is not reversible.

    Both the above features will make a server incompatible with older versions of cPanel. If either 1) a non-cPanel account is transferred to an 11.28 server, or 2) the server owner opts to disable prefixing, then that server will not be able to later downgrade to 11.25.0.

    Likewise, transferring an account from a cPanel system that does not use the database prefix to one that does (e.g., cPanel 11.28 with prefixing disabled, to cPanel 11.25.0) will result in support issues. Databases and database users whose names lack the prefix will not be manageable in the cPanel interface.

    Further information about Database Mapping will be published in the coming weeks.
    Last edited by Infopro; 07-29-2010 at 10:25 PM. Reason: Edited to reflect Version Number Designation Changes

  2. #2
    BANNED
    Join Date
    Jun 2005
    Posts
    2,023

    Default

    If you are going to start allowing for non-prefixed names, how do you plan to get around to problem of name conflicts?

    (IE: multiple accounts having the same database / logins)

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by Spiral View Post
    If you are going to start allowing for non-prefixed names, how do you plan to get around to problem of name conflicts?

    (IE: multiple accounts having the same database / logins)
    As mentioned in yesterday's webinar (recording available at Webinars - cPanel Inc.), if a database name or username is in use, then no one else can create a database with that name/username. An error is generated and the user must select a new name/username.

  4. #4
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    302
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by cPanelDavidG View Post
    2. Server owners can disable use of the database name prefix server-wide. If a server owner chooses this option, databases and database users will no longer be created with the cPanel account as a prefix (for example, a database could be named "dbase" instead of "user_dbase"). This option is not reversible.
    Existing db and dbusers created earlier with the prefix wouldn't change, right ?

    Also, would the users still be able to create their db and dbusers with a prefix if they want to ? ie : would the character "_" be accepted ?

    Thank you
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by yapluka View Post
    Existing db and dbusers created earlier with the prefix wouldn't change, right ?

    Also, would the users still be able to create their db and dbusers with a prefix if they want to ? ie : would the character "_" be accepted ?

    Thank you
    As discussed at yesterday's webinar (recording available at Webinars - cPanel Inc.), this will not influence existing database usernames nor existing database names. After you choose to drop prefixing support, users can use any database name and database username they want (within the capabilities of MySQL), including user_dbname.

  6. #6
    Member
    Join Date
    Nov 2006
    Posts
    19

    Default

    I like prefixes on db's from a support standpoint, so would like to leave that option on, but I also need to move accounts over from non cPanel servers.

    When db's are moved from non cPanel servers, they will come in without prefixes. Will I need to update those db's, or will those db's work, but force newly created db's in the account to have prefixes?

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by alinford View Post
    I like prefixes on db's from a support standpoint, so would like to leave that option on, but I also need to move accounts over from non cPanel servers.

    When db's are moved from non cPanel servers, they will come in without prefixes. Will I need to update those db's, or will those db's work, but force newly created db's in the account to have prefixes?
    Databases from non-cPanel servers will always maintain their names, even when prefixing is enabled.

    Even when you have not opted in to allowing your users to create databases without prefixes, when you import accounts from non-cPanel servers, their databases will come in without prefixes and still be accessible to those customers (respectively). This helps make the migration process to cPanel easier for your migrated customers. However, any new database they create would still require the prefixing since the prefixing requirement for new databases is governed by the tweak setting.

  8. #8
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    570

    Default

    For in-depth coverage of how DB Mapping works, you can check the white paper on our software release page: Software Releases - cPanel Inc.

    Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Requests

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2007
    Posts
    13

    Default

    DavidN,

    I am really sad to see how this feature was implemented. It strikes me that cPanel could have spent a bit more time and made the db-mapping infrastructure much more useful. I hope that as the work continues you will refine these functions.

    The current design solves one issue: Importing customers from other controls panels to cPanel without changing their configuration. However you missed solving a much more frequent and vexing issue for us, which is splitting one cpanel user account with 100 addon domains into 100 different cpanel accounts.

    We deal with customers all the time who have added lots of addon domains to a single cpanel account and then are hitting process limits or other account restrictions and want to split their single cpanel account into multiple accounts.

    Most of the parts of the hosting account are clear about which domain they are linked to. For example I can process the email_accounts.yaml and get a list of email accounts just for that domain, if I wanted the public_html yaml, can do that as well. The central problem I have is finding out which databases are linked to what domains. What I need is a sophisticated database mapping system.

    If you are going to break backwards compatibility, why not go all the way and give us a db-mapping system that covers db-> domains as well as db-> cpanel username.

    And before you recommend some script that trawls the account, find references to databases and makes these links dynamically - if it were easy to trawl accounts and change db_usernames / db_names you would have written that import code instead of breaking compatibility for all of your users, right?

    Nate

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by n8whnp View Post
    give us a db-mapping system that covers db-> domains as well as db-> cpanel username.
    This is being discussed over in the following cPanel/WHM feature request thread: http://forums.cpanel.net/f145/11-25-...de-160382.html

    EDIT: Sorry, that thread is about enabling/disabling on a per-user/site basis. Nate, would it be okay if I forked your post off into its own feature request?

  11. #11
    Member
    Join Date
    May 2008
    Posts
    18

    Default

    How would this work if a cPanel account is moved from a host that does allow DBs without the username to a host that hasn't enabled this feature?

    Would the username be added to the database when the account is restored?

  12. #12
    Member
    Join Date
    Sep 2008
    Posts
    54

    Default Re: 11.28 Backwards Incompatible Change - Technical Advisory

    If we upgrade an existing server, then set toe db usernames to disable the prefix, what will that do to exsiting db's and cpanel accounts?

  13. #13
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: 11.28 Backwards Incompatible Change - Technical Advisory

    Quote Originally Posted by victomeyezr View Post
    If we upgrade an existing server, then set toe db usernames to disable the prefix, what will that do to exsiting db's and cpanel accounts?
    It will not affect existing databases (including not affecting their database names of username_dbname). However, disabling the prefix will allow all cPanel accounts to create databases without that username_ prefix.

  14. #14
    Member
    Join Date
    Feb 2003
    Location
    Texas
    Posts
    73

    Default Re: 11.28 Backwards Incompatible Change - Technical Advisory

    Quote Originally Posted by cPanelDavidG View Post
    It will not affect existing databases (including not affecting their database names of username_dbname). However, disabling the prefix will allow all cPanel accounts to create databases without that username_ prefix.
    I think you are wrong David

    We did the exact thing above and it screw the server box
    fantasico will not install and database related script ( ie. word press )
    It has been a night mare

  15. #15
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    570

    Default Re: 11.28 Backwards Incompatible Change - Technical Advisory

    Hi rgpayne,

    That's unfortunate to hear. However, DavidG is correct in his statement. The databases that were created before prefixing was disable are still accessible through the cPanel UI and APIs. Their names or privileges haven't changed within MySQL.

    Fantastico is not maintained by cPanel. If the developers of Fantastico chooses to not utilize our APIs or do continuous development against our features (in early release builds, like the BETA and EDGE release tiers), there isn't much we can do about that.

    Have you read the DB Mapping white paper? Did you opened a support ticket? I don't know how long your server has been in the prefixing disabled state, but if you ask for specific help we will try to accommodate your request, whether it's hear in the forums or through our Technical Support.

    Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Requests

Page 1 of 2 12 LastLast

Similar Threads

  1. Technical Advisory - Plesk Panel 10 Migrations
    By cPanelDavidG in forum Migrate to cPanel
    Replies: 6
    Last Post: 04-23-2011, 10:07 PM
  2. Technical Advisory: Plesk Panel 10 Migrations
    By cPanelDavidG in forum cPanel Announcements
    Replies: 1
    Last Post: 04-05-2011, 02:00 PM
  3. Zone Serial Has Gone Backwards
    By crwilliams in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 08-14-2009, 08:52 AM
  4. New Horde DB Backwards Compatible?
    By niatech in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 07-07-2005, 10:09 AM
  5. Version going backwards?
    By SprintSlash in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 01-31-2003, 09:42 AM