The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Default MySQL User On Account Transfer

Discussion in 'Database Discussions' started by auschef, Sep 9, 2014.

  1. auschef

    auschef Registered

    Joined:
    Feb 5, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. auschef

    auschef Registered

    Joined:
    Feb 5, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page