Default MySQL User On Account Transfer
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
-
Hello :) Could you elaborate on what you mean by "the script fails"? For instance, is this the account creation script? What error message do you see? It's important to note that this is unsupported. You can find an existing feature request for this at: [url=http://features.cpanel.net/responses/support-for-aws-rds-as-remote-mysql-server]Support for AWS RDS as Remote MySQL Server | cPanel Feature Requests Thank you. 0 -
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 0 -
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. 0
Please sign in to leave a comment.
Comments
3 comments