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.

mysql trying to connect with cpanel user instead of mysql user?

Discussion in 'General Discussion' started by vimalkumar_k, Aug 20, 2010.

  1. vimalkumar_k

    vimalkumar_k Member

    Joined:
    Feb 24, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Recently someone ran easyapache and mysqlup on this server.. now php does not authenticate correctly with mysql. Consider the code:

    But seems like it is trying to connect as cpanel user "vimal". The error I receive in browser is:

    any ideas what could be the issue?? :confused:
     
  2. tpawlowski

    tpawlowski Registered

    Joined:
    Sep 8, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    It's funny, we just ran into this problem this evening. One of our other admins managed to figure it out:

    In /usr/local/lib/php.ini change:

    to

    Otherwise it will force the username of the user PHP is running under. Not sure if this suddenly became turned on by default with a new update or whether the user ran something to enable it. Hope that helps.

    Regards,

    Tom Pawlowski
    Senior System Administrator
    DedicatedNOW | FortressITX
     
Loading...

Share This Page