Ad Widget

Collapse

New to Open Source and Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gpfraser
    Junior Member
    • Nov 2011
    • 2

    #1

    New to Open Source and Zabbix

    Hi,

    My background is with HP Openview product suite.

    I am attempting to install zabbix ( on ubuntu ) and seem to be stuck on creating database schema part. Here is the error message,

    $mysql -u zabbix -p 'passworddefined_in_zabbix_server.conf" < create /schema/mysql.sql
    bash: create/schema/mysql.sql: No such file or directory

    Any hints on what to do?

    Thank you

    Greg
  • amamorim
    Junior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 1

    #2
    Adjust the path of SQL file.

    Comment

    • nelsonab
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2006
      • 1233

      #3
      Originally posted by gpfraser
      $mysql -u zabbix -p 'passworddefined_in_zabbix_server.conf" < create /schema/mysql.sql
      bash: create/schema/mysql.sql: No such file or directory
      You're getting tripped up on relative vs absolute paths. In this case you've submitted an absolute path /schema/mysql.sql, you likely want to remove the first "/". Pathing is the same under Linux as it is under Unix thanks to Posix compliance. :-)
      RHCE, author of zbxapi
      Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
      Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

      Comment

      • gpfraser
        Junior Member
        • Nov 2011
        • 2

        #4
        New to Open source and Zabbix

        Hi,

        Yes following the documentation line for line is not the right method. The problem was with the path and I had to run the command from the right path based on where the files were installed.

        Thanks

        Greg

        Comment

        Working...