mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<zabbix>';
ERROR 1044 (42000): Access denied for user 'root'@'127.0.0.1' to database 'zabbix'
是由於mysql數據庫的user表裏,存在用戶名爲空的帳戶即匿名帳戶,致使登陸的時候是雖然用的是root,但實際是匿名登陸的,經過錯誤提示裏的''@'localhost'能夠看出來。mysql
在my.ini的[mysqld]字段加入: skip-
grant
-tables
sql
一:ide
-- MySQL 5.5.22
Warning: Bison executable not found in PATH
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/mysql-5.5.22ui
####出現此類報錯,yum -y install bison後,刪除rm CMakeCache.txt再編譯便可,code