Skip to main content

User creation fail MySQL on distant database

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! It would be good to get the additional details from the cPanel error log at /usr/local/cpanel/logs/error_log as that would show the exact issue the machine is running into. Can you check that file to see if there are additional errors listed there?
    0
  • Timile
    Hi! I've finally found the specific error: Cpanel::Exception/(XID 59xz2c) Error from MySQL query :(XID 4uxen7) The system received an error from the "MySQL" database "mysql": 1470 (String 'whm-cpanel1-vm.northamerica-northeast1-a.c.no-specify.internal' is too long for host name (should be no longer than 60)):at /usr/local/cpanel/Cpanel/Admin/Base/DB.pm line 102. Look like my host name is too long but this is not my host name at all, this is the default one who've been automatically used when I've installed WHM. How do I manage that?
    0
  • cPRex Jurassic Moderator
    Details on how to change the hostname can be found here:
    0
  • Timile
    For the records: Finally found why the hostname cannot be updated. It was Google Cloud Platform fault. GCP force update the hostname for a way too long hostname causing me so much trouble. After building a brand new Compute engine with custom hostname, WHM finally accept the hostname.
    0
  • cPRex Jurassic Moderator
    I'm glad you were able to get that working. Some of the cloud systems are a bit trickier to deal with hostname changes for sure.
    0

Please sign in to leave a comment.