Menu

Connection to server 'localhost' failed:

Help
bart a
2005-03-17
2013-04-17
  • bart a

    bart a - 2005-03-17

    HI
    If I start nscd and run "id bart"
    this error shows up
    libnss-mysql: Connection to server 'localhost' failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
    if I stop nscd - all work correctly.
    My /etc/hosts has record
    127.0.0.1               localhost
    When I change host localhost to 127.0.0.1 in libnss-mysql.cfg all work ok.
    Where is a problem?
    os: RHEL 3

     
    • bart a

      bart a - 2005-03-18

      My mistake
      After upgrading mysql I added mysql user with wrong permission to /var/lib/mysql

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.