zabbix

您所在的位置:网站首页 玉田一中官网密码是多少啊 zabbix

zabbix

2024-07-15 13:03| 来源: 网络整理| 查看: 265

我按照说明安装zabbix_server_mysql 3.2在Ubuntu16.

wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb dpkg -i zabbix-release_3.2-1+xenial_all.deb apt-get update apt-get install zabbix-server-mysql zabbix-frontend-php

完成安装后,我尝试连接mysql下一条指令,如下所示。

Creating initial database Create Zabbix database and user on MySQL by the following commands, where shall be replaced with the actual root password (e.g., shell> mysql -uroot -p12345) and with new password for zabbix user on the database (including apostrophes: …identified by '67890';): shell> mysql -uroot -p mysql> create database zabbix character set utf8 collate utf8_bin; mysql> grant all privileges on zabbix.* to zabbix@localhost identified by ''; mysql> quit;

意思是我需要输入实际的 root 密码,即使我在安装时从未设置过 root 密码zabbix_server_mysql。

一开始我试图假设默认密码,比如空字符串“”、“root”和“zabbix”。

然后我尝试将root密码更改为我想要的。

$sudo service mysql stop $sudo mysqld_safe --skip-grant-tables # Another terminal $mysql -uroot mysql mysql > update user set password=PASSWORD("root") where User='root'; mysql > flush privileges; mysql > quit; $ sudo service mysql restart $ mysql -uroot -proot ERROR 1698 (28000): Access denied for user 'root'@'localhost'

不幸的是,这些似乎不起作用,因为我不知道为什么。

我被困了很长时间,甚至根本没有开始zabbix。

你能给我一个建议吗?

编辑 - - - - - - - - - - - - - - - - - - - - - - - - - dpkg -l | grep mysql ii libdbd-mysql-perl 4.033-1ubuntu0.1 amd64 Perl5 database interface to the MySQL database ii libmysqlclient20:amd64 5.7.17-0ubuntu0.16.04.1 amd64 MySQL database client library ii mysql-common 5.7.17-0ubuntu0.16.04.1 all MySQL database common files, e.g. /etc/mysql/my.cnf ii php-mysql 1:7.0+35ubuntu6 all MySQL module for PHP [default] ii php7.0-mysql 7.0.13-0ubuntu0.16.04.1 amd64 MySQL module for PHP ii zabbix-server-mysql 1:3.2.3-1+xenial amd64 Zabbix network monitoring solution - server (MySQL)


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3