Current time: 12-23-2024, 11:28 PM Hello There, Guest! (LoginRegister)


Thread Closed 
Databases with prefixes
Author Message
kevke Offline
Junior Member
*

Posts: 28
Joined: Nov 2009
Reputation: 0
Post: #1
Databases with prefixes
I was wondering, I know that prefixes are possible in the manor like Databasenumber_Databasename, Databaseusernumber_Databaseusername, whoever, in most other Controlpanels you can set Databases like [customer]Databasename, and [customer]Databaseuser.

I have heard it is possible and the setup for this is in the ispcp.conf

I think the important part is this:

MYSQL_PREFIX = yes

# '' for MYSQL_PREFIX = no,
# 'infront' or 'behind' for MYSQL_PREFIX = yes
MYSQL_PREFIX_TYPE =

If it is in there, how do I have to set it, so that as a prefix like [customer] is forced.

I crossposted this request as well in the German section, but all I got so far is numbered databases, like 1_Databasename. Any Ideas?
11-27-2009 08:14 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Databases with prefixes
MYSQL_PREFIX_TYPE = 'infront'

I recommend this for every ISP.

My points:
you need a prefix otherwise two customers want a DB named test -> problem
you need a short prefix because the username length is limited (16 chars) -> therefore only customer number...
prefix must be infront otherwise a 16 char db username is not unique (or you should check the length so a prefix at the end can be added).

If you add a customer name as prefix - eg. "testdomain.com" then you are in troubles with the length of the user name.
11-28-2009 01:47 AM
Visit this user's website Find all posts by this user
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #3
RE: Databases with prefixes
Joximo, how can i use the vu20xx as a prefix?
11-28-2009 02:11 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Databases with prefixes
MYSQL_PREFIX = yes
MYSQL_PREFIX_TYPE = infront

then the xx_ will be the prefix (1_, 2_, 3_, ..., 10_, 11_, ...., 100_, 101_ etc)


/J
11-28-2009 02:14 AM
Visit this user's website Find all posts by this user
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #5
RE: Databases with prefixes
thanks Wink
11-28-2009 03:45 AM
Find all posts by this user
kevke Offline
Junior Member
*

Posts: 28
Joined: Nov 2009
Reputation: 0
Post: #6
RE: Databases with prefixes
(11-28-2009 03:45 AM)Lucan Wrote:  thanks Wink

Tagg it and bag it, This thread is closed!
Thanks a lot
11-28-2009 05:14 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: Databases with prefixes
ok, I close..
11-28-2009 07:11 AM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: