Skip to main content

cPanel using wrong hostname to connect to MySQL server

Comments

3 comments

  • Michael Legg
    Server reboot fixed the hostname issue. Found the real problem was a '$' symbol in the password that was causing PHP to truncate the password at that character, therefore sending the wrong password to MySQL.
    0
  • cPWilliamL
    Perhaps MySQL needed restarting. I am glad to hear you were able to resolve the issue. Good catch on that password variable issue!
    0
  • ottdev
    Server reboot fixed the hostname issue. Found the real problem was a '$' symbol in the password that was causing PHP to truncate the password at that character, therefore sending the wrong password to MySQL.

    Ditto. Have had this happening for quite a while now. I never put time into checking if it's a known MySQL known issue or limitation (try setting a password that way by command line? maybe) vs. a problem with how cpanel treats the form input it sends to the server. With database authentication issues, we now immediately ask first if there's a $ in it!
    0

Please sign in to leave a comment.