Ad Widget

Collapse

Zabbix Server 5.2 installation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Amiram
    Member
    • Feb 2021
    • 59

    #1

    Zabbix Server 5.2 installation

    Hey,

    I'm trying to install the Zabbix Server 5.2 from scratch on Ubuntu 18.04 version using the following documentation
    HTML Code:
    https://www.zabbix.com/download?zabbix=5.2&os_distribution=ubuntu&os_version=18.04_bionic&db=mysql&ws=nginx
    .

    I have encounter two problems.
    1. Unable to connect to the mysql database that just has been installed
      1. There is no such mysql service at all
    2. Missing /usr/share/doc/zabbix-server-mysql*/create.sql.gz so I cant configure my database.

    Amiram
  • Amiram
    Member
    • Feb 2021
    • 59

    #2

    Any idea how to solve this issue?

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      Have you installed a MySQL server or MariaDB server?
      If the create.sql.gz file does not exist, make sure that you have enabled the option to not install the document attribute file when installing the package.

      ex.

      Comment

      • Amiram
        Member
        • Feb 2021
        • 59

        #4
        I'm installed the MySQL server version.
        And I don't event have the exclude file mentioned
        HTML Code:
        https://www.zabbix.com/forum/zabbix-help/355372-create-sql-gz-no-such-file-or-directory#post408546
        so there are noting to comment out of it

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #5
          The SQL statement for creating the database is also in the source tarball. You can also have the SQL statements in the source tarball read in sequence.

          ex.
          Code:
          $ wget https://cdn.zabbix.com/zabbix/sources/stable/5.2/zabbix-5.2.5.tar.gz
          $ tar zxvf zabbix-5.2.5.tar.gz
          $ cd zabbix-5.2.5/database/mysql/
          $ ls
          Makefile.am Makefile.in data.sql double.sql images.sql schema.sql
          $ mysql -uzabbix -p zabbix < schema.sql
          $ mysql -uzabbix -p zabbix < images.sql
          $ mysql -uzabbix -p zabbix < data.sql

          Comment

          • Amiram
            Member
            • Feb 2021
            • 59

            #6
            Grate Thank You

            Comment

            Working...