Ad Widget

Collapse

Package mysql-server is not available

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eronic
    Junior Member
    • Oct 2021
    • 1

    #1

    Package mysql-server is not available

    Trying to install Zabbix on Raspberry Pi OS Lite, everything works up until the mysql section.

    When running "apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent" it decides to install mariadb-server. But now I am unable to continue further as directories cannot be found.

    So I ran a reinstall of mariadb-server and I can now create and configure a mysql database. But now the problem is I cannot proceed to the next step of importing schema using "zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix". I get a directory not found error again.

    What am I supposed to do? And why is this installing mariadb-server rather than the standard mysql-server. I have also tried uninstalling mariadb and installing mysql but this does not work either. Everything is up to date on my end and have followed the install instructions to the T.

    Any help appreciated.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    MariaDB is a (mostly) compatible fork of MySQL. A lot of Linux distributions prefer MariaDB over MySQL. It's not an error or even anything very unusual to have a distro give you mariadb-server when you asked for mysql-server.

    You don't say anything about what version of Zabbix you're attempting to install, what version of Raspberry Pi OS Lite you're using, or what version of mariadb-server got installed, so it's really difficult to guess what the problem might be.

    Did you enable mariadb-server, using whatever service enabling commands are appropriate for your OS & version? Did you *start* mariadb-server? The service has to be running for anything database-related to work.

    Did you check the error logs for mariadb-server? It might be under /var/log/mysq/ or /var/log/mariadb/

    Can you post the exact command you ran and the exact error message?

    Comment

    Working...