Ad Widget

Collapse

Error connecting to database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dianamx
    Junior Member
    • Jul 2006
    • 3

    #1

    Error connecting to database

    I just installed zabbix in Mandrake 9.2. Everything went ok, but when i try to access the main page, i'm getting the following error:

    Error connecting to database [Access denied for user: '@localhost' to database 'zabbix']

    I edited the config_server.conf file and changed the database user and database host.

    Any idea of what is happening?

    Thx

    Dianamx
  • erisan500
    Senior Member
    Zabbix Certified Specialist
    • Aug 2005
    • 285

    #2
    If you had to make changes to the zabbix_server.conf file to access the database, i bet you need to do so also for the frontend (includes/db.inc.php)

    Greetings
    EriSan
    Zabbix Certified Specialist

    Comment

    • grabber
      Member
      • Mar 2005
      • 85

      #3
      Originally posted by Dianamx
      I just installed zabbix in Mandrake 9.2. Everything went ok, but when i try to access the main page, i'm getting the following error:

      Error connecting to database [Access denied for user: '@localhost' to database 'zabbix']

      I edited the config_server.conf file and changed the database user and database host.

      Any idea of what is happening?

      Thx

      Dianamx
      did you secure the initial accounts in mysql? Make sure your user can attach from localhost.

      Ian

      Comment

      • Dianamx
        Junior Member
        • Jul 2006
        • 3

        #4
        Originally posted by erisan500
        If you had to make changes to the zabbix_server.conf file to access the database, i bet you need to do so also for the frontend (includes/db.inc.php)

        Greetings
        Yes, that was the problem. I made changes to the include/db.inc.php and it's working.

        Thanks a lot

        Dianamx

        Comment

        • Dianamx
          Junior Member
          • Jul 2006
          • 3

          #5
          Originally posted by grabber
          did you secure the initial accounts in mysql? Make sure your user can attach from localhost.

          Ian

          Yes, i did.

          The problem was that i haven't changed the db.inc.php file, but i already did it and it's working now.

          Thank you!

          Dianamx

          Comment

          • wilfrik2003
            Junior Member
            • Dec 2010
            • 6

            #6
            Database error: Error connecting to database

            I have this page pop up when i installed zabbix 2.2.1 and i have added my database password in zabbix_server.conf but its not showing.

            How can i edit the db.inc.php to correct this problem.

            thank you for helping me out here

            Comment

            Working...