Installing the database
-----------------------

The Zabbix proxy needs an SQL database to run. As you chose to install
this zabbix-proxy-mysql package you apparently want to use a MySQL server
as a storage backend.

Set up a MySQL database proxy on any system - you are not forced to run it
on the same computer as the Zabbix proxy:

-> apt-get install mysql-server

Create a new database (let's call it "zabbix"):

-> mysql -p -e "CREATE DATABASE zabbix CHARACTER SET utf8 COLLATE utf8_bin"

Create a MySQL user that has access rights to the database
(please use another password than 'SECRETPASSWORD'):

-> mysql -p -e "grant all on zabbix.* to 'zabbix'@'localhost' identified by 'SECRETPASSWORD'"

Create the database schema:

-> zcat /usr/share/zabbix-proxy-mysql/schema.sql.gz \
   | mysql -uzabbix -pSECRETPASSWORD zabbix

Then enter the database access credentials into
"/etc/zabbix/zabbix_proxy.conf".


See also:

  https://www.zabbix.com/documentation/6.0/manual/appendix/install/db_scripts
