Problem after making a sub-server a stand alone domain

After changing a sub-server into an stand alone domain I immediately had issues with the original parent server no longer having MySQL access. The original user name and password are correct but will not connect. Creating a new user with database privileges does get around the issue.

I attempted to change the password for the domain admin of the parent domain but received what appears to be a truncated error message: Failed to modify server : A target server must have email enabled if any aliases do

So, I enabled email, changed the password, and then tried to disable email again. No luck. I am stuck getting the same error message and I need to disable email for this domain because their mail is hosted elsewhere.

Where's this coming from?

Status: 
Closed (fixed)

Comments

The MySQL change is expected - if you convert a sub-server into a top-level virtual server, it will get its own new login that applies for SSH, FTP, Virtualmin and MySQL.

Regarding the second issue, does this virtual server have any alias domains?

I don't understand why the MySQL change is expected - unless, perhaps I wasn't entirely clear. The top level domain's MySQL access for the domain administrator stopped working when the sub-server was moved. How should moving the sub-server affect the parent server's MySQL access?

The top lever server does have domain aliases.

Do you mean the original top-level domain admin lost access via MySQL to databases that were not in the moved domain?

Ok, I see the bug that is causing this now - the old top-level server's password for MySQL gets incorrectly changes to the password of the server you split off! The fix is to change the top-level server's password to something different, then change it back again.

The next Virtualmin release (3.84) will have a fix for this bug.

Interesting. I'll see about confirming that on my system and will let you know the result. Thanks as always.

Ok, I changed the password for the domain administrator account for the original top-level server and then changed it back. That account still does not have access to MySQL.

If you go to Webmin -> Servers -> MySQL Database -> User Permissions, does the domain's mysql account appear?

If so, does it appear on the Database Permissions page, also in the MySQL module?

Finally, if you validate the domain (at Limits and Validation -> Validate Virtual Servers), does it report any errors?

Automatically closed -- issue fixed for 2 weeks with no activity.