Create database users without email address on the end

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.5
Usermin version 2.102
Virtualmin version 7.20.2 Pro
Theme version 21.20.7
Apache version 2.4.52
Package updates 49 package updates are available

background

I come from cpanel where the usernames and passswords for mysql databases are incredibly easy to use. they come in the format username_putwordhere.

When I imported my cPanel accounts, the databases and the associated usernames are imported in this format.

the question

When I create a new database use in Virtualmin the user names always have @usersdomain.com added on the end, is there a way to create usernames without this suffix?

Thanks

Because there is only one server you need to separate users from what domain they coming from. I can’t see how this would work if you don’t use a domain in the name.

  • it is working as shown, the databases are they and can be accessed
  • cPanel makes it work
  • The databases are attached to the user by the prefix (and of course associated permissions)

so long story, it can be made to work or the import process needs fixing. :smile:

I should have looked :slight_smile:
All my databases in virtualmin use the admin username no @usersdomain.com that I can see

I think I should of said usernames.

So importing is failing?

Import worked. I am showing you how I can have mysql usernames without domain names attached to then ask why can’t we have database users we create in virtualmin manually not have said domains attached.

Not really sure why this is a issue and virtualmin is not cpanel. Cpanel you can’t create a username like joeblogg, it will add a prefix ie username_joeblogg.
Is it stopping you doing something or you just like cpanel’s method?

The usernames get a domain added. The databases are a different thing.

1 Like

I don’t think it does?

How are you making that happen? I don’t think it’s even valid to have @ in a database username, as it specifies the hostname from which the user is connecting in permissions and such. (But, I’m not an expert, it’s just never come up.)

I will double check and post tommorow.

@Joe,

I believe this is what he’s referring to.

1 Like

this is an example of credentials I am using

as you can see above I have to use a username with an @ and domain name (i.e. email format) but when I import from cPanel the usernamesa re like there were in cpanel.

Personal I would like to enforce database and usernames to have the virtualmin username and a prefix. I have user server templates to force this for databases, would be nice for database usernames.

@shoulders,

Importing usually keeps many if not most the settings as is, so it doesn’t break your website.

I know. Not my point. :smiley:

I want db usernames not in email format.

Just showing it is possible without breaking stuff.

@shoulders,

Understood, I was simply commenting on your last post regarding cPanel imported domains and why they don’t use the VM default model…

1 Like