+ Reply to Thread
Results 1 to 6 of 6

Thread: DB name problem

  1. #1
    fomalhaut is offline x10Hosting Member fomalhaut is an unknown quantity at this point
    Join Date
    Aug 2009
    Location
    South of France near Arles
    Posts
    91

    Question DB name problem

    Hello.

    I'm new to mysql !

    On my computer, I've create a database with the 2 parts name "ayant_droit", but, when I want to create it on cPanel, it refuses the "_", and it seems to add my Ident as a prefix : "ident_dbname", and here with the "_"

    How can I create the name I want ? :nuts:

    Thanks for your responses.

  2. #2
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: DB name problem

    To minimise conflicts with other DB's, X1- does include the username prefix - there's nothing you can do about this.

  3. #3
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: DB name problem

    You're on a free service where thousands of accounts are using the same sql database server; to prevent database name collisions (such as two users using the database name "smf" or "phpbb"), cpanel prefixes everything with your login name.

    Not entirely sure why it's not allowing a name with an underscore in it, but there's not much that can be done with that - you're gunna have to make do with the limitations in place, or end up finding another way to store data.


    If you dun mind me asking, why does it matter if it's cpanellogin_ayantdroit and not cpanellogin_ayant_droit? The only person whose going to be seeing the database name is you anyways, and once the database is made, the tables inside that database can be named whatever you want.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  4. #4
    fomalhaut is offline x10Hosting Member fomalhaut is an unknown quantity at this point
    Join Date
    Aug 2009
    Location
    South of France near Arles
    Posts
    91

    Re: DB name problem

    Thanks for your answers.

    I think in my programs, it'll be better if the db name is in a variable !

    I gonna modify that.

    thanks again ;)

  5. #5
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: DB name problem

    Quote Originally Posted by fomalhaut View Post
    I think in my programs, it'll be better if the db name is in a variable !
    Whoa... I think you lost me, could you explain that last statement please?
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  6. #6
    fomalhaut is offline x10Hosting Member fomalhaut is an unknown quantity at this point
    Join Date
    Aug 2009
    Location
    South of France near Arles
    Posts
    91

    Re: DB name problem

    Quote Originally Posted by xav0989 View Post
    Whoa... I think you lost me, could you explain that last statement please?
    Hello

    I'll write something as : "$db = 'mydbname'" and then use this variable (i.e. $db) in the entire script. and so, if one of these days, I've to change the db name, there will only one place to change it in the script. That is, for exemple, my script was first written on my computer, and there was no prefix and an underscore in the dbname, and I've to change it in several place...

    thanks.

+ Reply to Thread

Similar Threads

  1. Slight Problem
    By rmb1993 in forum Free Hosting
    Replies: 2
    Last Post: 08-14-2008, 06:04 AM
  2. A problem with certificate
    By eon01 in forum Free Hosting
    Replies: 1
    Last Post: 07-31-2008, 01:27 PM
  3. DB number problem
    By lionheart8 in forum Free Hosting
    Replies: 5
    Last Post: 04-08-2008, 08:26 AM
  4. Problem with SMF
    By tam-iam in forum Free Hosting
    Replies: 5
    Last Post: 08-21-2007, 03:20 PM
  5. Ad code problem!
    By Akkarin in forum Free Hosting
    Replies: 8
    Last Post: 08-29-2005, 10:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers