Current time: 11-16-2024, 07:25 AM Hello There, Guest! (LoginRegister)


Post Reply 
MySQL databases
Author Message
rexcze Offline


Posts: 1
Joined: Mar 2007
Reputation: 0
Post: #1
Question MySQL databases
Hi,
I have one question. If we deploy ispCP on webhosting server and if we will have a lot of people with a lot of databases with its names is there any posibility how to make those names unique?
For example:
customer hello.com has mysql database name PEDRO and
customer hiThere.eu want to have database name PEDRO too. Is there a way?

Thanks for reply...
11-03-2007 06:29 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: MySQL databases
Yes

You can set the configuration to use a prefix for mysql databas names.

so the first user always has 1_PEDRO, the second customer 2_PEDRO

of course the numbr of characters for the database is reduced by the prefix...

/J
11-03-2007 07:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
chris41g Offline
Newbie
*

Posts: 5
Joined: Oct 2007
Reputation: 0
Post: #3
RE: MySQL databases
can we make the prefix the customer name?
like this:
domain.tld_databasename
11-05-2007 11:50 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: MySQL databases
Sure - you have the source code.

It's not a built-in option today. Just think about: a MySQL username should not be longer than 16 characters. So if you have a long domain name you're in troubles...

I like the number...
11-05-2007 06:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #5
RE: MySQL databases
customernumber would be better IMHO
11-05-2007 06:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: MySQL databases
Yes and the same scheme should also work for the MySQL users
- domain name might be too long (punicode...) - mysql usernames are limited to 16 chars
- domain name has a . (dot) which has to be replaced
- it's too long to write.

/J
11-05-2007 10:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)