浏览代码

Add Zabbix DB init script

lanfr144 2 周之前
父节点
当前提交
06df1fda4e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      init_zabbix_db.sh

+ 1 - 0
init_zabbix_db.sh

@@ -0,0 +1 @@
+mysql -e "CREATE DATABASE IF NOT EXISTS zabbix character set utf8mb4 collate utf8mb4_bin; CREATE USER IF NOT EXISTS 'zabbix'@'%' IDENTIFIED BY 'zabbix_pwd'; GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'%'; SET GLOBAL log_bin_trust_function_creators = 1; FLUSH PRIVILEGES;"