--mysql登录时 返回的错误
错误代码:ERROR 1045
解决方法如下:
  1. service mysqld stop
  2. mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
  3. mysql -u root mysql
  1. 现已进入数据库操作
  2. UPDATE user SET Password=PASSWORD('a123') where USER='root' and host='root' or host='localhost';
  3. FLUSH PRIVILEGES;
  4. quit
  1.  mysql -uroot -p
    Enter password: <输入新设的密码,a123>
--web zabbix 登录时错误
登录框显示:Unable to select configuration.
解决方法如下:
  1. 数据库中zabbix的data.sql 没有导入成功,重新导入一次就可以了
  2. mysql -u root -p
  3. use zabbix
  4. source /路径/data.sql
--登录后 页头有错误提示
错误信息:zabbix server is not running:the information displayed may not be cirrent
Zabbix server is running | No| zabbix:10051
解决方法如下:
1、将 /var/www/html/zabbix/conf/zabbix.conf.php 中的 $ZBX_SERVER      = '127.0.0.1';(修改为IP地址)
2、也许是因 selinux 未关闭