Welcome, Guest
Please Login or Register.
Lost Password?
MySQL Username and Database Creation for Similar Domains (1 viewing)
Post Reply

TOPIC: MySQL Username and Database Creation for Similar Domains

#1665
SimonHorn (User)
Posts: 8
graphgraph
MySQL Username and Database Creation for Similar Domains 2006/04/03 07:20  
Hello,

I am relatively new to Virtualmin and am hoping someone might be able to help with a problem I am experiencing with MySQL database creations for new sites.

I have a need to create virtual sites for several groups of similar domains: Eg. new-domain.com, new-domain.net, new-domain.biz. The 1st site creation is successful, however an additional site fails with the error "Failed to create virtual server : A MySQL database called new_domain_com or user called new-domain.com already exists".

I believe I have traced the problem to MySQL not being able to create the user as the Fully Qualified Domain Name is more than 16 characters long, which is the MySQL limit on usernames. With this in mind, I have not found anywhere where I can specifically/manually configure the MySQL user for each domain (only the database name).

Any suggestions or ideas on this would be greatly appreciated.

Regards,
Simon
  The administrator has disabled public write access.
#1680
BerkWood (User)
Posts: 15
graphgraph
Re: MySQL Username and Database Creation for Similar Domains 2006/04/04 20:08  
What about using a custom username upon creation? I am still using the GPL version at the moment, but I would imagine Pro has the same feature
  The administrator has disabled public write access.
#1775
SimonHorn (User)
Posts: 8
graphgraph
Re: MySQL Username and Database Creation for Similar Domains 2006/04/17 21:25  
Yes you can specify a custom Unix Admin username, but this is then automatically used for the MySQL user as well.

It would be nice to leave some of the Unix usernames as they are (and being more than 15 characters long), and to just modify the MySQL username (which is mostly hidden and 'under-the-hood') to get past the MySQL issue.

I guess I need to submit a feature request!

Cheers,
Simon
  The administrator has disabled public write access.
#1784
Joe (Admin)
Posts: 4213
graph
Re: MySQL Username and Database Creation for Similar Domains 2006/04/18 18:12  
Hey guys,

Yeah, Virtualmin ought to be a bit smarter about this issue. I'll go file a bug about it.

Here it is, so you can follow the progress on it:

http://www.virtualmin.com/bug-tracker/bug?bug%5fnumber=365
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.