Default MySQL User On Account Transfer

auschef

Registered
Feb 5, 2014
4
0
1
cPanel Access Level
Root Administrator
Hi

I'm using the transfer tool to pull CPanel accounts from another server. I've also got MySQL running as an AWS RDS instance but over the localhost socket using mysql-proxy.

The transfer process fails because database users are automatically created as 'newuser'@'localhost', but in my case I need them to be 'newuser'@'10.0.0.10'. So after creating the account user, the script then fails when it tries to do anything since it's not really localhost.

The obvious first reply might be for me to use the 'remote mysql server' feature, but that is even more problematic due to it requiring SSH, which is impossible with RDS.

So... my question boils down to this:

Is there a 'good' way to alter the user creation 'template' from 'newuser'@'localhost' to 'newuser'@'10.0.0.10'? By good, I'm there's a config file somewhere, but even if I could modify one or two WHM script files, it'd probably be worth it.

Thanks in advance for any help.

Paul
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463

auschef

Registered
Feb 5, 2014
4
0
1
cPanel Access Level
Root Administrator
Hi Michael

Thanks for your reply.

The only part of the transfer that fails is MySQL. The key error is:

The system failed to reinstall the MySQL database “gribblek_wrdp1” as “gribblek_wrdp12” because of an error: The system failed to connect to the MySQL server as “gribblek” because of an error: Access denied for user 'gribblek'@'10.0.0.10' (using password: YES) at /usr/local/cpanel/Cpanel/DBI.pm line 43.

10.0.0.10 is the internal ip address of my new WHM server. So in the step before, the mysql users/permissions are transferred, but with localhost, not '%'. I've tried adding users on the old WHM server (with '%' as the host) but for whatever reason it still fails with the same error.

Kind regards

Paul
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Please open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.