--mysql登录时 返回的错误
错误代码:ERROR 1045
解决方法如下:
- service mysqld stop
- mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
- mysql -u root mysql
- 现已进入数据库操作
- UPDATE user SET Password=PASSWORD('a123') where USER='root' and host='root' or host='localhost';
- FLUSH PRIVILEGES;
- quit
mysql -uroot -p
Enter password: <输入新设的密码,a123>
--web zabbix 登录时错误
登录框显示:Unable to select configuration.
解决方法如下:
- 数据库中zabbix的data.sql 没有导入成功,重新导入一次就可以了
- mysql -u root -p
- use zabbix
- 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 未关闭